|
|
@@ -660,12 +660,20 @@ if (cc.sys.os === cc.sys.OS_IOS) return c.default.topon_fullinter_placementId;
|
|
|
if (cc.sys.os === cc.sys.OS_ANDROID) return c.default.topon_fullinter_placementId;
|
|
|
}
|
|
|
};
|
|
|
+e.prototype.checkPlacementIDType = function(t) {
|
|
|
+if (cc.sys.os === cc.sys.OS_IOS) {
|
|
|
+if (t == c.default.topon_inter_placementId) return 0;
|
|
|
+if (t == c.default.topon_fullinter_placementId) return 1;
|
|
|
+} else if (cc.sys.os === cc.sys.OS_ANDROID) {
|
|
|
+if (t == c.default.topon_inter_placementId) return 0;
|
|
|
+if (t == c.default.topon_fullinter_placementId) return 1;
|
|
|
+}
|
|
|
+};
|
|
|
e.prototype.hasAdReady = function() {
|
|
|
return this.ATInterstitialJS.hasAdReady();
|
|
|
};
|
|
|
e.prototype.loadInter = function(t, e) {
|
|
|
void 0 === e && (e = !1);
|
|
|
-this.interAdType = t;
|
|
|
this.ifLoadShow = e;
|
|
|
this.interAdState = a.Loading;
|
|
|
this.ATInterstitialJS.loadInter(t);
|
|
|
@@ -679,31 +687,33 @@ this.ATInterstitialJS.showInter(t);
|
|
|
} else this.interAdState == a.Loading ? this.ifLoadShow = !0 : this.loadInter(t, !0);
|
|
|
}
|
|
|
};
|
|
|
-e.prototype.onInterstitialAdLoaded = function() {
|
|
|
+e.prototype.onInterstitialAdLoaded = function(t) {
|
|
|
this.interAdState = a.LoadSuccess;
|
|
|
-this.ifLoadShow && this.showInter(this.interAdType);
|
|
|
+if (this.ifLoadShow) {
|
|
|
+var e = this.checkPlacementIDType(t);
|
|
|
+this.showInter(e);
|
|
|
+}
|
|
|
};
|
|
|
e.prototype.onInterstitialAdLoadFail = function(t) {
|
|
|
this.interAdState = a.LoadFail;
|
|
|
-if (1 == this.interAdType) {
|
|
|
-mk.tip.pop("拉取全屏视频失败,请稍后再试");
|
|
|
-gData.adData.updateADLog(10, t);
|
|
|
-} else 0 == this.interAdType && gData.adData.updateADLog(11, t);
|
|
|
+var e = 11, n = this.checkPlacementIDType(t);
|
|
|
+0 == n ? e = 11 : 1 == n && (e = 10);
|
|
|
+gData.adData.updateADLog(e, t);
|
|
|
};
|
|
|
e.prototype.onInterstitialAdShow = function(t, e) {
|
|
|
this.interAdState = a.Show;
|
|
|
-var n = JSON.parse(e), o = 2;
|
|
|
-0 == this.interAdType ? o = 2 : 1 == this.interAdType && (o = 9);
|
|
|
+var n = JSON.parse(e), o = 2, i = this.checkPlacementIDType(t);
|
|
|
+0 == i ? o = 2 : 1 == i && (o = 9);
|
|
|
gData.adData.updateADLog(o, t, n);
|
|
|
};
|
|
|
e.prototype.onInterstitialAdClick = function() {};
|
|
|
e.prototype.onInterstitialAdClose = function(t, e) {
|
|
|
this.interAdState = a.Close;
|
|
|
-this.loadInter(this.interAdType);
|
|
|
-if (1 == this.interAdType) {
|
|
|
+if (1 == this.checkPlacementIDType(t)) {
|
|
|
var n = JSON.parse(e);
|
|
|
gData.adData.updateADLog(8, t, n);
|
|
|
-}
|
|
|
+this.loadInter(1);
|
|
|
+} else this.loadInter(0);
|
|
|
};
|
|
|
return e;
|
|
|
}(r.zgSingleton);
|
|
|
@@ -7565,7 +7575,7 @@ mk.data.setTAEventUserStr(0, "xy_uid", gData.loginData.uin);
|
|
|
mk.data.setTAEventUserStr(0, "regtime_app_id", gData.appData.appVersion);
|
|
|
}
|
|
|
mk.data.setTAEventUserStr(0, "now_app_id", gData.appData.appVersion);
|
|
|
-mk.data.setTAEventUserStr(0, "channel_id", gData.appData.tfChannel);
|
|
|
+mk.data.setTAEventUserStr(0, "channel_id", gData.appData.umengChannel);
|
|
|
};
|
|
|
t.prototype.setProp = function(t, e) {
|
|
|
return o(this, void 0, void 0, function() {
|
|
|
@@ -11212,7 +11222,7 @@ value: !0
|
|
|
n.LogTagColor = void 0;
|
|
|
var i, a = function() {
|
|
|
function t() {
|
|
|
-this.ifShowLog = !1;
|
|
|
+this.ifShowLog = !0;
|
|
|
this._tagChar = "...";
|
|
|
this._frontChar = " ";
|
|
|
this._keyValueChar = " = ";
|
|
|
@@ -11827,6 +11837,7 @@ e.lbl_server = null;
|
|
|
e.lbl_privacy = null;
|
|
|
e.process = 0;
|
|
|
e.hotUpdatePanel = null;
|
|
|
+e.hasDeviceBackInit = !1;
|
|
|
return e;
|
|
|
}
|
|
|
e.prototype.onLoad = function() {
|
|
|
@@ -11840,7 +11851,8 @@ this.init();
|
|
|
};
|
|
|
e.prototype.update = function() {
|
|
|
if (gData.appData.getDeviceInfoCompelete) {
|
|
|
-gData.appData.getDeviceInfoCompelete = !1;
|
|
|
+if (!this.hasDeviceBackInit) {
|
|
|
+this.hasDeviceBackInit = !0;
|
|
|
this.getDeviceInfoBack();
|
|
|
}
|
|
|
if (gData.appData.updateState == p.UpdateState.ForceUpdateFinish) {
|
|
|
@@ -11874,6 +11886,7 @@ gData.gameData.dataFinish = !1;
|
|
|
this.lbl_progress.string = "正在更新中,请耐心等待";
|
|
|
this.bar.setProgress(gData.appData.updatePercent);
|
|
|
}
|
|
|
+}
|
|
|
};
|
|
|
e.prototype.setProgress = function(t) {
|
|
|
this.bar.setProgress(t);
|