|
|
@@ -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) {
|