|
|
@@ -51,7 +51,7 @@ export default class AdSystem {
|
|
|
*/
|
|
|
public watchAd(callBack: Function) {
|
|
|
console.log("==[观看激励视频")
|
|
|
-
|
|
|
+
|
|
|
if (this.isAdCooling()) {
|
|
|
return;
|
|
|
}
|
|
|
@@ -64,7 +64,7 @@ export default class AdSystem {
|
|
|
else {
|
|
|
//FC;显示GroMore广告
|
|
|
JsbSystem.showGMoreRewardAd();
|
|
|
-
|
|
|
+
|
|
|
// if (cc.sys.platform != cc.sys.WECHAT_GAME) {
|
|
|
// if (cc.sys.os == cc.sys.OS_ANDROID) {
|
|
|
// this.adSdk.showVideo();
|
|
|
@@ -102,6 +102,7 @@ export default class AdSystem {
|
|
|
//广告过后,渲染会有问题,统一下一帧再处理逻辑
|
|
|
mk.ui.scheduleOnce(() => {
|
|
|
if (!gData.adData.checkAdMax()) {
|
|
|
+ mk.console.log("===[Cocoscreator wacthAdSuccess 1111");
|
|
|
this.videoAdcallBack(true);
|
|
|
}
|
|
|
this.initLastTimeStamp();
|
|
|
@@ -110,7 +111,7 @@ export default class AdSystem {
|
|
|
|
|
|
/** 显示原生广告 */
|
|
|
public showNative(type = 4) {
|
|
|
-
|
|
|
+
|
|
|
if (!this.ifShowAd) {
|
|
|
return;
|
|
|
}
|
|
|
@@ -133,7 +134,7 @@ export default class AdSystem {
|
|
|
|
|
|
/** 销毁原生广告 */
|
|
|
public destroyNativeAd() {
|
|
|
-
|
|
|
+
|
|
|
if (!this.ifShowAd) {
|
|
|
return;
|
|
|
}
|
|
|
@@ -179,7 +180,7 @@ export default class AdSystem {
|
|
|
}
|
|
|
|
|
|
public showBanner() {
|
|
|
-
|
|
|
+
|
|
|
if (CC_DEBUG) {
|
|
|
return;
|
|
|
}
|
|
|
@@ -192,13 +193,13 @@ export default class AdSystem {
|
|
|
// // if (gData.gameData.adShowConfig && gData.gameData.adShowConfig.is_show_banner == 1) {
|
|
|
// this.adSdk.showBanner();
|
|
|
// //}
|
|
|
-
|
|
|
+
|
|
|
//GroMore banner广告
|
|
|
JsbSystem.showGMoreBannerAd();
|
|
|
}
|
|
|
|
|
|
public destoryBanner() {
|
|
|
-
|
|
|
+
|
|
|
if (CC_DEBUG) {
|
|
|
return;
|
|
|
}
|
|
|
@@ -218,7 +219,7 @@ export default class AdSystem {
|
|
|
* @param type 0 插屏 1 全屏
|
|
|
*/
|
|
|
public showInterAd(type: number) {
|
|
|
-
|
|
|
+
|
|
|
if (CC_DEBUG) {
|
|
|
return;
|
|
|
}
|