作者 yangfu

修改

@@ -36,7 +36,7 @@ func (this *AuthController) Login() { @@ -36,7 +36,7 @@ func (this *AuthController) Login() {
36 return 36 return
37 } 37 }
38 header := controllers.GetRequestHeader(this.Ctx) 38 header := controllers.GetRequestHeader(this.Ctx)
39 - if beego.BConfig.RunMode == "prod" || beego.BConfig.RunMode == "test1" { 39 + if beego.BConfig.RunMode == "prod" || beego.BConfig.RunMode == "test" {
40 msg = protocol.NewReturnResponse(auth.LoginV3(header, request)) 40 msg = protocol.NewReturnResponse(auth.LoginV3(header, request))
41 return 41 return
42 } 42 }
@@ -137,7 +137,7 @@ func (this *UserController) SwitchCompany() { @@ -137,7 +137,7 @@ func (this *UserController) SwitchCompany() {
137 return 137 return
138 } 138 }
139 header := controllers.GetRequestHeader(this.Ctx) 139 header := controllers.GetRequestHeader(this.Ctx)
140 - if beego.BConfig.RunMode == "prod" || beego.BConfig.RunMode == "test1" { 140 + if beego.BConfig.RunMode == "prod" || beego.BConfig.RunMode == "test" {
141 msg = protocol.NewReturnResponse(user.SwitchCompanyV3(header, request)) 141 msg = protocol.NewReturnResponse(user.SwitchCompanyV3(header, request))
142 return 142 return
143 } 143 }
@@ -162,7 +162,7 @@ func (this *UserController) UserInfo() { @@ -162,7 +162,7 @@ func (this *UserController) UserInfo() {
162 return 162 return
163 } 163 }
164 header := controllers.GetRequestHeader(this.Ctx) 164 header := controllers.GetRequestHeader(this.Ctx)
165 - if beego.BConfig.RunMode == "prod" || beego.BConfig.RunMode == "test1" { 165 + if beego.BConfig.RunMode == "prod" || beego.BConfig.RunMode == "test" {
166 msg = protocol.NewReturnResponse(user.UserInfoV3(header, request)) 166 msg = protocol.NewReturnResponse(user.UserInfoV3(header, request))
167 return 167 return
168 } 168 }