Sfoglia il codice sorgente

Merge remote-tracking branch 'origin/master'

suntg 8 anni fa
parent
commit
c6d062af1d
1 ha cambiato i file con 15 aggiunte e 1 eliminazioni
  1. 15 1
      src/main/webapp/resources/js/common/common.js

+ 15 - 1
src/main/webapp/resources/js/common/common.js

@@ -26,7 +26,21 @@ function login(event) {
 function logout() {
 	$.get('account/logout', function(data) {
 		if(data.success) {
-			window.location.reload();
+			logoutUuzc();
+			setTimeout("window.location.reload()", 200);
+		}
+	});
+}
+
+function logoutUuzc() { // 通知众创登出
+	var url = 'http://login.uuzcc.com/index/ubtob/logout';
+	$.ajax(url, {
+		dataType: 'jsonp',
+		crossDomain: true,
+		success: function(data) {
+			if(data && data.resultcode == '200'){
+				console.log(data.result.today);
+			}
 		}
 	});
 }