Procházet zdrojové kódy

修复强更失败问题

kaka před 4 roky
rodič
revize
59e225d8e4
1 změnil soubory, kde provedl 19 přidání a 19 odebrání
  1. 19 19
      assets/script/game/module/login/Login.ts

+ 19 - 19
assets/script/game/module/login/Login.ts

@@ -71,6 +71,25 @@ export default class Login extends cc.Component {
     }
 
     update() {
+        if (!this.hasCheckPrivacy) {
+            this.hasCheckPrivacy = true
+            this.checkPrivacy()
+        }
+
+        if (!gData.loginData.passPrivacy) {
+            return;
+        }
+
+        if (!this.hasCheckPermission) {
+            this.hasCheckPermission = true;
+            //获取手机授权
+            JsbSystem.checkPermission();
+        }
+
+        if (!gData.appData.getDeviceInfoCompelete) {
+            return
+        }
+
         if (!this.hasDeviceBackInit) {
             this.hasDeviceBackInit = true;
             this.getAppVersion();
@@ -93,25 +112,6 @@ export default class Login extends cc.Component {
             return;
         }
 
-        if (!this.hasCheckPrivacy) {
-            this.hasCheckPrivacy = true
-            this.checkPrivacy()
-        }
-
-        if (!gData.loginData.passPrivacy) {
-            return;
-        }
-
-        if (!this.hasCheckPermission) {
-            this.hasCheckPermission = true;
-            //获取手机授权
-            JsbSystem.checkPermission();
-        }
-
-        if (!gData.appData.getDeviceInfoCompelete) {
-            return
-        }
-
         if (!CC_DEBUG) {
             if (gData.loginData.popIdentifySwitch) {
                 if (!this.hasCheckAnti) {