|
|
@@ -1816,7 +1816,7 @@ Object.defineProperty(n, "__esModule", {
|
|
|
value: !0
|
|
|
});
|
|
|
n.AdFun = n.AdData = void 0;
|
|
|
-var a = function() {
|
|
|
+var a, r = t("./GameData"), c = function() {
|
|
|
function t() {
|
|
|
this.placementId = "";
|
|
|
this.adunit_format = "";
|
|
|
@@ -1844,7 +1844,13 @@ enumerable: !1,
|
|
|
configurable: !0
|
|
|
});
|
|
|
t.prototype.init = function() {
|
|
|
-this.datas = [ , gData.reward, gData.reward, gData.reward, gData.turnable, gData.sign, gData.blessingBag ];
|
|
|
+this.adMap = new Map();
|
|
|
+this.adMap.set(a.bubble, gData.reward);
|
|
|
+this.adMap.set(a.checkpoint, gData.reward);
|
|
|
+this.adMap.set(a.settlement, gData.reward);
|
|
|
+this.adMap.set(a.turntable, gData.turnable);
|
|
|
+this.adMap.set(a.sign, gData.sign);
|
|
|
+this.adMap.set(a.bigCash, gData.blessingBag);
|
|
|
};
|
|
|
t.prototype.checkAdMax = function() {
|
|
|
this.watchNumToday++;
|
|
|
@@ -1873,9 +1879,9 @@ this.ecpm_level = e.ecpm_level;
|
|
|
};
|
|
|
t.prototype.watchVideo = function(t) {
|
|
|
return o(this, void 0, void 0, function() {
|
|
|
-var e, n;
|
|
|
-return i(this, function(o) {
|
|
|
-switch (o.label) {
|
|
|
+var e, n, o, a;
|
|
|
+return i(this, function(i) {
|
|
|
+switch (i.label) {
|
|
|
case 0:
|
|
|
this.ad_subType = t;
|
|
|
e = {
|
|
|
@@ -1906,8 +1912,11 @@ mk.console.logSingle("updateVideoData:", e);
|
|
|
return [ 4, mk.http.sendData("updateVideo", e) ];
|
|
|
|
|
|
case 1:
|
|
|
-if (0 != (n = o.sent()).errcode) return [ 2 ];
|
|
|
-this.datas[this.ad_subType] && this.datas[this.ad_subType].setAdData(n.data);
|
|
|
+if (0 != (n = i.sent()).errcode) return [ 2 ];
|
|
|
+o = gData.gameData.getProp(r.GameProp.videoTimes);
|
|
|
+gData.gameData.setProp(r.GameProp.videoTimes, o++);
|
|
|
+o < 5 && mk.data.sendXYEvent("ad_" + o, "第" + o + "次看视频");
|
|
|
+(a = this.adMap.get(this.ad_subType)) && a.setAdData(n.data);
|
|
|
return [ 2 ];
|
|
|
}
|
|
|
});
|
|
|
@@ -1915,7 +1924,7 @@ return [ 2 ];
|
|
|
};
|
|
|
return t;
|
|
|
}();
|
|
|
-n.AdData = a;
|
|
|
+n.AdData = c;
|
|
|
(function(t) {
|
|
|
t[t.bubble = 1] = "bubble";
|
|
|
t[t.checkpoint = 2] = "checkpoint";
|
|
|
@@ -1923,9 +1932,11 @@ t[t.settlement = 3] = "settlement";
|
|
|
t[t.turntable = 4] = "turntable";
|
|
|
t[t.sign = 5] = "sign";
|
|
|
t[t.bigCash = 6] = "bigCash";
|
|
|
-})(n.AdFun || (n.AdFun = {}));
|
|
|
+})(a = n.AdFun || (n.AdFun = {}));
|
|
|
cc._RF.pop();
|
|
|
-}, {} ],
|
|
|
+}, {
|
|
|
+"./GameData": "GameData"
|
|
|
+} ],
|
|
|
AdSystem: [ function(t, e, n) {
|
|
|
"use strict";
|
|
|
cc._RF.push(e, "1466aRVSRRPbZv+MJLJVOZg", "AdSystem");
|
|
|
@@ -5536,6 +5547,22 @@ t.prototype.sendDataEvent = function(t, e) {
|
|
|
console.log("===[DataSystem", t, e);
|
|
|
t && e && o.default.sendEvent(t, e);
|
|
|
};
|
|
|
+t.prototype.sendXYEvent = function(t, e) {
|
|
|
+if (t && e) {
|
|
|
+var n = {
|
|
|
+uin: gData.loginData.uin,
|
|
|
+isFirstDay: 1 == gData.gameData.gameData.loginDays ? 1 : 0,
|
|
|
+umengChannel: gData.appData.umengChannel,
|
|
|
+deviceType: gData.appData.deviceType,
|
|
|
+androidVerison: gData.appData.androidVersion,
|
|
|
+version: gData.appData.appVersion,
|
|
|
+point: t,
|
|
|
+description: e,
|
|
|
+tfChannel: gData.appData.tfChannel
|
|
|
+};
|
|
|
+mk.http.sendData("cp", n);
|
|
|
+}
|
|
|
+};
|
|
|
return t;
|
|
|
}();
|
|
|
n.default = i;
|
|
|
@@ -7542,6 +7569,8 @@ t[t.newPlayer = 1] = "newPlayer";
|
|
|
t[t.guideID = 2] = "guideID";
|
|
|
t[t.isAutoOpenPanel = 3] = "isAutoOpenPanel";
|
|
|
t[t.isOpenBankOnCloseCash = 4] = "isOpenBankOnCloseCash";
|
|
|
+t[t.videoTimes = 5] = "videoTimes";
|
|
|
+t[t.cashTimes = 6] = "cashTimes";
|
|
|
t[t.levelNum = 10] = "levelNum";
|
|
|
t[t.hammerPropNum = 1001] = "hammerPropNum";
|
|
|
t[t.resetPropNum = 1002] = "resetPropNum";
|
|
|
@@ -8040,7 +8069,7 @@ mk.ad.destroyNativeAd();
|
|
|
mk.ui.closePanel(this.node.name);
|
|
|
};
|
|
|
e.prototype.onClickBackBtn = function() {
|
|
|
-r.default.Inst.restart(!1);
|
|
|
+r.default.Inst.restart();
|
|
|
r.default.Inst.node.active = !1;
|
|
|
mk.ad.destroyNativeAd();
|
|
|
mk.ui.closePanel(this.node.name);
|
|
|
@@ -8483,7 +8512,7 @@ return r;
|
|
|
};
|
|
|
e.prototype.onWxAuthBack = function() {
|
|
|
if (this.node.active) {
|
|
|
-this.restart(!1);
|
|
|
+this.restart();
|
|
|
mk.ui.getCurOnPanel("RedPacketUI") && mk.ui.closePanel("RedPacketUI");
|
|
|
}
|
|
|
this.initLevel();
|
|
|
@@ -8624,6 +8653,7 @@ mk.data.sendDataEvent(y.DataEventId.level, "关卡通关");
|
|
|
this.ifPass = !0;
|
|
|
n.Inst.ifGetPass = !1;
|
|
|
var t = gData.gameData.getProp(y.GameProp.levelNum);
|
|
|
+0 == t && mk.data.sendXYEvent("firstlevel", "完成第一关");
|
|
|
mk.console.log("[Game]pass passLevelNum", t);
|
|
|
n.Inst.ifGetPass = !0;
|
|
|
gData.gameData.setProp(y.GameProp.levelNum, ++t);
|
|
|
@@ -9728,14 +9758,17 @@ this.setGuideID(this.crtGuideID++);
|
|
|
}
|
|
|
};
|
|
|
t.prototype.setGuideID = function(t) {
|
|
|
-null == gData.guideData.getGuidesByID(t) && (t = 9999);
|
|
|
+if (null == gData.guideData.getGuidesByID(t)) {
|
|
|
+t = 9999;
|
|
|
+mk.data.sendXYEvent("guide_end", "新手引导结束");
|
|
|
+}
|
|
|
gData.gameData.setProp(o.GameProp.guideID, t);
|
|
|
};
|
|
|
t.prototype.close = function() {
|
|
|
this.crtGuideID++;
|
|
|
};
|
|
|
t.prototype.isGuideComplete = function() {
|
|
|
-return !this.crtGuideID || 999 === this.crtGuideID;
|
|
|
+return !this.crtGuideID || 9999 === this.crtGuideID;
|
|
|
};
|
|
|
t.prototype.isGuiding = function() {
|
|
|
return null != mk.ui.getCurOnPanel("guide");
|
|
|
@@ -10597,7 +10630,7 @@ value: !0
|
|
|
n.ServerUrl = n.HttpData = void 0;
|
|
|
var o, i = function() {
|
|
|
function t() {
|
|
|
-this.serverType = 1;
|
|
|
+this.serverType = 0;
|
|
|
}
|
|
|
t.prototype.getServerUrl = function() {
|
|
|
switch (this.serverType) {
|
|
|
@@ -11784,11 +11817,11 @@ l.default.getWxAppId();
|
|
|
l.default.checkPermission();
|
|
|
console.log("appversion ", gData.appData.appVersion);
|
|
|
gData.loginData.init();
|
|
|
-this.checkRemoveLocalHot();
|
|
|
return [ 4, this.checkForceUpate() ];
|
|
|
|
|
|
case 1:
|
|
|
t.sent();
|
|
|
+this.checkRemoveLocalHot();
|
|
|
mk.audio.init();
|
|
|
return [ 2 ];
|
|
|
}
|
|
|
@@ -15264,6 +15297,9 @@ this.node_unlock.active = !0;
|
|
|
e.prototype.clickCashOP = function() {
|
|
|
if (this.item_data.index > gData.redBagCash.cash_bar + 1) mk.tip.pop("请按顺序提现"); else {
|
|
|
mk.data.sendDataEvent(s.DataEventId.commonWithDrawal, "常规提现-红包币提现成功");
|
|
|
+var t = gData.gameData.getProp(s.GameProp.cashTimes);
|
|
|
+gData.gameData.setProp(s.GameProp.cashTimes, t++);
|
|
|
+t < 4 && mk.data.sendXYEvent("cash_" + t, "第" + t + "次提现");
|
|
|
gData.redBagCash.cashOP();
|
|
|
}
|
|
|
};
|
|
|
@@ -15370,10 +15406,12 @@ mk.tween.move(o, .6, n, a, null, "backOut");
|
|
|
}, i = this, a = 0; a < e; a++) o(a);
|
|
|
};
|
|
|
e.prototype.initMoney = function() {
|
|
|
-this.lbl_redbag.string = "" + gData.gameData.gameData.redMoney;
|
|
|
-var t = gData.gameData.gameData.redMoney / 1e4;
|
|
|
-t = t > 1 ? Math.floor(t) : parseFloat(t.toFixed(2));
|
|
|
-this.lbl_rmb.string = "" + t;
|
|
|
+var t = gData.gameData.gameData.redMoney;
|
|
|
+t = parseFloat(t.toFixed(2));
|
|
|
+this.lbl_redbag.string = "" + t;
|
|
|
+var e = gData.gameData.gameData.redMoney / 1e4;
|
|
|
+e = e > 1 ? Math.floor(e) : parseFloat(e.toFixed(2));
|
|
|
+this.lbl_rmb.string = "" + e;
|
|
|
};
|
|
|
e.prototype.onDestroy = function() {
|
|
|
if (!gData.gameData.getProp(c.GameProp.isOpenBankOnCloseCash)) {
|
|
|
@@ -16707,6 +16745,7 @@ e.prototype.clickGetReward = function() {
|
|
|
cc.log("获取奖励:", gData.reward.data);
|
|
|
gData.reward.flyCoinAnim();
|
|
|
this.onClickClose();
|
|
|
+0 == gData.gameData.getProp(p.GameProp.videoTimes) && mk.data.sendXYEvent("guide_receive", "新手引导领取2500红包币");
|
|
|
};
|
|
|
e.prototype.clickCashOut = function() {
|
|
|
gData.reward.addReward();
|
|
|
@@ -16717,7 +16756,7 @@ e.prototype.clickNextMission = function() {
|
|
|
l.default.Inst.nextLevel();
|
|
|
};
|
|
|
e.prototype.clickBack = function() {
|
|
|
-l.default.Inst.restart(!1);
|
|
|
+l.default.Inst.restart();
|
|
|
l.default.Inst.node.active = !1;
|
|
|
};
|
|
|
e.prototype.onDestroy = function() {
|