|
|
@@ -20,6 +20,9 @@ export default class ATInterstitial extends zgSingleton {
|
|
|
/** 是否加载完显示 */
|
|
|
private ifLoadShow: boolean = false;
|
|
|
|
|
|
+ private singleClick = false;
|
|
|
+ private singleClickFull = false;
|
|
|
+
|
|
|
/** 初始化 */
|
|
|
init() {
|
|
|
this.ATInterstitialJS = cc["ATInterstitialJS"];
|
|
|
@@ -155,9 +158,11 @@ export default class ATInterstitial extends zgSingleton {
|
|
|
let type = this.checkPlacementIDType(placementId);
|
|
|
if (type == 0) {
|
|
|
id = 2
|
|
|
+ this.singleClick = true;
|
|
|
}
|
|
|
else if (type == 1) {
|
|
|
id = 9
|
|
|
+ this.singleClickFull = true;
|
|
|
}
|
|
|
gData.adData.updateADLog(id, placementId, data);
|
|
|
|
|
|
@@ -167,6 +172,8 @@ export default class ATInterstitial extends zgSingleton {
|
|
|
// let price = GameM.commonData.getAdPrice(data.adsource_id, data.adsource_price)
|
|
|
// AdM.sendUROIEvent(eventID, data.id, placementId, "ad_show", "interstitial", adAdn, price)
|
|
|
// }
|
|
|
+
|
|
|
+
|
|
|
}
|
|
|
|
|
|
onInterstitialAdClick(placementId, callbackInfo) {
|
|
|
@@ -180,16 +187,29 @@ export default class ATInterstitial extends zgSingleton {
|
|
|
// }
|
|
|
|
|
|
let id = 52;
|
|
|
+ let singleId = 72;
|
|
|
let type = this.checkPlacementIDType(placementId);
|
|
|
+ let data = JSON.parse(callbackInfo)
|
|
|
if (type == 0) {
|
|
|
id = 52;
|
|
|
+ singleId = 72;
|
|
|
mk.data.sendDataEvent(DataEventId.ad_click, '插屏点击');
|
|
|
+
|
|
|
+ if (this.singleClick) {
|
|
|
+ this.singleClick = false;
|
|
|
+ gData.adData.updateADLog(singleId, placementId, data);
|
|
|
+ }
|
|
|
}
|
|
|
else if (type == 1) {
|
|
|
id = 56;
|
|
|
+ singleId = 76;
|
|
|
mk.data.sendDataEvent(DataEventId.ad_click, '全屏插屏点击');
|
|
|
+
|
|
|
+ if (this.singleClickFull) {
|
|
|
+ this.singleClickFull = false;
|
|
|
+ gData.adData.updateADLog(singleId, placementId, data);
|
|
|
+ }
|
|
|
}
|
|
|
- let data = JSON.parse(callbackInfo)
|
|
|
gData.adData.updateADLog(id, placementId, data);
|
|
|
}
|
|
|
|