作者 唐旭辉

提交切分支

@@ -25,7 +25,7 @@ func (this *BaseController) Prepare() { @@ -25,7 +25,7 @@ func (this *BaseController) Prepare() {
25 if this.Ctx.Input.Method() == "OPTIONS" { 25 if this.Ctx.Input.Method() == "OPTIONS" {
26 this.Ctx.ResponseWriter.WriteHeader(204) 26 this.Ctx.ResponseWriter.WriteHeader(204)
27 this.Ctx.ResponseWriter.Header().Set("Access-Control-Allow-Methods", "POST, GET, OPTIONS, PUT, DELETE") 27 this.Ctx.ResponseWriter.Header().Set("Access-Control-Allow-Methods", "POST, GET, OPTIONS, PUT, DELETE")
28 - //this.Ctx.WriteString("") 28 + this.Ctx.WriteString("")
29 return 29 return
30 } 30 }
31 p := this.Ctx.Input.GetData("RouterPattern") 31 p := this.Ctx.Input.GetData("RouterPattern")
@@ -62,4 +62,5 @@ type ResponseMeInfo struct { @@ -62,4 +62,5 @@ type ResponseMeInfo struct {
62 type MeCompany struct { 62 type MeCompany struct {
63 Id int64 `json:"id"` 63 Id int64 `json:"id"`
64 Name string `json:"name"` 64 Name string `json:"name"`
  65 + Logo string `json:"logo"`
65 } 66 }
@@ -308,6 +308,7 @@ func UserHasCompanys(userid int64) ([]protocol.MeCompany, error) { @@ -308,6 +308,7 @@ func UserHasCompanys(userid int64) ([]protocol.MeCompany, error) {
308 t := protocol.MeCompany{ 308 t := protocol.MeCompany{
309 Id: v.Id, 309 Id: v.Id,
310 Name: v.Name, 310 Name: v.Name,
  311 + Logo: v.Logo,
311 } 312 }
312 mecompanys = append(mecompanys, t) 313 mecompanys = append(mecompanys, t)
313 } 314 }