Commit 2faf561f by guojuxing

test

parent 5112e354
......@@ -158,14 +158,14 @@ public class LoginController {
@RequestMapping("login-for-operation")
public RestResponse login(Integer enterpriseId, String phone, String realName, String redirectUrl, HttpServletResponse response) throws IOException {
if (StringUtils.isBlank(redirectUrl)) {
redirectUrl = "cost-center/billing-center/overview";
redirectUrl = "https://four.gicdev.com/cost-center/billing-center/overview";
}
response.setStatus(302);
if (UserContext.getContext().get().getUserInfo() != null) {
//已有登录信息
//跳转到页面
//暂时写死跳转到计费中心首页
response.addHeader("location", redirectUrl);
response.setHeader("location", redirectUrl);
return RestResponse.success();
}
ServiceResponse<OperationUserDTO> userResult = operationUserApiService.getByPhone(phone, enterpriseId);
......@@ -227,7 +227,7 @@ public class LoginController {
UserDetailUtils.setUserDetail(userDetail);
//跳转到页面
//暂时写死跳转到计费中心首页
response.addHeader("location", redirectUrl);
response.setHeader("location", redirectUrl);
}
return RestResponse.success();
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment