zouyong před 5 roky
rodič
revize
dbdfb2403f
1 změnil soubory, kde provedl 19 přidání a 19 odebrání
  1. 19 19
      assets/Scripts/mk/data/LoginData.ts

+ 19 - 19
assets/Scripts/mk/data/LoginData.ts

@@ -273,25 +273,25 @@ export class LoginData {
         // gData.storageData.clear();
         // cc.sys.localStorage.setItem('HotUpdateSearchPaths', path);
         setTimeout(() => {
-            this.sessionKey = '';
-            this.uin = '';
-            this.loginTicket = '';
-            this.isAuth = false;
-            this.tempUin = '';
-            this.randomKey = '';
-            gData.wechatData.nickName = '';
-            gData.wechatData.avatar = '';
-
-            cc.sys.localStorage.removeItem(StorageKey.sessionKey);
-            cc.sys.localStorage.removeItem(StorageKey.uin);
-            cc.sys.localStorage.removeItem(StorageKey.loginTicket);
-            cc.sys.localStorage.removeItem(StorageKey.isAuth);
-            cc.sys.localStorage.removeItem(StorageKey.nickname);
-            cc.sys.localStorage.removeItem(StorageKey.avatar);
-
-            cc.audioEngine.stopAll();
-            //调用Android的更好
-            cc.game.restart();
+            // this.sessionKey = '';
+            // this.uin = '';
+            // this.loginTicket = '';
+            // this.isAuth = false;
+            // this.tempUin = '';
+            // this.randomKey = '';
+            // gData.wechatData.nickName = '';
+            // gData.wechatData.avatar = '';
+
+            // cc.sys.localStorage.removeItem(StorageKey.sessionKey);
+            // cc.sys.localStorage.removeItem(StorageKey.uin);
+            // cc.sys.localStorage.removeItem(StorageKey.loginTicket);
+            // cc.sys.localStorage.removeItem(StorageKey.isAuth);
+            // cc.sys.localStorage.removeItem(StorageKey.nickname);
+            // cc.sys.localStorage.removeItem(StorageKey.avatar);
+
+            // AudieEn.stopAll();
+            // //调用Android的更好
+            // cc.game.restart();
         })
     }
 }