|
|
@@ -272,7 +272,18 @@ 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) {
|
|
|
+ gData.wechatData.code = null;
|
|
|
+ this.reload();
|
|
|
+ }
|
|
|
+ else {
|
|
|
+ this.getUserInfo();
|
|
|
+ }
|
|
|
+ }
|
|
|
+ else {
|
|
|
+ this.getUserInfo();
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
private async getUserInfo() {
|