|
|
@@ -895,8 +895,10 @@ mk.console.logSingle("banner ", "onBannerAdShow");
|
|
|
var o = JSON.parse(e);
|
|
|
gData.adData.updateADLog(7, t, o);
|
|
|
};
|
|
|
-e.prototype.onBannerAdClick = function() {
|
|
|
+e.prototype.onBannerAdClick = function(t, e) {
|
|
|
mk.data.sendDataEvent(r.DataEventId.Ad_click, mk.ad.bannerAdType);
|
|
|
+var o = JSON.parse(e);
|
|
|
+gData.adData.updateADLog(55, t, o);
|
|
|
};
|
|
|
e.prototype.onBannerAdAutoRefresh = function() {
|
|
|
mk.console.logSingle("banner ", "onBannerAdAutoRefresh");
|
|
|
@@ -1295,8 +1297,15 @@ mk.data.sendDataEvent(s.DataEventId.interstitial2_init, mk.ad.interFullAdType);
|
|
|
}
|
|
|
gData.adData.updateADLog(a, t, n);
|
|
|
};
|
|
|
-e.prototype.onInterstitialAdClick = function(t) {
|
|
|
-1 == this.checkPlacementIDType(t) ? mk.data.sendDataEvent(s.DataEventId.Ad_click, mk.ad.interFullAdType) : mk.data.sendDataEvent(s.DataEventId.Ad_click, mk.ad.interAdType);
|
|
|
+e.prototype.onInterstitialAdClick = function(t, e) {
|
|
|
+var o = this.checkPlacementIDType(t), n = JSON.parse(e);
|
|
|
+if (1 == o) {
|
|
|
+mk.data.sendDataEvent(s.DataEventId.Ad_click, mk.ad.interFullAdType);
|
|
|
+gData.adData.updateADLog(56, t, n);
|
|
|
+} else {
|
|
|
+mk.data.sendDataEvent(s.DataEventId.Ad_click, mk.ad.interAdType);
|
|
|
+gData.adData.updateADLog(52, t, n);
|
|
|
+}
|
|
|
};
|
|
|
e.prototype.onInterstitialAdClose = function(t, e) {
|
|
|
var o = this.checkPlacementIDType(t);
|
|
|
@@ -1684,7 +1693,10 @@ this.ifLoadShow = !1;
|
|
|
var o = JSON.parse(e);
|
|
|
gData.adData.updateADLog(3, t, o);
|
|
|
};
|
|
|
-e.prototype.onNativeAdClick = function() {};
|
|
|
+e.prototype.onNativeAdClick = function(t, e) {
|
|
|
+var o = JSON.parse(e);
|
|
|
+gData.adData.updateADLog(53, t, o);
|
|
|
+};
|
|
|
return e;
|
|
|
}(r.zgSingleton);
|
|
|
o.ATNative = s;
|
|
|
@@ -1876,8 +1888,10 @@ this.canGet = !1;
|
|
|
this.reawardAdState = i.PlayEnd;
|
|
|
this.loadAd();
|
|
|
};
|
|
|
-e.prototype.onRewardedVideoAdPlayClicked = function() {
|
|
|
+e.prototype.onRewardedVideoAdPlayClicked = function(t, e) {
|
|
|
mk.data.sendDataEvent(r.DataEventId.Ad_click, mk.ad.videoAdType);
|
|
|
+var o = JSON.parse(e);
|
|
|
+gData.adData.updateADLog(51, t, o);
|
|
|
};
|
|
|
e.prototype.onReward = function() {
|
|
|
console.log("onReward ");
|
|
|
@@ -7594,25 +7608,25 @@ return;
|
|
|
}
|
|
|
this.listeners[t].push(new i(e, o));
|
|
|
};
|
|
|
-t.prototype.remove = function(t, e, o) {
|
|
|
-var n = this.listeners[t];
|
|
|
-if (n) {
|
|
|
-for (var a = n.length, i = 0; i < a; i++) if (n[i].compare(o)) {
|
|
|
-n.splice(i, 1);
|
|
|
+t.prototype.remove = function(t, e) {
|
|
|
+var o = this.listeners[t];
|
|
|
+if (o) {
|
|
|
+for (var n = o.length, a = 0; a < n; a++) if (o[a].compare(e)) {
|
|
|
+o.splice(a, 1);
|
|
|
break;
|
|
|
}
|
|
|
-0 == n.length && delete this.listeners[t];
|
|
|
+0 == o.length && delete this.listeners[t];
|
|
|
}
|
|
|
};
|
|
|
t.prototype.emit = function(t) {
|
|
|
for (var e = [], o = 1; o < arguments.length; o++) e[o - 1] = arguments[o];
|
|
|
-var a = this.listeners[t];
|
|
|
-if (a) {
|
|
|
-for (var i = a.concat(), r = i.length, c = 0; c < r; c++) {
|
|
|
-var s = i[c];
|
|
|
-s.notify.apply(s, n(e, [ t ]));
|
|
|
+var n = this.listeners[t];
|
|
|
+if (n) {
|
|
|
+for (var a = n.concat(), i = a.length, r = 0; r < i; r++) {
|
|
|
+var c = a[r];
|
|
|
+c.notify.apply(c, e);
|
|
|
}
|
|
|
-i = null;
|
|
|
+a = null;
|
|
|
}
|
|
|
};
|
|
|
return t;
|
|
|
@@ -11818,7 +11832,7 @@ Object.defineProperty(o, "__esModule", {
|
|
|
value: !0
|
|
|
});
|
|
|
o.Fun = void 0;
|
|
|
-var n, a = t("./AppData"), i = t("./GameData"), r = t("./HttpData"), c = t("./LoginData"), s = t("./StorageData"), l = t("./WechatData"), p = t("./module/HelpData"), u = t("./module/TurnableData"), d = t("./module/SignData"), h = t("./module/FissionData"), f = t("./AdData"), y = t("./module/RewardData"), g = t("./module/CashNormalData"), m = t("./module/ReceiptNoticeData"), _ = t("./module/BlessingBagData"), v = t("./module/CashProData"), b = t("./module/RedBagCashData"), D = t("./module/RedCodeData"), w = t("./module/MoreGameData"), S = t("./module/SettingData"), A = t("./module/GuideData"), k = t("./module/GuideWeakData"), P = t("./ConfigData"), O = t("./module/NewCashUIData"), I = t("../../before/view/data/ADUnlockData"), T = t("../../before/view/data/PlantData"), R = t("../../before/main/FarmSystem"), C = t("../../before/view/data/HarvestData"), N = t("../../before/view/data/ADClearSickData"), F = t("../../before/main/PastureSystem"), x = t("../../before/main/FactorySystem"), M = t("./module/FarmMapData"), j = t("./module/GradeRewardData"), E = t("./module/WalletCashOutData"), B = t("./module/LineUpUIData"), L = function() {
|
|
|
+var n, a = t("./AppData"), i = t("./GameData"), r = t("./HttpData"), c = t("./LoginData"), s = t("./StorageData"), l = t("./WechatData"), p = t("./module/HelpData"), u = t("./module/TurnableData"), d = t("./module/SignData"), h = t("./module/FissionData"), f = t("./AdData"), y = t("./module/RewardData"), g = t("./module/CashNormalData"), m = t("./module/ReceiptNoticeData"), _ = t("./module/BlessingBagData"), v = t("./module/CashProData"), b = t("./module/RedBagCashData"), D = t("./module/RedCodeData"), w = t("./module/MoreGameData"), S = t("./module/SettingData"), A = t("./module/GuideData"), k = t("./module/GuideWeakData"), P = t("./ConfigData"), O = t("./module/NewCashUIData"), I = t("../../before/view/data/ADUnlockData"), T = t("../../before/view/data/PlantData"), R = t("../../before/main/FarmSystem"), C = t("../../before/view/data/HarvestData"), N = t("../../before/view/data/ADClearSickData"), F = t("../../before/main/PastureSystem"), x = t("../../before/main/FactorySystem"), M = t("./module/FarmMapData"), j = t("./module/GradeRewardData"), L = t("./module/WalletCashOutData"), E = t("./module/LineUpUIData"), B = function() {
|
|
|
function t() {
|
|
|
this.init();
|
|
|
}
|
|
|
@@ -11856,8 +11870,8 @@ this.factorySystem = new x.default();
|
|
|
this.farmSystem = new R.FarmSystem();
|
|
|
this.farmMapData = new M.FarmMapData();
|
|
|
this.farmGradeData = new j.GradeRewardData();
|
|
|
-this.walletCashOutData = new E.WalletCashOutData();
|
|
|
-this.lineUpUIData = new B.LineUpUIData();
|
|
|
+this.walletCashOutData = new L.WalletCashOutData();
|
|
|
+this.lineUpUIData = new E.LineUpUIData();
|
|
|
this.moduleData = new Map();
|
|
|
this.moduleData.set(n.moreGame, this.moreGame);
|
|
|
this.moduleData.set(n.turnable, this.turnable);
|
|
|
@@ -11878,7 +11892,7 @@ t[t.sign = 6] = "sign";
|
|
|
t[t.cashNormal = 7] = "cashNormal";
|
|
|
t[t.redBagCash = 8] = "redBagCash";
|
|
|
})(n = o.Fun || (o.Fun = {}));
|
|
|
-window.gData = new L();
|
|
|
+window.gData = new B();
|
|
|
cc._RF.pop();
|
|
|
}, {
|
|
|
"../../before/main/FactorySystem": "FactorySystem",
|
|
|
@@ -13069,7 +13083,7 @@ set: function(t) {
|
|
|
this._redMoney = t;
|
|
|
gData.gameData.init_coin = !0;
|
|
|
gData.gameData.init_wallet_redMoney = !0;
|
|
|
-mk.ui.invokeRefreshEventByName("refreshCoin");
|
|
|
+mk.event.emit("refreshCoin");
|
|
|
mk.data.setTAEventUser(0, "current_redmoney_stock", this._redMoney);
|
|
|
},
|
|
|
enumerable: !1,
|
|
|
@@ -13153,6 +13167,7 @@ t.UPDATE_CashNum = "UPDATE_CashNum";
|
|
|
})(o.EVENT_TYPE || (o.EVENT_TYPE = {}));
|
|
|
(function(t) {
|
|
|
t.guide = "guide";
|
|
|
+t.guideSkip = "guideSkip";
|
|
|
t.button_click = "button_click";
|
|
|
t.video_init = "video_init";
|
|
|
t.video_end = "video_end";
|
|
|
@@ -15151,7 +15166,7 @@ return t.x >= o.x - this.node.width / 2 && t.x <= o.x + this.node.width / 2 && t
|
|
|
};
|
|
|
e.prototype.onDestroy = function() {
|
|
|
this._eventManager.removeListener(this._touchListener, this.node);
|
|
|
-mk.event.remove("close-panel", this.onClosePanel, this);
|
|
|
+mk.event.remove("close-panel", this);
|
|
|
};
|
|
|
return i([ c ], e);
|
|
|
}(cc.Component));
|
|
|
@@ -15518,6 +15533,7 @@ mk.ui.closePanel(this.node.name);
|
|
|
e.prototype.clickSkip = function() {
|
|
|
mk.audio.playEffect("button");
|
|
|
mk.data.sendXYEvent("guide", "skip_" + mk.guide.crtGuideID);
|
|
|
+mk.data.sendDataEvent(s.DataEventId.guideSkip, "新手引导第" + mk.guide.crtGuideID + "步跳过");
|
|
|
this.close();
|
|
|
};
|
|
|
e.prototype.onDestroy = function() {
|
|
|
@@ -16175,7 +16191,7 @@ value: !0
|
|
|
o.ServerUrl = o.HttpData = void 0;
|
|
|
var n, a = function() {
|
|
|
function t() {
|
|
|
-this.serverType = 1;
|
|
|
+this.serverType = 0;
|
|
|
}
|
|
|
t.prototype.getServerUrl = function() {
|
|
|
switch (this.serverType) {
|
|
|
@@ -16968,6 +16984,7 @@ return r;
|
|
|
t.updateSplashAdLog = function(t) {
|
|
|
var e = t.split("#"), o = JSON.parse(e[1]);
|
|
|
gData.adData.updateADLog(6, e[0], o);
|
|
|
+this.splashADid = e[0];
|
|
|
var n = mk.storage.getStorage("ad_openEcpm");
|
|
|
n ? n++ : n = 1;
|
|
|
mk.storage.setStorage("ad_openEcpm", n);
|
|
|
@@ -16975,6 +16992,7 @@ n <= 300 && (n <= 50 ? mk.data.sendDataEventValue(a.DataEventId.ad_openEcpm, "ad
|
|
|
};
|
|
|
t.clickSplash = function() {
|
|
|
mk.data.sendDataEvent(a.DataEventId.Ad_click, "splash_click");
|
|
|
+gData.adData.updateADLog(54, this.splashADid);
|
|
|
};
|
|
|
t.getAliRiskDeviceToken = function() {
|
|
|
var t = "";
|
|
|
@@ -17003,10 +17021,20 @@ cc.sys.os == cc.sys.OS_ANDROID ? this.callStaticMethod(this._JSB_ANDROID_PATH_JS
|
|
|
t.ysdkAuthSuccess = function() {
|
|
|
gData.loginData.passAnti = !0;
|
|
|
};
|
|
|
+t.updateActivateLog = function(t) {
|
|
|
+console.log("test>>> updateActivateLog ", t);
|
|
|
+var e = {
|
|
|
+appId: gData.appData.appId,
|
|
|
+uin: gData.loginData.uin,
|
|
|
+sessionDuration: t
|
|
|
+};
|
|
|
+mk.http.sendData("activateLog", e);
|
|
|
+};
|
|
|
t._JSB_ANDROID_PATH = "org/cocos2dx/javascript/thirdSdk/ThirdSdkMgr";
|
|
|
t._JSB_IOS_PATH = "ThirdSdkMgr";
|
|
|
t._JSB_ANDROID_PATH_JSDK = "org/cocos2dx/javascript/thirdSdk/ysdk/YSDKMgr";
|
|
|
t.callBack = null;
|
|
|
+t.splashADid = "";
|
|
|
return t;
|
|
|
}();
|
|
|
o.default = i;
|
|
|
@@ -20459,7 +20487,7 @@ this.showElectUI();
|
|
|
}
|
|
|
this.showChangePart();
|
|
|
this.initCashOutStyle(gData.gameData.playerProp.redMoney);
|
|
|
-mk.ui.registerRefreshEvent(this, this.initCashOutStyle.bind(this), "refreshCoin");
|
|
|
+mk.event.register("refreshCoin", this.initCashOutStyle.bind(this), this);
|
|
|
};
|
|
|
e.prototype.showElectUI = function() {
|
|
|
this.sendRecommendList();
|
|
|
@@ -20489,7 +20517,7 @@ gData.adData.checkPopInter(u.InterAdType.interstitial1_click_1);
|
|
|
this.showNativeAd ? mk.ad.showNative() : mk.ad.showBanner(u.BannerAdType.banner_click_3);
|
|
|
};
|
|
|
e.prototype.onDisable = function() {
|
|
|
-mk.ui.removeRefreshEvent(this);
|
|
|
+mk.event.remove("refreshCoin", this);
|
|
|
this.showNativeAd ? mk.ad.destroyNativeAd() : mk.ad.destoryBanner();
|
|
|
};
|
|
|
e.prototype.initCashOutStyle = function(t) {
|
|
|
@@ -23555,7 +23583,7 @@ this.initTaskProgressUI();
|
|
|
this.showChangePart();
|
|
|
}
|
|
|
this.initCashOutStyle(gData.gameData.playerProp.redMoney);
|
|
|
-mk.ui.registerRefreshEvent(this, this.initCashOutStyle.bind(this), "refreshCoin");
|
|
|
+mk.event.register("refreshCoin", this.initCashOutStyle.bind(this), this);
|
|
|
}
|
|
|
};
|
|
|
e.prototype.showNewTaskUI = function() {
|
|
|
@@ -23570,7 +23598,7 @@ e.prototype.onEnable = function() {
|
|
|
mk.ad.showNative();
|
|
|
};
|
|
|
e.prototype.onDisable = function() {
|
|
|
-mk.ui.removeRefreshEvent(this);
|
|
|
+mk.event.remove("refreshCoin", this);
|
|
|
mk.ad.destroyNativeAd();
|
|
|
};
|
|
|
e.prototype.update = function(t) {
|
|
|
@@ -26058,13 +26086,13 @@ return e;
|
|
|
e.prototype.start = function() {
|
|
|
this.initCashOutStyle(gData.gameData.playerProp.redMoney);
|
|
|
this.lbl_remainTimes.string = "今日剩余次数:" + gData.gameData.playerProp.speedUpLeftTimes;
|
|
|
-mk.ui.registerRefreshEvent(this, this.initCashOutStyle.bind(this), "refreshCoin");
|
|
|
+mk.event.register("refreshCoin", this.initCashOutStyle.bind(this), this);
|
|
|
};
|
|
|
e.prototype.onEnable = function() {
|
|
|
mk.ad.showBanner(s.BannerAdType.banner_click_5);
|
|
|
};
|
|
|
e.prototype.onDisable = function() {
|
|
|
-mk.ui.removeRefreshEvent(this);
|
|
|
+mk.event.remove("refreshCoin", this);
|
|
|
mk.ad.destoryBanner();
|
|
|
};
|
|
|
e.prototype.update = function() {
|
|
|
@@ -28304,7 +28332,7 @@ e.prototype.onLoad = function() {};
|
|
|
e.prototype.start = function() {
|
|
|
mk.ad.showBanner(r.BannerAdType.banner_click_9);
|
|
|
this.initCashOutStyle(gData.gameData.playerProp.redMoney);
|
|
|
-mk.ui.registerRefreshEvent(this, this.initCashOutStyle.bind(this), "refreshCoin");
|
|
|
+mk.event.register("refreshCoin", this.initCashOutStyle.bind(this), this);
|
|
|
};
|
|
|
e.prototype.update = function() {
|
|
|
gData.reward.add_redbag_value && this.initCashOutStyle(gData.gameData.playerProp.redMoney + gData.reward.add_redbag_value);
|
|
|
@@ -28331,7 +28359,7 @@ gData.reward.addReward();
|
|
|
mk.ui.closePanel(this.node.name);
|
|
|
};
|
|
|
e.prototype.onDisable = function() {
|
|
|
-mk.ui.removeRefreshEvent(this);
|
|
|
+mk.event.remove("refreshCoin", this);
|
|
|
};
|
|
|
e.prototype.onClickClose = function() {
|
|
|
mk.audio.playEffect("button");
|
|
|
@@ -29106,12 +29134,10 @@ e.isPanelOpeningArr = [];
|
|
|
e.isPanelClosingArr = [];
|
|
|
e.curOnPanelDic = {};
|
|
|
e.lastOpenPanelName = "";
|
|
|
-e.registerCallBack = new Map();
|
|
|
return e;
|
|
|
}
|
|
|
e.prototype.onLoad = function() {
|
|
|
mk.ui = this;
|
|
|
-this.registerCallBack.clear();
|
|
|
};
|
|
|
e.prototype.start = function() {
|
|
|
this.panelParent || (this.panelParent = this.node);
|
|
|
@@ -29201,26 +29227,6 @@ mk.event.emit("close-panel", e);
|
|
|
mk.ad.destroyNativeAd();
|
|
|
mk.ad.destoryBanner();
|
|
|
};
|
|
|
-e.prototype.registerRefreshEvent = function(t, e, o) {
|
|
|
-void 0 === e && (e = null);
|
|
|
-void 0 === o && (o = "default");
|
|
|
-var n = this.registerCallBack.get(t);
|
|
|
-if (n) n.set(o, e); else {
|
|
|
-var a = new Map();
|
|
|
-a.set(o, e);
|
|
|
-this.registerCallBack.set(t, a);
|
|
|
-}
|
|
|
-};
|
|
|
-e.prototype.invokeRefreshEventByName = function(t) {
|
|
|
-this.registerCallBack.forEach(function(e) {
|
|
|
-e.forEach(function(e, o) {
|
|
|
-o === t && e && e();
|
|
|
-});
|
|
|
-});
|
|
|
-};
|
|
|
-e.prototype.removeRefreshEvent = function(t) {
|
|
|
-this.registerCallBack.get(t) && this.registerCallBack.delete(t);
|
|
|
-};
|
|
|
return i([ s ], e);
|
|
|
}(cc.Component));
|
|
|
o.default = l;
|