|
|
@@ -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();
|
|
|
})
|
|
|
}
|
|
|
}
|