Commit 6f89ccdaf66137d5c8ba92737d7351476d5e8785

Authored by 周伟鹏
1 parent c7d552d3

更换域名

src/main/java/com/cnlive/shenhe/ShenheApplication.java
... ... @@ -23,13 +23,13 @@ public class ShenheApplication extends SpringBootServletInitializer {
23 23 private static final String CAS_SERVER_URL_PREFIX = "https://user.cnlive.com/OpenSSO2";
24 24 private static final String CAS_SERVER_LOGIN_URL = "https://user.cnlive.com/OpenSSO2/login";
25 25 //本机的名称
26   - private static final String SERVER_NAME = "http://shenhe.cnlive.com";
  26 + private static final String SERVER_NAME = "http://shen.cnlive.com";
27 27  
28 28 //登录入口
29   - private static final String SERVICE_LOGIN = "http://shenhe.cnlive.com/users/login";
  29 + private static final String SERVICE_LOGIN = "http://shen.cnlive.com/users/login";
30 30  
31 31 //登出
32   - private static final String SERVICE_LOGINOUT = "http://shenhe.cnlive.com/users/logout";
  32 + private static final String SERVICE_LOGINOUT = "http://shen.cnlive.com/users/logout";
33 33  
34 34  
35 35 /**
... ...
src/main/java/com/cnlive/shenhe/controller/UsersController.java
... ... @@ -37,7 +37,7 @@ public class UsersController {
37 37 public String index(HttpServletRequest request) {
38 38 AttributePrincipal principal = (AttributePrincipal) request.getUserPrincipal();
39 39 if (CommonUtils.isNull(principal)) {
40   - return "redirect:https://user.cnlive.com/OpenSSO2/login?service=http://shenhe.cnlive.com/users/login";
  40 + return "redirect:https://user.cnlive.com/OpenSSO2/login?service=http://shen.cnlive.com/users/login";
41 41 }
42 42 //用户ID
43 43 String id = principal.getName();
... ... @@ -62,7 +62,7 @@ public class UsersController {
62 62 @RequestMapping("/logout")
63 63 public String logout(HttpSession session) {
64 64 session.invalidate();
65   - return "redirect:https://user.cnlive.com/OpenSSO2/logout?service=http://shenhe.cnlive.com/users/login";
  65 + return "redirect:https://user.cnlive.com/OpenSSO2/logout?service=http://shen.cnlive.com/users/login";
66 66 }
67 67  
68 68  
... ...