提交 bfa4821c 编写于 作者: d-u-a's avatar d-u-a

update: uni.createRewardedVideoAd 修改错误回调字段名

上级 8a1a36a5
......@@ -38,11 +38,12 @@ class RewardedVideoAd {
this._dispatchEvent('close', { isEnded: e.isEnded })
})
rewardAd.onError((e) => {
const { code } = e
const { code, message } = e
const data = { code: code, errMsg: message }
this._adError = (code && code < 5005)
this._dispatchEvent('error', e)
this._dispatchEvent('error', data)
if (code === 5005 && this._loadPromiseReject != null) {
this._loadPromiseReject(e)
this._loadPromiseReject(data)
this._loadPromiseReject = null
}
})
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册