|
|
@@ -352,27 +352,23 @@ e[ATBannerJSSDK.kATBannerAdInlineAdaptiveOrientation] = ATBannerJSSDK.kATBannerA
|
|
|
ATBannerJSSDK.loadBanner(this.placementID(), e);
|
|
|
}
|
|
|
},
|
|
|
-checkBannerReady: function() {
|
|
|
+hasAdReady: function() {
|
|
|
return !!ATBannerJSSDK.hasAdReady(this.placementID());
|
|
|
},
|
|
|
showBanner: function() {
|
|
|
-this.bannerIsShow || ATBannerJSSDK.showAdInPosition(this.placementID(), ATBannerJSSDK.kATBannerAdShowingPositionBottom);
|
|
|
+ATBannerJSSDK.showAdInPosition(this.placementID(), ATBannerJSSDK.kATBannerAdShowingPositionBottom);
|
|
|
},
|
|
|
destroyBanner: function() {
|
|
|
-if (this.bannerIsShow) {
|
|
|
ATBannerJSSDK.removeAd(this.placementID());
|
|
|
-this.bannerIsShow = !1;
|
|
|
-this.loadBanner();
|
|
|
-}
|
|
|
},
|
|
|
onBannerAdLoaded: function(t) {
|
|
|
null != this.proxy && this.proxy.onBannerAdLoaded(t);
|
|
|
},
|
|
|
onBannerAdLoadFail: function(t, e) {
|
|
|
+ATJSSDK.printLog("===[ AnyThinkBannerDemo::onBannerAdLoadFail(" + t + ", " + e + ")");
|
|
|
null != this.proxy && this.proxy.onBannerAdLoadFail(t, e);
|
|
|
},
|
|
|
onBannerAdShow: function(t, e) {
|
|
|
-this.bannerIsShow = !0;
|
|
|
null != this.proxy && this.proxy.onBannerAdShow(t, e);
|
|
|
},
|
|
|
onBannerAdClick: function(t, e) {
|
|
|
@@ -416,40 +412,69 @@ t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n(
|
|
|
Object.defineProperty(n, "__esModule", {
|
|
|
value: !0
|
|
|
});
|
|
|
-var a = t("../../zgSingleton"), r = t("./ATSDKMgr"), c = function(t) {
|
|
|
+n.BannerAdState = void 0;
|
|
|
+var a, r = t("../../zgSingleton"), c = t("./ATSDKMgr"), s = function(t) {
|
|
|
i(e, t);
|
|
|
function e() {
|
|
|
-return null !== t && t.apply(this, arguments) || this;
|
|
|
+var e = null !== t && t.apply(this, arguments) || this;
|
|
|
+e.bannerAdState = 0;
|
|
|
+e.ifLoadShow = !1;
|
|
|
+e.ifWatchEnd = !1;
|
|
|
+return e;
|
|
|
}
|
|
|
e.prototype.init = function() {
|
|
|
-cc.ATBannerJS.proxy = this;
|
|
|
-console.log("cc[ATBannerJS]", cc.ATBannerJS);
|
|
|
-console.log("window[ATBannerJS]", window.ATBannerJS);
|
|
|
-cc.ATBannerJS.init();
|
|
|
-this.loadBanner();
|
|
|
+this.ATBannerJS = cc.ATBannerJS;
|
|
|
+this.ATBannerJS.proxy = this;
|
|
|
+this.ATBannerJS.init();
|
|
|
+this.bannerAdState == a.Unload && this.loadBanner();
|
|
|
};
|
|
|
e.prototype.placementID = function() {
|
|
|
-return cc.sys.os === cc.sys.OS_IOS ? r.default.topon_banner_placementId : cc.sys.os === cc.sys.OS_ANDROID ? r.default.topon_banner_placementId : void 0;
|
|
|
+return cc.sys.os === cc.sys.OS_IOS ? c.default.topon_banner_placementId : cc.sys.os === cc.sys.OS_ANDROID ? c.default.topon_banner_placementId : void 0;
|
|
|
+};
|
|
|
+e.prototype.hasAdReady = function() {
|
|
|
+return this.ATBannerJS.hasAdReady();
|
|
|
};
|
|
|
-e.prototype.loadBanner = function() {
|
|
|
-cc.ATBannerJS.loadBanner();
|
|
|
+e.prototype.loadBanner = function(t) {
|
|
|
+void 0 === t && (t = !1);
|
|
|
+this.ifLoadShow = t;
|
|
|
+this.bannerAdState = a.Loading;
|
|
|
+this.ATBannerJS.loadBanner();
|
|
|
};
|
|
|
e.prototype.showBanner = function() {
|
|
|
-cc.ATBannerJS.showBanner();
|
|
|
+if (this.bannerAdState == a.Show) ; else if (this.hasAdReady()) {
|
|
|
+this.bannerAdState = a.Show;
|
|
|
+this.ATBannerJS.showBanner();
|
|
|
+} else this.bannerAdState == a.Loading ? this.ifLoadShow = !0 : this.loadBanner(!0);
|
|
|
};
|
|
|
e.prototype.destroyBanner = function() {
|
|
|
-cc.ATBannerJS.destroyBanner();
|
|
|
+this.bannerAdState = a.Close;
|
|
|
+this.ATBannerJS.destroyBanner();
|
|
|
+this.loadBanner();
|
|
|
+};
|
|
|
+e.prototype.onBannerAdLoaded = function() {
|
|
|
+this.bannerAdState = a.LoadSuccess;
|
|
|
+};
|
|
|
+e.prototype.onBannerAdLoadFail = function() {
|
|
|
+this.bannerAdState = a.LoadFail;
|
|
|
+};
|
|
|
+e.prototype.onBannerAdShow = function() {
|
|
|
+this.bannerAdState = a.Show;
|
|
|
};
|
|
|
-e.prototype.onBannerAdLoaded = function() {};
|
|
|
-e.prototype.onBannerAdLoadFail = function() {};
|
|
|
-e.prototype.onBannerAdShow = function() {};
|
|
|
e.prototype.onBannerAdClick = function() {};
|
|
|
e.prototype.onBannerAdAutoRefresh = function() {};
|
|
|
e.prototype.onBannerAdAutoRefreshFail = function() {};
|
|
|
e.prototype.onBannerAdCloseButtonTapped = function() {};
|
|
|
return e;
|
|
|
-}(a.zgSingleton);
|
|
|
-n.default = c;
|
|
|
+}(r.zgSingleton);
|
|
|
+n.default = s;
|
|
|
+(function(t) {
|
|
|
+t[t.Unload = 0] = "Unload";
|
|
|
+t[t.Loading = 1] = "Loading";
|
|
|
+t[t.LoadSuccess = 2] = "LoadSuccess";
|
|
|
+t[t.LoadFail = 3] = "LoadFail";
|
|
|
+t[t.Show = 4] = "Show";
|
|
|
+t[t.Close = 5] = "Close";
|
|
|
+})(a = n.BannerAdState || (n.BannerAdState = {}));
|
|
|
cc._RF.pop();
|
|
|
}, {
|
|
|
"../../zgSingleton": "zgSingleton",
|
|
|
@@ -537,31 +562,29 @@ t("./AnyThinkAds/ATJSSDK");
|
|
|
var n = cc.Class({
|
|
|
name: "ATInterstitialJS",
|
|
|
proxy: null,
|
|
|
-interType: 0,
|
|
|
ctor: function() {},
|
|
|
init: function() {
|
|
|
-ATBannerJSSDK.setAdListener(this);
|
|
|
+ATInterstitialJSSDK.setAdListener(this);
|
|
|
},
|
|
|
placementID: function() {
|
|
|
-return this.proxy.placementID(this.interType);
|
|
|
+return this.proxy.placementID();
|
|
|
},
|
|
|
-loadInter: function(t) {
|
|
|
-var e = {};
|
|
|
-e[ATInterstitialJSSDK.UseRewardedVideoAsInterstitial] = !1;
|
|
|
-this.interType = t;
|
|
|
-ATInterstitialJSSDK.setAdListener(this);
|
|
|
-0 == this.interType ? ATInterstitialJSSDK.loadInterstitial(this.placementID(), e) : 1 == this.interType && ATInterstitialJSSDK.loadInterstitial(this.placementID(), e);
|
|
|
+hasAdReady: function() {
|
|
|
+if (null != this.proxy) return !!ATInterstitialJSSDK.hasAdReady(this.placementID());
|
|
|
},
|
|
|
-checkInterReady: function(t) {
|
|
|
-if (null != this.proxy) return 0 == t ? !!ATInterstitialJSSDK.hasAdReady(this.placementID()) : 1 == t ? !!ATInterstitialJSSDK.hasAdReady(this.placementID()) : void 0;
|
|
|
+loadInter: function() {
|
|
|
+var t = {};
|
|
|
+t[ATInterstitialJSSDK.UseRewardedVideoAsInterstitial] = !1;
|
|
|
+ATInterstitialJSSDK.loadInterstitial(this.placementID(), t);
|
|
|
},
|
|
|
-showInter: function(t) {
|
|
|
-0 == t ? ATInterstitialJSSDK.showAd(this.placementID()) : 1 == t && ATInterstitialJSSDK.showAd(this.placementID());
|
|
|
+showInter: function() {
|
|
|
+ATInterstitialJSSDK.showAd(this.placementID());
|
|
|
},
|
|
|
onInterstitialAdLoaded: function(t) {
|
|
|
null != this.proxy && this.proxy.onInterstitialAdLoaded(t);
|
|
|
},
|
|
|
onInterstitialAdLoadFail: function(t, e) {
|
|
|
+ATJSSDK.printLog("===[AnyThinkInterstitialDemo::onInterstitialAdLoadFail(" + t + ", " + e + ")");
|
|
|
null != this.proxy && this.proxy.onInterstitialAdLoadFail(t, e);
|
|
|
},
|
|
|
onInterstitialAdShow: function(t, e) {
|
|
|
@@ -606,44 +629,74 @@ t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n(
|
|
|
Object.defineProperty(n, "__esModule", {
|
|
|
value: !0
|
|
|
});
|
|
|
-var a = t("../../zgSingleton"), r = t("./ATSDKMgr"), c = function(t) {
|
|
|
+n.InterAdState = void 0;
|
|
|
+var a, r = t("../../zgSingleton"), c = t("./ATSDKMgr"), s = function(t) {
|
|
|
i(e, t);
|
|
|
function e() {
|
|
|
-return null !== t && t.apply(this, arguments) || this;
|
|
|
+var e = null !== t && t.apply(this, arguments) || this;
|
|
|
+e.interAdType = 0;
|
|
|
+e.interAdState = 0;
|
|
|
+e.ifLoadShow = !1;
|
|
|
+return e;
|
|
|
}
|
|
|
e.prototype.init = function() {
|
|
|
this.ATInterstitialJS = cc.ATInterstitialJS;
|
|
|
this.ATInterstitialJS.proxy = this;
|
|
|
this.ATInterstitialJS.init();
|
|
|
-this.loadInter(0);
|
|
|
+this.interAdState == a.Unload && this.loadInter(0);
|
|
|
};
|
|
|
-e.prototype.placementID = function(t) {
|
|
|
-if (0 == t) {
|
|
|
-if (cc.sys.os === cc.sys.OS_IOS) return r.default.topon_inter_placementId;
|
|
|
-if (cc.sys.os === cc.sys.OS_ANDROID) return r.default.topon_inter_placementId;
|
|
|
+e.prototype.placementID = function() {
|
|
|
+if (0 == this.interAdType) {
|
|
|
+if (cc.sys.os === cc.sys.OS_IOS) return c.default.topon_inter_placementId;
|
|
|
+if (cc.sys.os === cc.sys.OS_ANDROID) return c.default.topon_inter_placementId;
|
|
|
} else {
|
|
|
-if (cc.sys.os === cc.sys.OS_IOS) return r.default.topon_fullinter_placementId;
|
|
|
-if (cc.sys.os === cc.sys.OS_ANDROID) return r.default.topon_fullinter_placementId;
|
|
|
+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.loadInter = function(t) {
|
|
|
-this.interType = t;
|
|
|
+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);
|
|
|
};
|
|
|
e.prototype.showInter = function(t) {
|
|
|
-this.interType = t;
|
|
|
-this.ATInterstitialJS.checkInterReady(t) ? this.ATInterstitialJS.showInter(t) : this.loadInter(t);
|
|
|
+this.interAdType = t;
|
|
|
+if (this.interAdState == a.Show) ; else if (this.hasAdReady()) {
|
|
|
+this.interAdState = a.Show;
|
|
|
+this.ATInterstitialJS.showInter(t);
|
|
|
+} else this.interAdState == a.Loading ? this.ifLoadShow = !0 : this.loadInter(t, !0);
|
|
|
+};
|
|
|
+e.prototype.onInterstitialAdLoaded = function() {
|
|
|
+this.interAdState = a.LoadSuccess;
|
|
|
+this.ifLoadShow && this.showInter(this.interAdType);
|
|
|
+};
|
|
|
+e.prototype.onInterstitialAdLoadFail = function() {
|
|
|
+this.interAdState = a.LoadFail;
|
|
|
+};
|
|
|
+e.prototype.onInterstitialAdShow = function() {
|
|
|
+this.interAdState = a.Show;
|
|
|
};
|
|
|
-e.prototype.onInterstitialAdLoaded = function() {};
|
|
|
-e.prototype.onInterstitialAdLoadFail = function() {};
|
|
|
-e.prototype.onInterstitialAdShow = function() {};
|
|
|
e.prototype.onInterstitialAdClick = function() {};
|
|
|
e.prototype.onInterstitialAdClose = function() {
|
|
|
-this.loadInter(this.interType);
|
|
|
+this.interAdState = a.Close;
|
|
|
+this.loadInter(this.interAdType);
|
|
|
};
|
|
|
return e;
|
|
|
-}(a.zgSingleton);
|
|
|
-n.default = c;
|
|
|
+}(r.zgSingleton);
|
|
|
+n.default = s;
|
|
|
+(function(t) {
|
|
|
+t[t.Unload = 0] = "Unload";
|
|
|
+t[t.Loading = 1] = "Loading";
|
|
|
+t[t.LoadSuccess = 2] = "LoadSuccess";
|
|
|
+t[t.LoadFail = 3] = "LoadFail";
|
|
|
+t[t.Show = 4] = "Show";
|
|
|
+t[t.Close = 5] = "Close";
|
|
|
+})(a = n.InterAdState || (n.InterAdState = {}));
|
|
|
cc._RF.pop();
|
|
|
}, {
|
|
|
"../../zgSingleton": "zgSingleton",
|
|
|
@@ -859,13 +912,6 @@ t("./AnyThinkAds/ATNativeJSSDK");
|
|
|
var n = cc.Class({
|
|
|
name: "ATNativeJS",
|
|
|
proxy: null,
|
|
|
-frameWidth: 0,
|
|
|
-frameHeight: 0,
|
|
|
-nativeIsShow: !1,
|
|
|
-nativeType: 0,
|
|
|
-nativeShow: !1,
|
|
|
-nativeIsLoad: !1,
|
|
|
-nativeIsLoading: !1,
|
|
|
ctor: function() {},
|
|
|
init: function() {
|
|
|
ATNativeJSSDK.setAdListener(this);
|
|
|
@@ -873,77 +919,27 @@ ATNativeJSSDK.setAdListener(this);
|
|
|
placementID: function() {
|
|
|
return this.proxy.placementID();
|
|
|
},
|
|
|
+hasAdReady: function() {
|
|
|
+return !!ATNativeJSSDK.hasAdReady(this.placementID());
|
|
|
+},
|
|
|
loadNative: function(t, e) {
|
|
|
-void 0 === t && (t = 0);
|
|
|
-void 0 === e && (e = !1);
|
|
|
-this.nativeType = t;
|
|
|
-this.nativeShow = e;
|
|
|
-this.nativeIsLoading = !0;
|
|
|
-var n = cc.view.getFrameSize();
|
|
|
-this.frameWidth = n.width;
|
|
|
-this.frameHeight = n.height;
|
|
|
-var o = this.frameWidth / 750, i = 656 * o, a = 440 * o;
|
|
|
-if (2 == this.nativeType) {
|
|
|
-this.destroyNative(!1);
|
|
|
-i *= .9;
|
|
|
-a *= .8;
|
|
|
-} else if (3 == this.nativeType) {
|
|
|
-this.destroyNative(!1);
|
|
|
-i *= .9;
|
|
|
-a *= .75;
|
|
|
-} else {
|
|
|
-i *= .9;
|
|
|
-a *= .75;
|
|
|
-}
|
|
|
-ATNativeJSSDK.loadNative(this.placementID(), ATNativeJSSDK.createLoadAdSize(i, a));
|
|
|
+ATNativeJSSDK.loadNative(this.placementID(), ATNativeJSSDK.createLoadAdSize(t, e));
|
|
|
},
|
|
|
-destroyNative: function(t) {
|
|
|
-void 0 === t && (t = !0);
|
|
|
-ATNativeJSSDK.removeAd(this.placementID());
|
|
|
-this.nativeIsLoad = !1;
|
|
|
-this.nativeIsShow = !1;
|
|
|
-t && this.loadNative();
|
|
|
-},
|
|
|
-showNative: function(t) {
|
|
|
-if (this.nativeIsLoading) {
|
|
|
-this.nativeType = t;
|
|
|
-this.nativeShow = !0;
|
|
|
-} else if (this.nativeIsLoad) {
|
|
|
-if (!this.nativeIsShow) {
|
|
|
-this.nativeIsShow = !0;
|
|
|
-var e = this.frameWidth / 750, n = 656 * e, o = 440 * e, i = 12, a = new ATNativeJSSDK.AdViewProperty(), r = 0;
|
|
|
-if (0 == t) r = .45 * this.frameHeight; else if (1 == t) r = .625 * this.frameHeight; else if (2 == t) {
|
|
|
-r = .595 * this.frameHeight;
|
|
|
-n *= .9;
|
|
|
-o *= .8;
|
|
|
-i = 8;
|
|
|
-} else if (3 == t) {
|
|
|
-r = .69 * this.frameHeight;
|
|
|
-n *= .9;
|
|
|
-o *= .75;
|
|
|
-i = 8;
|
|
|
-} else if (4 == t) {
|
|
|
-r = .75 * this.frameHeight;
|
|
|
-n *= 1.1;
|
|
|
-}
|
|
|
-var c = .5 * (this.frameWidth - n);
|
|
|
-a.parent = a.createItemViewProperty(c, r, n, o, "#ffffff", "", 0);
|
|
|
+showNative: function(t, e, n, o, i) {
|
|
|
+var a = new ATNativeJSSDK.AdViewProperty();
|
|
|
+a.parent = a.createItemViewProperty(t, e, n, o, "#ffffff", "", 0);
|
|
|
a.mainImage = a.createItemViewProperty(0, 0, n, o, "#ffffff", "#ffffff", i);
|
|
|
ATNativeJSSDK.showAd(this.placementID(), a);
|
|
|
-}
|
|
|
-} else this.loadNative(t, !0);
|
|
|
},
|
|
|
-onNativeAdLoaded: function() {
|
|
|
-this.nativeIsLoad = !0;
|
|
|
-this.nativeIsLoading = !1;
|
|
|
-if (this.nativeShow) {
|
|
|
-this.nativeIsShow = !1;
|
|
|
-this.showNative(this.nativeType);
|
|
|
-}
|
|
|
+destroyNative: function() {
|
|
|
+ATNativeJSSDK.removeAd(this.placementID());
|
|
|
+},
|
|
|
+onNativeAdLoaded: function(t) {
|
|
|
+null != this.proxy && this.proxy.onNativeAdLoaded(t);
|
|
|
},
|
|
|
-onNativeAdLoadFail: function() {
|
|
|
-this.nativeIsLoading = !1;
|
|
|
-this.nativeIsLoad = !1;
|
|
|
+onNativeAdLoadFail: function(t, e) {
|
|
|
+ATJSSDK.printLog("===[AnyThinkNativeDemo::onNativeAdLoadFail(" + t + ", " + e + ")");
|
|
|
+null != this.proxy && this.proxy.onNativeAdLoadFail(t, e);
|
|
|
},
|
|
|
onNativeAdShow: function(t, e) {
|
|
|
null != this.proxy && this.proxy.onNativeAdShow(t, e);
|
|
|
@@ -983,40 +979,97 @@ t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n(
|
|
|
Object.defineProperty(n, "__esModule", {
|
|
|
value: !0
|
|
|
});
|
|
|
-n.ATNative = void 0;
|
|
|
-var a = t("../../zgSingleton"), r = t("./ATSDKMgr"), c = function(t) {
|
|
|
+n.NativeAdState = n.ATNative = void 0;
|
|
|
+var a, r = t("../../zgSingleton"), c = t("./ATSDKMgr"), s = function(t) {
|
|
|
i(e, t);
|
|
|
function e() {
|
|
|
-return null !== t && t.apply(this, arguments) || this;
|
|
|
+var e = null !== t && t.apply(this, arguments) || this;
|
|
|
+e.nativeAdType = 4;
|
|
|
+e.nativeAdState = 0;
|
|
|
+e.ifLoadShow = !1;
|
|
|
+return e;
|
|
|
}
|
|
|
e.prototype.init = function() {
|
|
|
this.ATNativeJS = cc.ATNativeJS;
|
|
|
this.ATNativeJS.proxy = this;
|
|
|
this.ATNativeJS.init();
|
|
|
-this.loadNative();
|
|
|
+this.nativeAdState == a.Unload && this.loadNative(4);
|
|
|
};
|
|
|
e.prototype.placementID = function() {
|
|
|
-return cc.sys.os === cc.sys.OS_IOS ? r.default.topon_native_placementId : cc.sys.os === cc.sys.OS_ANDROID ? r.default.topon_native_placementId : void 0;
|
|
|
+return cc.sys.os === cc.sys.OS_IOS ? c.default.topon_native_placementId : cc.sys.os === cc.sys.OS_ANDROID ? c.default.topon_native_placementId : void 0;
|
|
|
+};
|
|
|
+e.prototype.hasAdReady = function() {
|
|
|
+return this.ATNativeJS.hasAdReady();
|
|
|
};
|
|
|
e.prototype.loadNative = function(t, e) {
|
|
|
void 0 === t && (t = 4);
|
|
|
void 0 === e && (e = !1);
|
|
|
-this.ATNativeJS.loadNative(t, e);
|
|
|
+this.nativeAdType = t;
|
|
|
+this.ifLoadShow = e;
|
|
|
+this.nativeAdState = a.Loading;
|
|
|
+var n = cc.view.getFrameSize(), o = n.width, i = (n.height, o / 750), r = 656 * i, c = 440 * i;
|
|
|
+if (2 == this.nativeAdType) {
|
|
|
+r *= .9;
|
|
|
+c *= .8;
|
|
|
+} else if (3 == this.nativeAdType) {
|
|
|
+r *= .9;
|
|
|
+c *= .75;
|
|
|
+} else {
|
|
|
+r *= .9;
|
|
|
+c *= .75;
|
|
|
+}
|
|
|
+this.ATNativeJS.loadNative(r, c);
|
|
|
};
|
|
|
e.prototype.showNative = function(t) {
|
|
|
-this.ATNativeJS.showNative(t);
|
|
|
+if (this.nativeAdState == a.Show) ; else if (this.hasAdReady()) if (this.nativeAdType != t) {
|
|
|
+this.destroyNative();
|
|
|
+this.loadNative(t, !0);
|
|
|
+} else {
|
|
|
+console.log("===[ShowNative", t);
|
|
|
+var e = cc.view.getFrameSize(), n = e.width, o = e.height, i = n / 750, r = 656 * i, c = 440 * i, s = 0;
|
|
|
+if (0 == t) s = .45 * o; else if (1 == t) s = .625 * o; else if (2 == t) {
|
|
|
+s = .595 * o;
|
|
|
+r *= .9;
|
|
|
+c *= .8;
|
|
|
+} else if (3 == t) {
|
|
|
+s = .69 * o;
|
|
|
+r *= .9;
|
|
|
+c *= .75;
|
|
|
+} else if (4 == t) {
|
|
|
+s = .75 * o;
|
|
|
+r *= 1.1;
|
|
|
+}
|
|
|
+var l = .5 * (n - r);
|
|
|
+this.ATNativeJS.showNative(l, s, r, c);
|
|
|
+} else this.nativeAdState == a.Loading ? this.ifLoadShow = !0 : this.loadNative(t, !0);
|
|
|
};
|
|
|
-e.prototype.onNativeAdShow = function() {};
|
|
|
e.prototype.destroyNative = function() {
|
|
|
+this.nativeAdState = a.Close;
|
|
|
this.ATNativeJS.destroyNative();
|
|
|
-this.loadNative();
|
|
|
+this.loadNative(this.nativeAdType);
|
|
|
+};
|
|
|
+e.prototype.onNativeAdLoaded = function() {
|
|
|
+this.nativeAdState = a.LoadSuccess;
|
|
|
+this.ifLoadShow && this.showNative(this.nativeAdType);
|
|
|
+};
|
|
|
+e.prototype.onNativeAdLoadFail = function() {
|
|
|
+this.nativeAdState = a.LoadFail;
|
|
|
};
|
|
|
-e.prototype.getIsNativeShow = function() {
|
|
|
-return this.ATNativeJS.nativeShow;
|
|
|
+e.prototype.onNativeAdShow = function() {
|
|
|
+this.nativeAdState = a.Show;
|
|
|
};
|
|
|
+e.prototype.onNativeAdClick = function() {};
|
|
|
return e;
|
|
|
-}(a.zgSingleton);
|
|
|
-n.ATNative = c;
|
|
|
+}(r.zgSingleton);
|
|
|
+n.ATNative = s;
|
|
|
+(function(t) {
|
|
|
+t[t.Unload = 0] = "Unload";
|
|
|
+t[t.Loading = 1] = "Loading";
|
|
|
+t[t.LoadSuccess = 2] = "LoadSuccess";
|
|
|
+t[t.LoadFail = 3] = "LoadFail";
|
|
|
+t[t.Show = 4] = "Show";
|
|
|
+t[t.Close = 5] = "Close";
|
|
|
+})(a = n.NativeAdState || (n.NativeAdState = {}));
|
|
|
cc._RF.pop();
|
|
|
}, {
|
|
|
"../../zgSingleton": "zgSingleton",
|
|
|
@@ -1048,32 +1101,26 @@ ATRewardedVideoJSSDK.loadRewardedVideo(this.placementID(), n);
|
|
|
showAd: function() {
|
|
|
ATRewardedVideoJSSDK.showAdInScenario(this.placementID(), "");
|
|
|
},
|
|
|
-checkReady: function() {
|
|
|
-ATJSSDK.printLog("AnyThinkRewardedVideo::checkReady() " + (ATRewardedVideoJSSDK.hasAdReady(this.placementID()) ? "Ready" : "No"));
|
|
|
+hasAdReady: function() {
|
|
|
if (null != this.proxy) return !!ATRewardedVideoJSSDK.hasAdReady(this.placementID());
|
|
|
},
|
|
|
onRewardedVideoAdLoaded: function(t) {
|
|
|
-ATJSSDK.printLog("AnyThinkRewardedVideo::onRewardedVideoAdLoaded(" + t + ")");
|
|
|
null != this.proxy && this.proxy.onRewardedVideoAdLoaded(t);
|
|
|
},
|
|
|
onRewardedVideoAdFailed: function(t, e) {
|
|
|
-ATJSSDK.printLog("AnyThinkRewardedVideo::onRewardedVideoAdFailed(" + t + ", " + e + ")");
|
|
|
+ATJSSDK.printLog("===[AnyThinkRewardedVideo::onRewardedVideoAdFailed(" + t + ", " + e + ")");
|
|
|
null != this.proxy && this.proxy.onRewardedVideoAdFailed(t, e);
|
|
|
},
|
|
|
onRewardedVideoAdPlayStart: function(t, e) {
|
|
|
-ATJSSDK.printLog("AnyThinkRewardedVideo::onRewardedVideoAdPlayStart(" + t + ", " + e + ")");
|
|
|
null != this.proxy && this.proxy.onRewardedVideoAdPlayStart(t, e);
|
|
|
},
|
|
|
onRewardedVideoAdPlayEnd: function(t, e) {
|
|
|
-ATJSSDK.printLog("AnyThinkRewardedVideo::onRewardedVideoAdPlayEnd(" + t + ", " + e + ")");
|
|
|
null != this.proxy && this.proxy.onRewardedVideoAdPlayEnd(t, e);
|
|
|
},
|
|
|
onRewardedVideoAdPlayFailed: function(t, e, n) {
|
|
|
-ATJSSDK.printLog("AnyThinkRewardedVideo::onRewardedVideoAdPlayFailed(" + t + ", " + e + ", " + n + ")");
|
|
|
null != this.proxy && this.proxy.onRewardedVideoAdPlayFailed(t, e, n);
|
|
|
},
|
|
|
onRewardedVideoAdClosed: function(t, e) {
|
|
|
-ATJSSDK.printLog("AnyThinkRewardedVideo::onRewardedVideoAdClosed(" + t + ", " + e + ")");
|
|
|
null != this.proxy && this.proxy.onRewardedVideoAdClosed(t, e);
|
|
|
},
|
|
|
onRewardedVideoAdPlayClicked: function(t, e) {
|
|
|
@@ -1111,7 +1158,7 @@ t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n(
|
|
|
Object.defineProperty(n, "__esModule", {
|
|
|
value: !0
|
|
|
});
|
|
|
-n.RewardAdLoadState = n.ATRewardVideo = void 0;
|
|
|
+n.RewardAdState = n.ATRewardVideo = void 0;
|
|
|
var a, r = t("../../zgSingleton"), c = t("./ATSDKMgr"), s = function(t) {
|
|
|
i(e, t);
|
|
|
function e() {
|
|
|
@@ -1122,32 +1169,33 @@ e.ifWatchEnd = !1;
|
|
|
return e;
|
|
|
}
|
|
|
e.prototype.init = function() {
|
|
|
-cc.ATRewardVideoJS.proxy = this;
|
|
|
-cc.ATRewardVideoJS.init();
|
|
|
+this.ATRewardVideoJS = cc.ATRewardVideoJS;
|
|
|
+this.ATRewardVideoJS.proxy = this;
|
|
|
+this.ATRewardVideoJS.init();
|
|
|
this.ifWatchEnd = !1;
|
|
|
this.reawardAdState == a.Unload && this.loadAd();
|
|
|
};
|
|
|
e.prototype.placementID = function() {
|
|
|
return cc.sys.os === cc.sys.OS_IOS ? c.default.topon_rewardVideo_placementId : cc.sys.os === cc.sys.OS_ANDROID ? c.default.topon_rewardVideo_placementId : void 0;
|
|
|
};
|
|
|
+e.prototype.hasAdReady = function() {
|
|
|
+return this.ATRewardVideoJS.hasAdReady();
|
|
|
+};
|
|
|
e.prototype.loadAd = function() {
|
|
|
console.log("anythink === 加载激励视频广告", a[this.reawardAdState]);
|
|
|
if (this.reawardAdState != a.Loading) {
|
|
|
this.reawardAdState = a.Loading;
|
|
|
-cc.ATRewardVideoJS.loadAd("userIdKey", "userDataKey");
|
|
|
+this.ATRewardVideoJS.loadAd("userIdKey", "userDataKey");
|
|
|
}
|
|
|
};
|
|
|
e.prototype.showAd = function() {
|
|
|
-if (this.reawardAdState == a.LoadSuccess) cc.ATRewardVideoJS.showAd(); else {
|
|
|
+if (this.reawardAdState == a.LoadSuccess) this.ATRewardVideoJS.showAd(); else {
|
|
|
this.loadAd();
|
|
|
this.ifLoadShow = !0;
|
|
|
}
|
|
|
};
|
|
|
-e.prototype.checkReady = function() {
|
|
|
-return cc.ATRewardVideoJS.checkReady();
|
|
|
-};
|
|
|
e.prototype.onRewardedVideoAdLoaded = function() {
|
|
|
-console.log("anythink === 加载激励视频广告成功", this.checkReady(), a[this.reawardAdState]);
|
|
|
+console.log("anythink === 加载激励视频广告成功", this.hasAdReady(), a[this.reawardAdState]);
|
|
|
this.reawardAdState = a.LoadSuccess;
|
|
|
if (this.ifLoadShow) {
|
|
|
this.showAd();
|
|
|
@@ -1187,7 +1235,7 @@ t[t.Loading = 1] = "Loading";
|
|
|
t[t.LoadSuccess = 2] = "LoadSuccess";
|
|
|
t[t.LoadFail = 3] = "LoadFail";
|
|
|
t[t.PlayEnd = 4] = "PlayEnd";
|
|
|
-})(a = n.RewardAdLoadState || (n.RewardAdLoadState = {}));
|
|
|
+})(a = n.RewardAdState || (n.RewardAdState = {}));
|
|
|
cc._RF.pop();
|
|
|
}, {
|
|
|
"../../zgSingleton": "zgSingleton",
|
|
|
@@ -1300,8 +1348,6 @@ t === ATJSSDK.kATUserLocationInEU && ATJSSDK.getGDPRLevel() === ATJSSDK.UNKNOWN
|
|
|
});
|
|
|
},
|
|
|
placementID: function() {
|
|
|
-console.log("this.proxy", this);
|
|
|
-console.log("this.proxy", this.proxy);
|
|
|
return this.proxy.placementID();
|
|
|
}
|
|
|
});
|
|
|
@@ -1350,7 +1396,6 @@ this.getAdvertiseChannel();
|
|
|
cc.ATSDKMgrJS.proxy = this;
|
|
|
cc.ATSDKMgrJS.initATJSSDK(n.topon_android_appId, n.topon_android_appSecret);
|
|
|
d.ATRewardVideo.getInstance().init();
|
|
|
-console.log("===[AdSystem checkReady()", d.ATRewardVideo.getInstance().checkReady());
|
|
|
p.ATNative.getInstance().init();
|
|
|
u.default.getInstance().init();
|
|
|
l.default.getInstance().init();
|
|
|
@@ -1373,9 +1418,9 @@ n.topon_native_placementId = e[5];
|
|
|
n.topon_fullinter_placementId = e[6];
|
|
|
n.topon_banner_placementId = e[7];
|
|
|
};
|
|
|
-e.prototype.showVideoAd = function() {
|
|
|
-console.log("===[ShowVideoAd] ", d.ATRewardVideo.getInstance().checkReady());
|
|
|
-d.ATRewardVideo.getInstance().checkReady() || mk.tip.pop("广告加载中,请稍后");
|
|
|
+e.prototype.showVideo = function() {
|
|
|
+console.log("===[ShowVideoAd] ", d.ATRewardVideo.getInstance().hasAdReady());
|
|
|
+d.ATRewardVideo.getInstance().hasAdReady() || mk.tip.pop("广告加载中,请稍后");
|
|
|
d.ATRewardVideo.getInstance().showAd();
|
|
|
};
|
|
|
e.prototype.watchVideoAdCallBack = function(t) {
|
|
|
@@ -1389,22 +1434,29 @@ case r.Cancel:
|
|
|
mk.ad.watchAdFail();
|
|
|
}
|
|
|
};
|
|
|
-e.prototype.showInterAd = function() {};
|
|
|
-e.prototype.loadNativeAd = function(t, e) {
|
|
|
+e.prototype.showInter = function(t) {
|
|
|
+void 0 === t && (t = 0);
|
|
|
+u.default.getInstance().showInter(t);
|
|
|
+};
|
|
|
+e.prototype.loadNative = function(t, e) {
|
|
|
p.ATNative.getInstance().loadNative(t, e);
|
|
|
};
|
|
|
-e.prototype.destroyNativeAd = function() {
|
|
|
+e.prototype.showNative = function(t) {
|
|
|
+p.ATNative.getInstance().showNative(t);
|
|
|
+};
|
|
|
+e.prototype.destroyNative = function() {
|
|
|
p.ATNative.getInstance().destroyNative();
|
|
|
};
|
|
|
-e.prototype.showBannerAd = function() {
|
|
|
+e.prototype.loadBanner = function(t) {
|
|
|
+void 0 === t && (t = !1);
|
|
|
+l.default.getInstance().loadBanner(t);
|
|
|
+};
|
|
|
+e.prototype.showBanner = function() {
|
|
|
l.default.getInstance().showBanner();
|
|
|
};
|
|
|
e.prototype.destoryBanner = function() {
|
|
|
l.default.getInstance().destroyBanner();
|
|
|
};
|
|
|
-e.prototype.showInter = function() {
|
|
|
-u.default.getInstance().showInter(0);
|
|
|
-};
|
|
|
var n;
|
|
|
e.topon_android_appId = "a5f8fa5f10c661";
|
|
|
e.topon_android_appSecret = "66b742dd0e502b64d783d9c66a9d30c4";
|
|
|
@@ -1873,7 +1925,7 @@ this.adSdk.initSDK();
|
|
|
t.prototype.watchAd = function(t) {
|
|
|
if (!this.isAdCooling()) {
|
|
|
this.videoAdcallBack = t;
|
|
|
-this.ifShowAd ? cc.sys.platform != cc.sys.WECHAT_GAME && (cc.sys.os == cc.sys.OS_ANDROID ? this.adSdk.showVideoAd() : cc.sys.os == cc.sys.OS_IOS && jsb.reflection.callStaticMethod("AppController", "showVideo", "")) : this.wacthAdSuccess();
|
|
|
+this.ifShowAd ? cc.sys.platform != cc.sys.WECHAT_GAME && (cc.sys.os == cc.sys.OS_ANDROID ? this.adSdk.showVideo() : cc.sys.os == cc.sys.OS_IOS && jsb.reflection.callStaticMethod("AppController", "showVideo", "")) : this.wacthAdSuccess();
|
|
|
}
|
|
|
};
|
|
|
t.prototype.watchAdFail = function() {
|
|
|
@@ -1890,14 +1942,13 @@ mk.console.log("=== wacthAdSuccess");
|
|
|
this.videoAdcallBack(!0);
|
|
|
this.initLastTimeStamp();
|
|
|
};
|
|
|
-t.prototype.showNativeAd = function(t, e) {
|
|
|
-void 0 === t && (t = 0);
|
|
|
-void 0 === e && (e = !0);
|
|
|
-cc.sys.platform != cc.sys.WECHAT_GAME && (cc.sys.os == cc.sys.OS_ANDROID ? this.adSdk.loadNativeAd(t, e) : (cc.sys.os,
|
|
|
+t.prototype.showNative = function(t) {
|
|
|
+void 0 === t && (t = 4);
|
|
|
+cc.sys.platform != cc.sys.WECHAT_GAME && (cc.sys.os == cc.sys.OS_ANDROID ? this.adSdk.showNative(t) : (cc.sys.os,
|
|
|
cc.sys.OS_IOS));
|
|
|
};
|
|
|
t.prototype.destroyNativeAd = function() {
|
|
|
-cc.sys.platform != cc.sys.WECHAT_GAME && (cc.sys.os == cc.sys.OS_ANDROID ? this.adSdk.destroyNativeAd() : (cc.sys.os,
|
|
|
+cc.sys.platform != cc.sys.WECHAT_GAME && (cc.sys.os == cc.sys.OS_ANDROID ? this.adSdk.destroyNative() : (cc.sys.os,
|
|
|
cc.sys.OS_IOS));
|
|
|
};
|
|
|
t.prototype.initLastTimeStamp = function() {
|
|
|
@@ -1913,11 +1964,14 @@ return !0;
|
|
|
}
|
|
|
return !1;
|
|
|
};
|
|
|
-t.prototype.showBannerAd = function() {
|
|
|
-this.ifShowAd && gData.gameData.adShowConfig && 1 == gData.gameData.adShowConfig.is_show_banner && this.adSdk.showBannerAd();
|
|
|
+t.prototype.showBanner = function() {
|
|
|
+this.ifShowAd && this.adSdk.showBanner();
|
|
|
+};
|
|
|
+t.prototype.destoryBanner = function() {
|
|
|
+this.adSdk.destoryBanner();
|
|
|
};
|
|
|
-t.prototype.showInterAd = function() {
|
|
|
-this.ifShowAd && this.adSdk.showInter();
|
|
|
+t.prototype.showInterAd = function(t) {
|
|
|
+this.ifShowAd && this.adSdk.showInter(t);
|
|
|
};
|
|
|
t.prototype.checkShowInterByChance = function() {
|
|
|
gData.gameData.adShowConfig && (Math.random() <= gData.gameData.adShowConfig.insert_probability ? this.showInterAd(0) : gData.moreGame.popMoreGamePopNode());
|
|
|
@@ -2074,6 +2128,8 @@ this.umengChannel = e[8];
|
|
|
this.deviceType = e[9];
|
|
|
this.androidVersion = e[10];
|
|
|
this.getDeviceInfoCompelete = !0;
|
|
|
+console.log("===[this.tfChannel", this.tfChannel);
|
|
|
+console.log("===[this.appVersion", this.appVersion);
|
|
|
};
|
|
|
t.prototype.init = function() {};
|
|
|
return t;
|
|
|
@@ -4969,7 +5025,7 @@ function e() {
|
|
|
var e = null !== t && t.apply(this, arguments) || this;
|
|
|
e.ani_cellItem = null;
|
|
|
e.spr_cellItemIcon = null;
|
|
|
-e.spr_redPackIcon = null;
|
|
|
+e.node_redPackIcon = null;
|
|
|
e.x = 0;
|
|
|
e.y = 0;
|
|
|
e.type = 0;
|
|
|
@@ -5099,7 +5155,7 @@ this.node.opacity = 255;
|
|
|
this.ani_cellItem.play();
|
|
|
};
|
|
|
e.prototype.showRedPacket = function() {
|
|
|
-this.spr_redPackIcon.node.active = !0;
|
|
|
+this.node_redPackIcon.active = !0;
|
|
|
};
|
|
|
e.prototype.recycle = function(t, e, n) {
|
|
|
void 0 === t && (t = !1);
|
|
|
@@ -5122,7 +5178,7 @@ s.x = o;
|
|
|
s.y = i;
|
|
|
r.default.Inst.node_effectUI.addChild(s);
|
|
|
s.getComponent(p.default).init();
|
|
|
-var u = 2 + 2 * r.default.Inst.cleanedVecArr.length, f = l.default.Inst.getPoolPrefab(l.NODEPOOLPREFABTYPE.EliminateScore), y = this.node.x + r.default.Inst.node_content.x, g = this.node.y + r.default.Inst.node_content.y + 30;
|
|
|
+var u = 2 + 2 * (r.default.Inst.cleanedVecArr.length - 2), f = l.default.Inst.getPoolPrefab(l.NODEPOOLPREFABTYPE.EliminateScore), y = this.node.x + r.default.Inst.node_content.x, g = this.node.y + r.default.Inst.node_content.y + 30;
|
|
|
f.getComponent(d.default).init(new cc.Vec2(y, g), u);
|
|
|
r.default.Inst.node_effectUI.addChild(f);
|
|
|
if (t) {
|
|
|
@@ -5133,7 +5189,7 @@ r.default.Inst.initScore();
|
|
|
var _ = l.default.Inst.getPoolPrefab(l.NODEPOOLPREFABTYPE.ScoreEnergy);
|
|
|
_.getComponent(h.default).init(y, g, u);
|
|
|
r.default.Inst.node_effectUI.addChild(_);
|
|
|
-this.spr_redPackIcon.node.active && this.scheduleOnce(function() {
|
|
|
+this.node_redPackIcon.active && this.scheduleOnce(function() {
|
|
|
if (r.default.Inst.finalGetScore < r.default.Inst.targetScore) {
|
|
|
gData.reward.subType = 2;
|
|
|
mk.ui.openPanel("module/reward/rewardLuck");
|
|
|
@@ -5141,12 +5197,12 @@ mk.ui.openPanel("module/reward/rewardLuck");
|
|
|
});
|
|
|
}
|
|
|
}
|
|
|
-this.spr_redPackIcon.node.active && (this.spr_redPackIcon.node.active = !1);
|
|
|
+this.node_redPackIcon.active && (this.node_redPackIcon.active = !1);
|
|
|
l.default.Inst.recyclePoolPrefab(l.NODEPOOLPREFABTYPE.CellItem, this.node);
|
|
|
};
|
|
|
a([ _(cc.Animation) ], e.prototype, "ani_cellItem", void 0);
|
|
|
a([ _(cc.Sprite) ], e.prototype, "spr_cellItemIcon", void 0);
|
|
|
-a([ _(cc.Sprite) ], e.prototype, "spr_redPackIcon", void 0);
|
|
|
+a([ _(cc.Node) ], e.prototype, "node_redPackIcon", void 0);
|
|
|
return a([ g ], e);
|
|
|
}(cc.Component);
|
|
|
n.default = m;
|
|
|
@@ -6811,7 +6867,7 @@ Object.defineProperty(n, "__esModule", {
|
|
|
value: !0
|
|
|
});
|
|
|
n.Fun = void 0;
|
|
|
-var o, i = t("./AppData"), a = t("./GameData"), r = t("./HttpData"), c = t("./LoginData"), s = t("./StorageData"), l = t("./WechatData"), u = t("./module/HelpData"), p = t("./module/PigBankData"), d = t("./module/TurnableData"), h = t("./module/SignData"), f = t("./module/FissionData"), y = t("./AdData"), g = t("./module/RewardData"), _ = t("./module/CashNormalData"), m = t("./module/ReceiptNoticeData"), v = t("./module/BlessingBagData"), b = t("./module/CashProData"), S = t("./module/RedBagCashData"), w = t("./module/RedCodeData"), A = t("./module/RedeemData"), D = t("./module/MoreGameData"), P = t("./module/SettingData"), O = t("./module/GuideData"), I = t("./module/GuideWeakData"), k = function() {
|
|
|
+var o, i = t("./AppData"), a = t("./GameData"), r = t("./HttpData"), c = t("./LoginData"), s = t("./StorageData"), l = t("./WechatData"), u = t("./module/HelpData"), p = t("./module/PigBankData"), d = t("./module/TurnableData"), h = t("./module/SignData"), f = t("./module/FissionData"), y = t("./AdData"), g = t("./module/RewardData"), _ = t("./module/CashNormalData"), m = t("./module/ReceiptNoticeData"), v = t("./module/BlessingBagData"), b = t("./module/CashProData"), S = t("./module/RedBagCashData"), A = t("./module/RedCodeData"), w = t("./module/RedeemData"), D = t("./module/MoreGameData"), P = t("./module/SettingData"), O = t("./module/GuideData"), I = t("./module/GuideWeakData"), k = function() {
|
|
|
function t() {
|
|
|
this.init();
|
|
|
}
|
|
|
@@ -6838,8 +6894,8 @@ this.setting = new P.SettingData();
|
|
|
this.moreGame = new D.MoreGameData();
|
|
|
this.blessingBag = new v.BlessingBagData();
|
|
|
this.cashPro = new b.default();
|
|
|
-this.redCodeData = new w.default();
|
|
|
-this.redeem = new A.default();
|
|
|
+this.redCodeData = new A.default();
|
|
|
+this.redeem = new w.default();
|
|
|
this.moduleData = new Map();
|
|
|
this.moduleData.set(o.moreGame, this.moreGame);
|
|
|
this.moduleData.set(o.turnable, this.turnable);
|
|
|
@@ -9962,7 +10018,7 @@ e.lbl_desc = null;
|
|
|
return e;
|
|
|
}
|
|
|
e.prototype.start = function() {
|
|
|
-mk.ad.showNativeAd(4);
|
|
|
+mk.ad.showNative(4);
|
|
|
};
|
|
|
e.prototype.update = function() {
|
|
|
gData.help.init_desc_name && (this.lbl_desc.string = gData.help.des);
|
|
|
@@ -10507,13 +10563,18 @@ return c;
|
|
|
};
|
|
|
t.backTest = function() {};
|
|
|
t.updateDeviceInfo = function(t) {
|
|
|
-mk.console.log("updateDeviceInfo" + cc.sys.os, t);
|
|
|
+mk.console.log("===[JsbSystem] updateDeviceInfo" + cc.sys.os, t);
|
|
|
cc.sys.os == cc.sys.OS_ANDROID ? gData.appData.updateDeviceInfo(t) : (cc.sys.os,
|
|
|
cc.sys.OS_IOS);
|
|
|
};
|
|
|
t.getDeviceInfo = function() {
|
|
|
-mk.console.log("getDeviceInfo", cc.sys.os);
|
|
|
-cc.sys.os == cc.sys.OS_ANDROID ? this.callStaticMethod(this._JSB_ANDROID_PATH, "getDeviceInfo", "()V") : cc.sys.os == cc.sys.OS_IOS ? this.callStaticMethod(this._JSB_IOS_PATH, "getDeviceInfo", "") : gData.appData.getDeviceInfoCompelete = !0;
|
|
|
+var t = "";
|
|
|
+if (cc.sys.os == cc.sys.OS_ANDROID) {
|
|
|
+t = this.callStaticMethod(this._JSB_ANDROID_PATH, "getDeviceInfo", "()Ljava/lang/String;");
|
|
|
+console.log("===[JsbSystem] getDeviceInfo ", t);
|
|
|
+return t;
|
|
|
+}
|
|
|
+cc.sys.os == cc.sys.OS_IOS ? this.callStaticMethod(this._JSB_IOS_PATH, "getDeviceInfo", "") : gData.appData.getDeviceInfoCompelete = !0;
|
|
|
};
|
|
|
t.getPackageName = function() {
|
|
|
var t = "";
|
|
|
@@ -11426,34 +11487,30 @@ return [ 2 ];
|
|
|
};
|
|
|
e.prototype.getForceVersionInfo = function() {
|
|
|
return r(this, void 0, void 0, function() {
|
|
|
-var t, e, n, o;
|
|
|
-return c(this, function(i) {
|
|
|
-switch (i.label) {
|
|
|
+var t, e;
|
|
|
+return c(this, function(n) {
|
|
|
+switch (n.label) {
|
|
|
case 0:
|
|
|
console.log("===[Login] getForceVersionInfo发送请求整包更新");
|
|
|
mk.console.log("===[Login] getForceVersionInfo", gData.loginData.uin, gData.loginData.sessionKey);
|
|
|
-(t = {
|
|
|
-version: gData.appData.appVersion,
|
|
|
-channel: gData.appData.tfChannel
|
|
|
-}).timestamp = Math.floor(.001 * new Date().getTime());
|
|
|
-t.appVersion = gData.appData.appVersion;
|
|
|
-t.tfChannel = gData.appData.tfChannel;
|
|
|
-t.versioncfg = gData.appData.version;
|
|
|
-e = mk.encrypt.encrypt(JSON.stringify(t), gData.loginData.sessionKey, gData.loginData.sessionKey);
|
|
|
-n = {
|
|
|
-uin: gData.loginData.uin,
|
|
|
-encrypt: e
|
|
|
+t = {
|
|
|
+appId: gData.appData.appId,
|
|
|
+channel: gData.appData.tfChannel,
|
|
|
+version: gData.appData.appVersion
|
|
|
};
|
|
|
-return [ 4, mk.http.sendRequest("getForceVersionInfo", "POST", JSON.stringify(n), !1, !1) ];
|
|
|
+mk.console.log("===[Login] getForceVersionInfo appId", gData.appData.appId);
|
|
|
+mk.console.log("===[Login] getForceVersionInfo channel", gData.appData.tfChannel);
|
|
|
+mk.console.log("===[Login] getForceVersionInfo version", gData.appData.appVersion);
|
|
|
+return [ 4, mk.http.sendRequest("getForceVersionInfo", "POST", JSON.stringify(t), !1, !1) ];
|
|
|
|
|
|
case 1:
|
|
|
-o = i.sent();
|
|
|
-mk.console.logSingle("===[Login] getForceVersionInfo response", o);
|
|
|
-gData.appData.needForceUpdate = o.isForceUpdate;
|
|
|
-gData.appData.installVersion = o.version;
|
|
|
-gData.appData.installUrl = o.downloadAddress;
|
|
|
-gData.appData.updateDes = o.versionRemark;
|
|
|
-gData.appData.fixDes = o.bugRestoreRemark;
|
|
|
+e = n.sent();
|
|
|
+mk.console.logSingle("===[Login] getForceVersionInfo response", e);
|
|
|
+gData.appData.needForceUpdate = e.isForceUpdate;
|
|
|
+gData.appData.installVersion = e.version;
|
|
|
+gData.appData.installUrl = e.downloadAddress;
|
|
|
+gData.appData.updateDes = e.versionRemark;
|
|
|
+gData.appData.fixDes = e.bugRestoreRemark;
|
|
|
return [ 2 ];
|
|
|
}
|
|
|
});
|
|
|
@@ -11559,7 +11616,7 @@ cc._RF.push(e, "f0038hKHC9Nf5+ipaUV9rc5", "MKSystem");
|
|
|
Object.defineProperty(n, "__esModule", {
|
|
|
value: !0
|
|
|
});
|
|
|
-var o = t("../sdk/BuglySDK"), i = t("../utils/FileUtil"), a = t("../utils/TimeUtil"), r = t("./DataSystem"), c = t("./HttpSystem"), s = t("../utils/LoadResUtil"), l = t("../utils/LogUtil"), u = t("../utils/EncryptUtil"), p = t("../utils/GameUtil"), d = t("../utils/StorageUtil"), h = t("./TimerSystem"), f = t("./EventSystem"), y = t("../utils/MathUtil"), g = t("./AdSystem"), _ = t("./JsbSystem"), m = t("../sdk/ad/toppon/AnyThinkAdsMgr/ATSDKMgr"), v = t("./AudioSystem"), b = t("./PoolSystem"), S = t("../utils/TweenUtil"), w = t("./GuideSystem"), A = t("../utils/StringUtil"), D = function() {
|
|
|
+var o = t("../sdk/BuglySDK"), i = t("../utils/FileUtil"), a = t("../utils/TimeUtil"), r = t("./DataSystem"), c = t("./HttpSystem"), s = t("../utils/LoadResUtil"), l = t("../utils/LogUtil"), u = t("../utils/EncryptUtil"), p = t("../utils/GameUtil"), d = t("../utils/StorageUtil"), h = t("./TimerSystem"), f = t("./EventSystem"), y = t("../utils/MathUtil"), g = t("./AdSystem"), _ = t("./JsbSystem"), m = t("../sdk/ad/toppon/AnyThinkAdsMgr/ATSDKMgr"), v = t("./AudioSystem"), b = t("./PoolSystem"), S = t("../utils/TweenUtil"), A = t("./GuideSystem"), w = t("../utils/StringUtil"), D = function() {
|
|
|
function t() {}
|
|
|
Object.defineProperty(t.prototype, "time", {
|
|
|
get: function() {
|
|
|
@@ -11619,7 +11676,7 @@ configurable: !0
|
|
|
});
|
|
|
Object.defineProperty(t.prototype, "string", {
|
|
|
get: function() {
|
|
|
-return this._string || (this._string = new A.default());
|
|
|
+return this._string || (this._string = new w.default());
|
|
|
},
|
|
|
enumerable: !1,
|
|
|
configurable: !0
|
|
|
@@ -11696,7 +11753,7 @@ configurable: !0
|
|
|
});
|
|
|
Object.defineProperty(t.prototype, "guide", {
|
|
|
get: function() {
|
|
|
-return this._guide || (this._guide = new w.default());
|
|
|
+return this._guide || (this._guide = new A.default());
|
|
|
},
|
|
|
enumerable: !1,
|
|
|
configurable: !0
|
|
|
@@ -13276,7 +13333,7 @@ return e;
|
|
|
}
|
|
|
e.prototype.onLoad = function() {};
|
|
|
e.prototype.start = function() {
|
|
|
-mk.ad.showNativeAd(4);
|
|
|
+mk.ad.showNative(4);
|
|
|
this.node_bg.setContentSize(cc.winSize.width, cc.winSize.height);
|
|
|
this.initEvent();
|
|
|
};
|
|
|
@@ -15150,6 +15207,7 @@ return e;
|
|
|
}
|
|
|
e.prototype.start = function() {
|
|
|
this.initList();
|
|
|
+mk.ad.showNative(4);
|
|
|
};
|
|
|
e.prototype.initList = function() {
|
|
|
var t = gData.cashNormal.getListDataHavCode();
|
|
|
@@ -15177,6 +15235,9 @@ this.videoNode.destroy();
|
|
|
mk.audio.setResumeMusic();
|
|
|
this.coolTime = !1;
|
|
|
};
|
|
|
+e.prototype.onClickClose = function() {
|
|
|
+mk.ad.destroyNativeAd();
|
|
|
+};
|
|
|
a([ s({
|
|
|
type: cc.ScrollView,
|
|
|
displayName: "滚动视图"
|
|
|
@@ -15281,7 +15342,7 @@ e.coolTime = !1;
|
|
|
return e;
|
|
|
}
|
|
|
e.prototype.start = function() {
|
|
|
-mk.ad.showNativeAd(4);
|
|
|
+mk.ad.showNative(4);
|
|
|
this.coolTime = !1;
|
|
|
this.labOfficial.string = "“" + this.officialStr + "”";
|
|
|
this.labRed.string = "“" + this.redCodeStr + "”";
|
|
|
@@ -16058,7 +16119,7 @@ this.hb_star.active = !1;
|
|
|
this.lbl_reward_value.string = "0";
|
|
|
};
|
|
|
e.prototype.start = function() {
|
|
|
-mk.ad.showBannerAd();
|
|
|
+mk.ad.showBanner();
|
|
|
mk.ad.checkShowInterByChance();
|
|
|
this.initLid();
|
|
|
this.initCashOutStyle(gData.gameData.gameData.redMoney);
|
|
|
@@ -16214,7 +16275,7 @@ e.prototype.onDestroy = function() {
|
|
|
this.cur_stage === s.none && mk.audio.playEffect("rewardClose");
|
|
|
};
|
|
|
e.prototype.onClickClose = function() {
|
|
|
-mk.ad.destroyNativeAd();
|
|
|
+mk.ad.destoryBanner();
|
|
|
mk.ad.checkShowInterByChance();
|
|
|
};
|
|
|
a([ f({
|
|
|
@@ -17034,7 +17095,7 @@ e.prototype.onLoad = function() {
|
|
|
this.initData();
|
|
|
};
|
|
|
e.prototype.start = function() {
|
|
|
-mk.ad.showNativeAd(4);
|
|
|
+mk.ad.showNative(4);
|
|
|
};
|
|
|
e.prototype.initData = function() {
|
|
|
return r(this, void 0, void 0, function() {
|
|
|
@@ -17860,7 +17921,7 @@ return e;
|
|
|
}
|
|
|
e.prototype.onLoad = function() {};
|
|
|
e.prototype.start = function() {
|
|
|
-mk.ad.showNativeAd(4);
|
|
|
+mk.ad.showNative(4);
|
|
|
gData.sign.initListData();
|
|
|
gData.sign.init_data = !0;
|
|
|
this.initScollView();
|
|
|
@@ -17884,7 +17945,10 @@ if (1 != gData.gameData.gameData.isSignInToday && gData.sign.haveSignDay()) {
|
|
|
var t = gData.sign.getItemIndexByCanSign();
|
|
|
gData.sign.c_sign[t].rewardType !== s.RewardType.rmb || gData.loginData.isAuth ? mk.ad.watchAd(function(t) {
|
|
|
mk.console.log("watchAD:" + t);
|
|
|
-t && gData.adData.watchVideo(c.AdFun.sign);
|
|
|
+if (t) {
|
|
|
+gData.adData.watchVideo(c.AdFun.sign);
|
|
|
+mk.ad.destroyNativeAd();
|
|
|
+}
|
|
|
}) : r.default.WxAuth();
|
|
|
}
|
|
|
};
|
|
|
@@ -21010,24 +21074,24 @@ var c = t[s = i + r];
|
|
|
t[s] = 16711935 & (c << 8 | c >>> 24) | 4278255360 & (c << 24 | c >>> 8);
|
|
|
}
|
|
|
r = this._hash.words;
|
|
|
-var s = t[i + 0], l = (c = t[i + 1], t[i + 2]), p = t[i + 3], d = t[i + 4], h = t[i + 5], f = t[i + 6], y = t[i + 7], g = t[i + 8], _ = t[i + 9], m = t[i + 10], v = t[i + 11], b = t[i + 12], S = t[i + 13], w = t[i + 14], A = t[i + 15], D = e(D = r[0], I = r[1], O = r[2], P = r[3], s, 7, u[0]), P = e(P, D, I, O, c, 12, u[1]), O = e(O, P, D, I, l, 17, u[2]), I = e(I, O, P, D, p, 22, u[3]);
|
|
|
+var s = t[i + 0], l = (c = t[i + 1], t[i + 2]), p = t[i + 3], d = t[i + 4], h = t[i + 5], f = t[i + 6], y = t[i + 7], g = t[i + 8], _ = t[i + 9], m = t[i + 10], v = t[i + 11], b = t[i + 12], S = t[i + 13], A = t[i + 14], w = t[i + 15], D = e(D = r[0], I = r[1], O = r[2], P = r[3], s, 7, u[0]), P = e(P, D, I, O, c, 12, u[1]), O = e(O, P, D, I, l, 17, u[2]), I = e(I, O, P, D, p, 22, u[3]);
|
|
|
D = e(D, I, O, P, d, 7, u[4]), P = e(P, D, I, O, h, 12, u[5]), O = e(O, P, D, I, f, 17, u[6]),
|
|
|
I = e(I, O, P, D, y, 22, u[7]), D = e(D, I, O, P, g, 7, u[8]), P = e(P, D, I, O, _, 12, u[9]),
|
|
|
O = e(O, P, D, I, m, 17, u[10]), I = e(I, O, P, D, v, 22, u[11]), D = e(D, I, O, P, b, 7, u[12]),
|
|
|
-P = e(P, D, I, O, S, 12, u[13]), O = e(O, P, D, I, w, 17, u[14]), D = n(D, I = e(I, O, P, D, A, 22, u[15]), O, P, c, 5, u[16]),
|
|
|
+P = e(P, D, I, O, S, 12, u[13]), O = e(O, P, D, I, A, 17, u[14]), D = n(D, I = e(I, O, P, D, w, 22, u[15]), O, P, c, 5, u[16]),
|
|
|
P = n(P, D, I, O, f, 9, u[17]), O = n(O, P, D, I, v, 14, u[18]), I = n(I, O, P, D, s, 20, u[19]),
|
|
|
-D = n(D, I, O, P, h, 5, u[20]), P = n(P, D, I, O, m, 9, u[21]), O = n(O, P, D, I, A, 14, u[22]),
|
|
|
-I = n(I, O, P, D, d, 20, u[23]), D = n(D, I, O, P, _, 5, u[24]), P = n(P, D, I, O, w, 9, u[25]),
|
|
|
+D = n(D, I, O, P, h, 5, u[20]), P = n(P, D, I, O, m, 9, u[21]), O = n(O, P, D, I, w, 14, u[22]),
|
|
|
+I = n(I, O, P, D, d, 20, u[23]), D = n(D, I, O, P, _, 5, u[24]), P = n(P, D, I, O, A, 9, u[25]),
|
|
|
O = n(O, P, D, I, p, 14, u[26]), I = n(I, O, P, D, g, 20, u[27]), D = n(D, I, O, P, S, 5, u[28]),
|
|
|
P = n(P, D, I, O, l, 9, u[29]), O = n(O, P, D, I, y, 14, u[30]), D = o(D, I = n(I, O, P, D, b, 20, u[31]), O, P, h, 4, u[32]),
|
|
|
-P = o(P, D, I, O, g, 11, u[33]), O = o(O, P, D, I, v, 16, u[34]), I = o(I, O, P, D, w, 23, u[35]),
|
|
|
+P = o(P, D, I, O, g, 11, u[33]), O = o(O, P, D, I, v, 16, u[34]), I = o(I, O, P, D, A, 23, u[35]),
|
|
|
D = o(D, I, O, P, c, 4, u[36]), P = o(P, D, I, O, d, 11, u[37]), O = o(O, P, D, I, y, 16, u[38]),
|
|
|
I = o(I, O, P, D, m, 23, u[39]), D = o(D, I, O, P, S, 4, u[40]), P = o(P, D, I, O, s, 11, u[41]),
|
|
|
O = o(O, P, D, I, p, 16, u[42]), I = o(I, O, P, D, f, 23, u[43]), D = o(D, I, O, P, _, 4, u[44]),
|
|
|
-P = o(P, D, I, O, b, 11, u[45]), O = o(O, P, D, I, A, 16, u[46]), D = a(D, I = o(I, O, P, D, l, 23, u[47]), O, P, s, 6, u[48]),
|
|
|
-P = a(P, D, I, O, y, 10, u[49]), O = a(O, P, D, I, w, 15, u[50]), I = a(I, O, P, D, h, 21, u[51]),
|
|
|
+P = o(P, D, I, O, b, 11, u[45]), O = o(O, P, D, I, w, 16, u[46]), D = a(D, I = o(I, O, P, D, l, 23, u[47]), O, P, s, 6, u[48]),
|
|
|
+P = a(P, D, I, O, y, 10, u[49]), O = a(O, P, D, I, A, 15, u[50]), I = a(I, O, P, D, h, 21, u[51]),
|
|
|
D = a(D, I, O, P, b, 6, u[52]), P = a(P, D, I, O, p, 10, u[53]), O = a(O, P, D, I, m, 15, u[54]),
|
|
|
-I = a(I, O, P, D, c, 21, u[55]), D = a(D, I, O, P, g, 6, u[56]), P = a(P, D, I, O, A, 10, u[57]),
|
|
|
+I = a(I, O, P, D, c, 21, u[55]), D = a(D, I, O, P, g, 6, u[56]), P = a(P, D, I, O, w, 10, u[57]),
|
|
|
O = a(O, P, D, I, f, 15, u[58]), I = a(I, O, P, D, S, 21, u[59]), D = a(D, I, O, P, d, 6, u[60]),
|
|
|
P = a(P, D, I, O, v, 10, u[61]), O = a(O, P, D, I, l, 15, u[62]), I = a(I, O, P, D, _, 21, u[63]);
|
|
|
r[0] = r[0] + D | 0;
|
|
|
@@ -21290,25 +21354,25 @@ for (y = 0; 256 > y; y++) {
|
|
|
var m = (m = _ ^ _ << 1 ^ _ << 2 ^ _ << 3 ^ _ << 4) >>> 8 ^ 255 & m ^ 99;
|
|
|
o[g] = m;
|
|
|
a[m] = g;
|
|
|
-var v = f[g], b = f[v], S = f[b], w = 257 * f[m] ^ 16843008 * m;
|
|
|
-r[g] = w << 24 | w >>> 8;
|
|
|
-c[g] = w << 16 | w >>> 16;
|
|
|
-s[g] = w << 8 | w >>> 24;
|
|
|
-l[g] = w;
|
|
|
-w = 16843009 * S ^ 65537 * b ^ 257 * v ^ 16843008 * g;
|
|
|
-u[m] = w << 24 | w >>> 8;
|
|
|
-p[m] = w << 16 | w >>> 16;
|
|
|
-d[m] = w << 8 | w >>> 24;
|
|
|
-h[m] = w;
|
|
|
+var v = f[g], b = f[v], S = f[b], A = 257 * f[m] ^ 16843008 * m;
|
|
|
+r[g] = A << 24 | A >>> 8;
|
|
|
+c[g] = A << 16 | A >>> 16;
|
|
|
+s[g] = A << 8 | A >>> 24;
|
|
|
+l[g] = A;
|
|
|
+A = 16843009 * S ^ 65537 * b ^ 257 * v ^ 16843008 * g;
|
|
|
+u[m] = A << 24 | A >>> 8;
|
|
|
+p[m] = A << 16 | A >>> 16;
|
|
|
+d[m] = A << 8 | A >>> 24;
|
|
|
+h[m] = A;
|
|
|
g ? (g = v ^ f[f[f[S ^ v]]], _ ^= f[f[_]]) : g = _ = 1;
|
|
|
}
|
|
|
-var A = [ 0, 1, 2, 4, 8, 16, 32, 64, 128, 27, 54 ];
|
|
|
+var w = [ 0, 1, 2, 4, 8, 16, 32, 64, 128, 27, 54 ];
|
|
|
n = n.AES = e.extend({
|
|
|
_doReset: function() {
|
|
|
for (var t = (n = this._key).words, e = n.sigBytes / 4, n = 4 * ((this._nRounds = e + 6) + 1), i = this._keySchedule = [], a = 0; a < n; a++) if (a < e) i[a] = t[a]; else {
|
|
|
var r = i[a - 1];
|
|
|
a % e ? 6 < e && 4 == a % e && (r = o[r >>> 24] << 24 | o[r >>> 16 & 255] << 16 | o[r >>> 8 & 255] << 8 | o[255 & r]) : (r = o[(r = r << 8 | r >>> 24) >>> 24] << 24 | o[r >>> 16 & 255] << 16 | o[r >>> 8 & 255] << 8 | o[255 & r],
|
|
|
-r ^= A[a / e | 0] << 24);
|
|
|
+r ^= w[a / e | 0] << 24);
|
|
|
i[a] = i[a - e] ^ r;
|
|
|
}
|
|
|
t = this._invKeySchedule = [];
|