|
|
@@ -12570,6 +12570,7 @@ this._farmData[n].state == s.Sick && a++;
|
|
|
}
|
|
|
this.RawInsectCurArr[0] = a;
|
|
|
}
|
|
|
+this.setMaxProduct(10003, !0);
|
|
|
};
|
|
|
t.prototype.setProductMapFromJson = function() {
|
|
|
for (var t = this.configs.Product, e = t.length, o = null, n = "", a = [], i = 0; i < e; i++) {
|
|
|
@@ -12617,6 +12618,12 @@ this._productMakeTimesData.push(r);
|
|
|
var c = t + 1, s = this.getProductMap(t), l = this.getProductMap(c);
|
|
|
t == this.getMaxProduct(s.tab) && l && (gData.plantData.init_itemIndex = c);
|
|
|
if (l && l.tab == s.tab && c > this.getMaxProduct(s.tab) && 1 == l.unlock && l.value <= e) {
|
|
|
+this._productMakeTimesMap.set(c, 0);
|
|
|
+r = {
|
|
|
+id: c,
|
|
|
+times: 0
|
|
|
+};
|
|
|
+this._productMakeTimesData.push(r);
|
|
|
this.setMaxProduct(c);
|
|
|
this.getProductMap(c + 1) && (gData.plantData.init_lock = c + 1);
|
|
|
}
|
|
|
@@ -12648,7 +12655,7 @@ this._pastureData || (this._pastureData = []);
|
|
|
var t = this._pastureData.length;
|
|
|
if (t < 3) {
|
|
|
for (var e = this.getProductArrByType(p.dw), o = e.length, n = 30001, a = null, r = 0; r < o; r++) {
|
|
|
-a = this.playerProp.gradeLevel < e[r].value ? {
|
|
|
+a = this.playerProp.completeFarmTaskTimes < e[r].value ? {
|
|
|
id: n,
|
|
|
state: l.Lock,
|
|
|
productID: e[r].picture,
|
|
|
@@ -12696,17 +12703,20 @@ if (t < 6) {
|
|
|
for (var e = 30004, o = null, n = null, a = 0; a < 6; a++) {
|
|
|
n = this.getTabByConfigID(e);
|
|
|
var r = this.getProductArrByType(n);
|
|
|
-o = this.playerProp.completeFarmTaskTimes < r[0].value ? {
|
|
|
+if (this.playerProp.completeFarmTaskTimes < r[0].value) o = {
|
|
|
id: e,
|
|
|
state: u.Lock,
|
|
|
productID: 0,
|
|
|
growSpan: 0
|
|
|
-} : {
|
|
|
+}; else {
|
|
|
+o = {
|
|
|
id: e,
|
|
|
state: u.Empty,
|
|
|
productID: 0,
|
|
|
growSpan: 0
|
|
|
};
|
|
|
+this.setMaxProduct(r[0].picture, !0);
|
|
|
+}
|
|
|
this._factoryData.push(o);
|
|
|
this._factoryDataMap.set(e, o);
|
|
|
e++;
|
|
|
@@ -12714,9 +12724,13 @@ e++;
|
|
|
this.setProp(i.factoryData, this._factoryData);
|
|
|
} else {
|
|
|
var c = 0;
|
|
|
-for (a = 0; a < t; a++) {
|
|
|
+for (e = 30004, n = null, a = 0; a < t; a++) {
|
|
|
+n = this.getTabByConfigID(e);
|
|
|
+r = this.getProductArrByType(n);
|
|
|
this._factoryDataMap.set(this._factoryData[a].id, this._factoryData[a]);
|
|
|
this._factoryData[a].state == u.Sick && c++;
|
|
|
+this.playerProp.completeFarmTaskTimes >= r[0].value && this.setMaxProduct(r[0].picture, !0);
|
|
|
+e++;
|
|
|
}
|
|
|
this.RawInsectCurArr[2] = c;
|
|
|
}
|
|
|
@@ -12817,7 +12831,6 @@ for (var t in p) {
|
|
|
var e = p[t], o = this.getProductArrByType(e), n = o.length, a = null, r = !1;
|
|
|
switch (e) {
|
|
|
case p.nzw:
|
|
|
-this.setMaxProduct(10003, !0);
|
|
|
break;
|
|
|
|
|
|
case p.dw:
|
|
|
@@ -16895,6 +16908,9 @@ t.shareInviteUrl = function(t, e, o, n) {
|
|
|
cc.sys.platform != cc.sys.WECHAT_GAME && (cc.sys.os == cc.sys.OS_ANDROID ? jsb.reflection.callStaticMethod(this._JSB_ANDROID_PATH, "shareInviteUrl", "(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V", t, e, o, n) : (cc.sys.os,
|
|
|
cc.sys.OS_IOS));
|
|
|
};
|
|
|
+t.initAndSetupCallback = function() {
|
|
|
+cc.sys.os == cc.sys.OS_ANDROID ? jsb.reflection.callStaticMethod(this._JSB_ANDROID_PATH, "initAndSetupCallback", "()V") : cc.sys.os == cc.sys.OS_IOS && jsb.reflection.callStaticMethod("GameConfig", "initAndSetupCallback:", "");
|
|
|
+};
|
|
|
t._JSB_ANDROID_PATH = "org/cocos2dx/javascript/thirdSdk/ThirdSdkMgr";
|
|
|
t._JSB_IOS_PATH = "ThirdSdkMgr";
|
|
|
t.callBack = null;
|
|
|
@@ -17945,14 +17961,11 @@ this.hasCheckPermission = !0;
|
|
|
l.default.checkPermission();
|
|
|
}
|
|
|
if (gData.appData.getDeviceInfoCompelete) {
|
|
|
-if (gData.loginData.popIdentifySwitch) {
|
|
|
if (!this.hasCheckAnti) {
|
|
|
this.hasCheckAnti = !0;
|
|
|
this.checkShowIdentification();
|
|
|
}
|
|
|
-if (!gData.loginData.passAnti) return;
|
|
|
-}
|
|
|
-if (gData.loginData.loadResCompelete) {
|
|
|
+if (gData.loginData.passAnti) if (gData.loginData.loadResCompelete) {
|
|
|
if (mk.aliRiskManager.getRiskCode) {
|
|
|
mk.aliRiskManager.getRiskCode = !1;
|
|
|
this.login();
|
|
|
@@ -18140,7 +18153,10 @@ return [ 2 ];
|
|
|
});
|
|
|
};
|
|
|
e.prototype.checkShowIdentification = function() {
|
|
|
-1 == mk.storage.getStorage("identification") ? gData.loginData.passAnti = !0 : mk.ui.openPanel("module/certification/CertificationNode");
|
|
|
+if (1 == mk.storage.getStorage("identification")) {
|
|
|
+l.default.initAndSetupCallback();
|
|
|
+gData.loginData.passAnti = !0;
|
|
|
+} else l.default.initAndSetupCallback();
|
|
|
};
|
|
|
e.prototype.clickLogin = function() {
|
|
|
var t = this;
|
|
|
@@ -21610,8 +21626,6 @@ return this.data.tab != l.ProductType.nzw ? [ 3, 2 ] : [ 4, gData.farmSystem.pla
|
|
|
|
|
|
case 1:
|
|
|
t = o.sent();
|
|
|
-gData.gameData.nextMake = null;
|
|
|
-gData.gameData.setNextProduct(!1);
|
|
|
return [ 3, 4 ];
|
|
|
|
|
|
case 2:
|