Browse Source

更新账户地址,存在冲突

hejq 8 years ago
parent
commit
fc2931d6c2

+ 2 - 2
donate-console/src/main/java/com/uas/console/donate/controller/SecurityController.java

@@ -23,7 +23,7 @@ import java.io.IOException;
  *
  * Created by hejq on 2017-11-15.
  */
-@RequestMapping(value = "/account")
+@RequestMapping(value = "/sso")
 @RestController
 public class SecurityController extends CommonController {
 
@@ -32,7 +32,7 @@ public class SecurityController extends CommonController {
      *
      * @return
      */
-    @RequestMapping(method = RequestMethod.GET)
+    @RequestMapping(value = "/account", method = RequestMethod.GET)
     public ModelMap getAccountInfo() {
         return success(SystemSession.getUser());
     }

+ 1 - 1
donate-console/src/main/webapp/WEB-INF/views/index.html

@@ -148,7 +148,7 @@
         data-main="static/js/index/main.js"></script>
 <script type="text/javascript">
     $('#login').on('click', function () {
-        $.get('account/login', function(data) {
+        $.get('sso/login', function(data) {
             data.content && (window.location.href = data.content);
         });
     });

+ 2 - 2
donate-console/src/main/webapp/WEB-INF/views/proxyLogin.html

@@ -19,7 +19,7 @@
 					// 跳转登录页面
 					window.location.href = loginUrl;
 				} else {
-					$.post('account/login/crossAfter', {
+					$.post('sso/login/crossAfter', {
 						replyTxt : d.content
 					}, function(e) {
 						
@@ -33,7 +33,7 @@
 				}
 			});
 		}
-		$.getJSON('account/login/crossBefore', function(data) {
+		$.getJSON('sso/login/crossBefore', function(data) {
 			proxyLogin(data.askUrl, data.askData, data.loginUrl);
 		});
 	</script>

+ 1 - 1
donate-console/src/main/webapp/WEB-INF/views/proxyLogout.html

@@ -21,7 +21,7 @@
 			}
 	    });
 	}
-	$.getJSON('account/logout/crossBefore', function(data){
+	$.getJSON('sso/logout/crossBefore', function(data){
 		proxyLogout(data.askUrl, data.logoutUrl, data.returnUrl);
 	});
 </script>