作者 yangfu

修改

... ... @@ -36,7 +36,7 @@ func (this *AuthController) Login() {
return
}
header := controllers.GetRequestHeader(this.Ctx)
if beego.BConfig.RunMode == "prod" || beego.BConfig.RunMode == "test1" {
if beego.BConfig.RunMode == "prod" || beego.BConfig.RunMode == "test" {
msg = protocol.NewReturnResponse(auth.LoginV3(header, request))
return
}
... ...
... ... @@ -137,7 +137,7 @@ func (this *UserController) SwitchCompany() {
return
}
header := controllers.GetRequestHeader(this.Ctx)
if beego.BConfig.RunMode == "prod" || beego.BConfig.RunMode == "test1" {
if beego.BConfig.RunMode == "prod" || beego.BConfig.RunMode == "test" {
msg = protocol.NewReturnResponse(user.SwitchCompanyV3(header, request))
return
}
... ... @@ -162,7 +162,7 @@ func (this *UserController) UserInfo() {
return
}
header := controllers.GetRequestHeader(this.Ctx)
if beego.BConfig.RunMode == "prod" || beego.BConfig.RunMode == "test1" {
if beego.BConfig.RunMode == "prod" || beego.BConfig.RunMode == "test" {
msg = protocol.NewReturnResponse(user.UserInfoV3(header, request))
return
}
... ...