lsc há 12 horas atrás
pai
commit
7fe6556a4e
1 ficheiros alterados com 6 adições e 10 exclusões
  1. 6 10
      js/liyuan/Onload2.js

+ 6 - 10
js/liyuan/Onload2.js

@@ -698,6 +698,7 @@ U.MD.D.getuser = function () {
         CookieS = _cookie
         U.UF.Cookie.set("cocoroboLoginType=2");
     }else if(LoginState && _cookie != CookieS){
+        U.alert(LoginState && _cookie != CookieS)
         US.userInfo = {}
         U.A.Request(US.Config.server + "getcookieuserid", [], function (res) {
             if (res.value && res.value[0] && res.value[0][0]) {
@@ -718,16 +719,11 @@ U.MD.D.getuser = function () {
                 }, [], { "type": "GET", "withCredentials": true });
             }else {
                 window.onbeforeunload = null
-                U.alert("LoginState && _cookie != CookieS!")
-                window.alert(_cookie)
-                window.alert(CookieS)
-                window.alert(LoginState)
-                setTimeout(()=>{
-                    if(LoginState){
-                        window.alert(LoginState)
-                        window.location.reload();
-                    }
-                }, 1000)
+                widow.alert(_cookie+""+CookieS)
+                if(LoginState){
+                    U.alert(LoginState)
+                    window.location.reload();
+                }
             }
         }, [], { "type": "GET", "withCredentials": true });
     }else if(LoginState && _cookie && !isPanL){