Commit 664f4bc7 authored by jyx's avatar jyx

代码优化

parent 94e51199
...@@ -273,7 +273,7 @@ ...@@ -273,7 +273,7 @@
data data
}) => { }) => {
that.showAdForServer = data.douyinAdTipOpen; that.showAdForServer = data.douyinAdTipOpen;
if (!that.showAdForServer) { if (that.showAdForServer) {
// 预加载广告 // 预加载广告
that.preloadAd() that.preloadAd()
} }
...@@ -284,7 +284,7 @@ ...@@ -284,7 +284,7 @@
let that = this let that = this
// 创建实例 // 创建实例
this.ad = tt.createRewardedVideoAd({ this.ad = tt.createRewardedVideoAd({
adUnitId: REWARD_ID, adUnitId: REWARD_ID
}); });
// 监听错误 // 监听错误
...@@ -431,7 +431,7 @@ ...@@ -431,7 +431,7 @@
}, },
adUnlock() { adUnlock() {
let that = this let that = this
this.post({ common.methods.post({
url: '/vedio/unlockByAd', url: '/vedio/unlockByAd',
data: { data: {
adSource: 'csj', adSource: 'csj',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment