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

feat: ad-interactive 调整adpid验证逻辑

上级 7ff6bce8
......@@ -67,21 +67,13 @@
this._uniAdPlugin.show()
},
getAdData() {
if (!this.adpid) {
this.$emit(events.error, {
code: -5002,
message: 'invalid adpid'
})
return
}
this.loading = true
uni.request({
url: AD_URL,
method: 'POST',
data: {
adpid: this.adpid
adpid: this.adpid || ''
},
timeout: 5000,
dataType: 'json',
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册