作者 yangfu

修改

1 appname = opportunity 1 appname = opportunity
2 httpport = 8080 2 httpport = 8080
3 -runmode = "${RUN_MODE||test}" 3 +runmode = "${RUN_MODE||dev}"
4 4
5 #没设置的话 this.Ctx.Input.RequestBody 没有值 5 #没设置的话 this.Ctx.Input.RequestBody 没有值
6 copyrequestbody = true 6 copyrequestbody = true
@@ -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 == "test" { 39 + if beego.BConfig.RunMode == "prod" || beego.BConfig.RunMode == "test1" {
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 == "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 }