From 6f904cf965226b4020dddb1474ab3c922d332669 Mon Sep 17 00:00:00 2001 From: handongxun Date: Wed, 12 May 2021 15:51:31 +0800 Subject: [PATCH] =?UTF-8?q?update:=20=E4=BA=92=E5=8A=A8=E5=B9=BF=E5=91=8A?= =?UTF-8?q?=EF=BC=8C=E5=A2=9E=E5=8A=A0=E7=BB=91=E5=AE=9A=E7=94=A8=E6=88=B7?= =?UTF-8?q?=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../app-plus/service/api/ad/interactive-ad.js | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/platforms/app-plus/service/api/ad/interactive-ad.js b/src/platforms/app-plus/service/api/ad/interactive-ad.js index 905e0899f..2bca39192 100644 --- a/src/platforms/app-plus/service/api/ad/interactive-ad.js +++ b/src/platforms/app-plus/service/api/ad/interactive-ad.js @@ -81,6 +81,7 @@ class InteractiveAd { this._adError = '' this._adpid = options.adpid this._provider = options.provider + this._userData = options.userData this._isLoaded = false this._isLoading = false this._loadPromiseResolve = null @@ -99,6 +100,9 @@ class InteractiveAd { provider: this._provider, success: (res) => { this._ad = res + if (this._userData) { + this.bindUserData(this._userData) + } this._loadAd() }, fail: (err) => { @@ -164,6 +168,12 @@ class InteractiveAd { } } + bindUserData (data) { + if (this._ad !== null) { + this._ad.bindUserData(data) + } + } + _loadAd () { if (this._ad !== null) { if (this._isLoading === true) { -- GitLab