作者 唐旭辉

调试

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