|
|
@@ -264,7 +264,25 @@ export class LoginData {
|
|
|
this.sessionKey = parseData.session_key;
|
|
|
mk.console.logSingle("[FC]checkLogin decrypt", parseData);
|
|
|
mk.storage.setStorage(StorageKey.sessionKey, this.sessionKey);
|
|
|
- this.getUserInfo();
|
|
|
+ if (gData.wechatData.code != null) {
|
|
|
+ if (this.isNew) {
|
|
|
+ console.log('KKKK 1 ', this.uin)
|
|
|
+ this.getUserInfo();
|
|
|
+ }
|
|
|
+ else {
|
|
|
+ console.log('KKKK 2 ', this.uin)
|
|
|
+ this.isNew = false;
|
|
|
+ gData.wechatData.code = null;
|
|
|
+
|
|
|
+ cc.audioEngine.stopAll();
|
|
|
+ //调用Android的更好
|
|
|
+ cc.game.restart();
|
|
|
+ }
|
|
|
+ }
|
|
|
+ else {
|
|
|
+ console.log('KKKK 3 ', this.uin)
|
|
|
+ this.getUserInfo();
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
private async getUserInfo() {
|