|
@@ -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 == "test" {
|
140
|
+ if beego.BConfig.RunMode == "prod" || beego.BConfig.RunMode == "test1" {
|
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 == "test" {
|
165
|
+ if beego.BConfig.RunMode == "prod" || beego.BConfig.RunMode == "test1" {
|
166
|
msg = protocol.NewReturnResponse(user.UserInfoV3(header, request))
|
166
|
msg = protocol.NewReturnResponse(user.UserInfoV3(header, request))
|
167
|
return
|
167
|
return
|
168
|
}
|
168
|
}
|