激励视频onClose会调用多次调用
2649 浏览2021年12月01日作者:用户6256582231341

报错截图或相关BUG

//加载广告

loadInterstitialAd: function () {

var that = this;

console.log(that.setAD.rewardedVideoid);

if (uni.createRewardedVideoAd) {

rewardedVideoAd = uni.createRewardedVideoAd({

adUnitId: that.setAD.rewardedVideoid,

multiton: true,

multitonRewardedMsg: "观看下一个可领取更多奖励",

});

rewardedVideoAd.onLoad(() => {

console.log('onLoad event emit');

});

rewardedVideoAd.onError(err => {

console.log(err);

});

rewardedVideoAd.onClose(res => {

var id = that.post.id;

if (res && res.isEnded) {

rewardedVideoAd.offClose();

that.downloadMyFile();

console.log(res);

that.saveBalance();

} else {

uni.showToast({

title: "你中途关闭了视频",

icon: "none",

duration: 3000

});

}

});

}

},

复现步骤

  • 第1步... 经常性的出现调用多次close事件 有时候直接调用8-9次
  • 第2步...
  • ...
最后一次编辑于 2021 年 12 月 01 日
4 条评论

相关问答

专题推荐

热门文章

热门问答