Commit 6f89ccdaf66137d5c8ba92737d7351476d5e8785
1 parent
c7d552d3
更换域名
Showing
2 changed files
with
5 additions
and
5 deletions
src/main/java/com/cnlive/shenhe/ShenheApplication.java
| @@ -23,13 +23,13 @@ public class ShenheApplication extends SpringBootServletInitializer { | @@ -23,13 +23,13 @@ public class ShenheApplication extends SpringBootServletInitializer { | ||
| 23 | private static final String CAS_SERVER_URL_PREFIX = "https://user.cnlive.com/OpenSSO2"; | 23 | private static final String CAS_SERVER_URL_PREFIX = "https://user.cnlive.com/OpenSSO2"; |
| 24 | private static final String CAS_SERVER_LOGIN_URL = "https://user.cnlive.com/OpenSSO2/login"; | 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,7 +37,7 @@ public class UsersController { | ||
| 37 | public String index(HttpServletRequest request) { | 37 | public String index(HttpServletRequest request) { |
| 38 | AttributePrincipal principal = (AttributePrincipal) request.getUserPrincipal(); | 38 | AttributePrincipal principal = (AttributePrincipal) request.getUserPrincipal(); |
| 39 | if (CommonUtils.isNull(principal)) { | 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 | //用户ID | 42 | //用户ID |
| 43 | String id = principal.getName(); | 43 | String id = principal.getName(); |
| @@ -62,7 +62,7 @@ public class UsersController { | @@ -62,7 +62,7 @@ public class UsersController { | ||
| 62 | @RequestMapping("/logout") | 62 | @RequestMapping("/logout") |
| 63 | public String logout(HttpSession session) { | 63 | public String logout(HttpSession session) { |
| 64 | session.invalidate(); | 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 |