...
|
...
|
@@ -137,7 +137,7 @@ func (this *UserController) SwitchCompany() { |
|
|
return
|
|
|
}
|
|
|
header := controllers.GetRequestHeader(this.Ctx)
|
|
|
if beego.BConfig.RunMode == "prod" || beego.BConfig.RunMode == "test" {
|
|
|
if beego.BConfig.RunMode == "prod" || beego.BConfig.RunMode == "test1" {
|
|
|
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 == "test" {
|
|
|
if beego.BConfig.RunMode == "prod" || beego.BConfig.RunMode == "test1" {
|
|
|
msg = protocol.NewReturnResponse(user.UserInfoV3(header, request))
|
|
|
return
|
|
|
}
|
...
|
...
|
|