Commit f51a043d by guojuxing

运营平台单点登录

parent 625af9ca
......@@ -157,16 +157,16 @@ public class LoginController {
@IgnoreLogin
@RequestMapping("login-for-operation")
public RestResponse login(Integer enterpriseId, String phone, String realName, String redirectUrl, HttpServletResponse response) throws IOException {
if (StringUtils.isBlank(redirectUrl)) {
redirectUrl = "https://four.gicdev.com/cost-center/billing-center/overview";
}
response.setStatus(302);
response.setHeader("location", redirectUrl);
if (UserContext.getContext().get().getUserInfo() != null) {
//已有登录信息
//跳转到页面
//暂时写死跳转到计费中心首页
if (StringUtils.isBlank(redirectUrl)) {
//默认跳转到首页
response.sendRedirect("https://four.gicdev.com/cost-center/billing-center/overview");
} else {
response.sendRedirect(redirectUrl);
}
response.sendRedirect(redirectUrl);
return RestResponse.success();
}
ServiceResponse<OperationUserDTO> userResult = operationUserApiService.getByPhone(phone, enterpriseId);
......@@ -228,11 +228,7 @@ public class LoginController {
UserDetailUtils.setUserDetail(userDetail);
//跳转到页面
//暂时写死跳转到计费中心首页
if (StringUtils.isBlank(redirectUrl)) {
response.sendRedirect("https://four.gicdev.com/cost-center/billing-center/overview");
} else {
response.sendRedirect(redirectUrl);
}
response.sendRedirect(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