wuwangdong 4 yıl önce
ebeveyn
işleme
0d953e6ee5

Dosya farkı çok büyük olduğundan ihmal edildi
+ 0 - 0
assets/resources/module/login/hot/project.manifest


+ 57 - 54
assets/script/game/data/LoginData.ts

@@ -201,6 +201,9 @@ export class LoginData {
                 //清除缓存
                 console.log('restart  errcode ', response.errcode)
                 this.reload();
+            } else if (response.errcode == 403) {
+                console.log('block 403');
+                gData.warnTipData.setSolution(4);
             }
             return;
         }
@@ -232,67 +235,67 @@ export class LoginData {
         this.checkLogin();
     }
 
-  /**
-     * 检测登录
-     * @returns 
-     */
-   private async checkLogin() {
-    //checkLogin
-    let tmp_key = '';
-    if (gData.wechatData.code != null) {
-        tmp_key = this.sessionKey;
-    }
-    else {
-        tmp_key = mk.encrypt.randomString();
-    }
-
-    let data = {
-        "tmp_key": tmp_key,
-        "uin": this.uin,
-        "login_ticket": this.loginTicket,
-        "appId": gData.appData.appId
-    }
-    let response = await mk.http.sendRequest('checklogin', 'POST', JSON.stringify(data));
-    if (response.errcode != 0) {
-        if (response.errcode == 403) {
-            console.log('block 403');
-            gData.warnTipData.setSolution(4);
+    /**
+       * 检测登录
+       * @returns 
+       */
+    private async checkLogin() {
+        //checkLogin
+        let tmp_key = '';
+        if (gData.wechatData.code != null) {
+            tmp_key = this.sessionKey;
+        }
+        else {
+            tmp_key = mk.encrypt.randomString();
         }
-        return;
-    }
-    let decryptData;
-    if (gData.wechatData.code != null) {
-        decryptData = mk.encrypt.decrypt(response.encrypt, this.sessionKey, gData.appData.appId);
-    }
-    else {
-        decryptData = mk.encrypt.decrypt(response.encrypt, tmp_key, gData.appData.appId);
-    }
 
-    let parseData = JSON.parse(decryptData);
-    this.sessionKey = parseData.session_key;
-    mk.console.logSingle("[FC]checkLogin decrypt", parseData);
-    console.log("this.sessionKey  ", this.sessionKey);
-    mk.storage.setStorage(StorageKey.sessionKey, this.sessionKey);
-    if (gData.wechatData.code != null) {
-        if (this.isNew) {
-            console.log('KKKK 1 ', this.uin)
-            this.getUserInfo();
+        let data = {
+            "tmp_key": tmp_key,
+            "uin": this.uin,
+            "login_ticket": this.loginTicket,
+            "appId": gData.appData.appId
+        }
+        let response = await mk.http.sendRequest('checklogin', 'POST', JSON.stringify(data));
+        if (response.errcode != 0) {
+            if (response.errcode == 403) {
+                console.log('block 403');
+                gData.warnTipData.setSolution(4);
+            }
+            return;
+        }
+        let decryptData;
+        if (gData.wechatData.code != null) {
+            decryptData = mk.encrypt.decrypt(response.encrypt, this.sessionKey, gData.appData.appId);
         }
         else {
-            console.log('KKKK 2 ', this.uin)
-            this.isNew = false;
-            gData.wechatData.code = null;
+            decryptData = mk.encrypt.decrypt(response.encrypt, tmp_key, gData.appData.appId);
+        }
 
-            cc.audioEngine.stopAll();
-            //调用Android的更好
-            cc.game.restart();
+        let parseData = JSON.parse(decryptData);
+        this.sessionKey = parseData.session_key;
+        mk.console.logSingle("[FC]checkLogin decrypt", parseData);
+        console.log("this.sessionKey  ", this.sessionKey);
+        mk.storage.setStorage(StorageKey.sessionKey, this.sessionKey);
+        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();
         }
     }
-    else {
-        console.log('KKKK 3 ', this.uin)
-        this.getUserInfo();
-    }
-}
 
     private async getUserInfo() {
         this.getAccountInfo();

BIN
build/jsb-link/assets/main/index.jsc


Dosya farkı çok büyük olduğundan ihmal edildi
+ 0 - 0
build/jsb-link/assets/resources/config.json


Dosya farkı çok büyük olduğundan ihmal edildi
+ 0 - 0
build/jsb-link/assets/resources/native/a8/a81eb395-718d-4f3b-958c-cb871f7dd5fa.manifest


BIN
build/jsb-link/frameworks/runtime-src/proj.android-studio/.idea/caches/build_file_checksums.ser


+ 3 - 0
build/jsb-link/js backups (useful for debugging)/main.index.js

@@ -21487,6 +21487,9 @@ console.log("==== tongdun set block");
 } else if (-10003 == i.errcode || -20003 == i.errcode) {
 console.log("restart  errcode ", i.errcode);
 this.reload();
+} else if (403 == i.errcode) {
+console.log("block 403");
+gData.warnTipData.setSolution(4);
 }
 return [ 2 ];
 }

+ 2 - 2
packages-hot-update/cfg.json

@@ -12,7 +12,7 @@
         "https://xcx-box.oss-cn-hangzhou.aliyuncs.com/hotgame/kncdsfTest/baseRemote/",
         "https://xcx-box.oss-cn-hangzhou.aliyuncs.com/hotgame/kncdsf/baseRemote/"
     ],
-    "buildTime": 1639216297628,
-    "genTime": 1639216297628,
+    "buildTime": 1639219170439,
+    "genTime": 1639219170439,
     "genVersion": null
 }

Dosya farkı çok büyük olduğundan ihmal edildi
+ 0 - 0
packages-hot-update/manifest/project.manifest


BIN
packages-hot-update/versions/ver_1_0.11.zip


Bu fark içinde çok fazla dosya değişikliği olduğu için bazı dosyalar gösterilmiyor