作者 唐旭辉

调试

... ... @@ -63,6 +63,7 @@ type ResponseMeInfo struct {
Companyname string `json:"company_name"`
Logo string `json:"logo"`
AdminType int `json:"admin_type"`
CreateTime string `json:"create_time"`
}
type MeCompany struct {
... ...
... ... @@ -132,5 +132,4 @@ func init() {
beego.SetStaticPath("/log", beego.AppConfig.String("log_filename"))
beego.SetStaticPath("/file/opp", beego.AppConfig.String("file_save_path"))
beego.SetStaticPath("/static", "./static")
}
... ...
... ... @@ -281,6 +281,7 @@ func UserBaseInfo(userid, companyid int64) (protocol.ResponseMeInfo, error) {
Companyid: currentCompany.Id,
Companyname: currentCompany.Name,
Logo: currentCompany.Logo,
CreateTime: userinfo.CreateAt.String(),
}
if currentCompany.AdminId == userinfo.Id {
meInfo.AdminType = 1 //公司账户主管
... ...