作者 yangfu

修改

appname = opportunity
httpport = 8080
runmode = "${RUN_MODE||test}"
runmode = "${RUN_MODE||dev}"
#没设置的话 this.Ctx.Input.RequestBody 没有值
copyrequestbody = true
... ...
... ... @@ -36,7 +36,7 @@ func (this *AuthController) Login() {
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(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 == "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
}
... ...