|
|
@@ -42,6 +42,8 @@ export default class Login extends cc.Component {
|
|
|
|
|
|
private coreGame = null;
|
|
|
|
|
|
+ private hasCheckChannel = false;
|
|
|
+
|
|
|
onLoad() {
|
|
|
this.lbl_progress.node.active = false;
|
|
|
this.node_load.active = true;
|
|
|
@@ -112,21 +114,6 @@ export default class Login extends cc.Component {
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
- if (!CC_DEBUG) {
|
|
|
- if (gData.loginData.popIdentifySwitch) {
|
|
|
- if (!this.hasCheckAnti) {
|
|
|
- this.hasCheckAnti = true
|
|
|
- // this.checkShowIdentification()
|
|
|
- JsbSystem.ysdkInit();
|
|
|
- JsbSystem.autologin();
|
|
|
- }
|
|
|
-
|
|
|
- if (!gData.loginData.passAnti) {
|
|
|
- return
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
if (gData.loginData.loadResCompelete) {
|
|
|
if (mk.aliRiskManager.getRiskCode) {
|
|
|
mk.aliRiskManager.getRiskCode = false;
|
|
|
@@ -144,6 +131,19 @@ export default class Login extends cc.Component {
|
|
|
// this.node_btnLogin.active = true;
|
|
|
// }
|
|
|
|
|
|
+ if (!CC_DEBUG) {
|
|
|
+
|
|
|
+ if(!this.hasCheckChannel)
|
|
|
+ {
|
|
|
+ this.hasCheckChannel = true;
|
|
|
+ gData.loginData.getUserChannel();
|
|
|
+ }
|
|
|
+ if (!gData.loginData.passAnti) {
|
|
|
+ return
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
if (!this.loadSceneState) {
|
|
|
this.loadSceneState = true;
|
|
|
this.loadMain();
|