diff --git a/src/platforms/app-plus/service/api/ad/rewarded-video-ad.js b/src/platforms/app-plus/service/api/ad/rewarded-video-ad.js index eb0008c5aaed4a110006256f86983fd6a717769e..37a2dc6a0dc1f59f7ef9b9424c870575234da51e 100644 --- a/src/platforms/app-plus/service/api/ad/rewarded-video-ad.js +++ b/src/platforms/app-plus/service/api/ad/rewarded-video-ad.js @@ -72,9 +72,7 @@ class RewardedVideoAd { this._dispatchEvent('adClicked', {}) }) - if (this._preload) { - this._loadAd() - } + this._loadAd() } get isExpired () { diff --git a/src/platforms/h5/view/components/ad/index.vue b/src/platforms/h5/view/components/ad/index.vue index 3e3d88b43087d2271f9615abc7e932b40c6757b4..d5e54e341afe948277f5dd62c1b9efded5f40e3e 100644 --- a/src/platforms/h5/view/components/ad/index.vue +++ b/src/platforms/h5/view/components/ad/index.vue @@ -436,6 +436,7 @@ export default { const data = this._pl[this._pi] const providerConfig = this._b[data.a1][data.t] const script = providerConfig.script + this._currentChannel = data.a1 var id = this._randomId() var view = this._createView(id) @@ -517,7 +518,7 @@ export default { _checkRender () { var hasContent = (this.$refs.container.children.length > 0 && this.$refs.container.clientHeight > 40) if (hasContent) { - this._report(40) + this._report(40, this._currentChannel) } return hasContent }, @@ -543,12 +544,16 @@ export default { this._checkTimer = null } }, - _report (type) { - AdReport.instance.get({ + _report (type, currentChannel) { + let reportData = { h: __uniConfig.compilerVersion, a: this.adpid, at: type - }) + } + if (currentChannel) { + reportData.t = currentChannel + } + AdReport.instance.get(reportData) }, _randomId () { var result = ''