广告回调修改
This commit is contained in:
@@ -227,6 +227,10 @@
|
|||||||
})
|
})
|
||||||
onReady(() => {
|
onReady(() => {
|
||||||
nextTick(() => {
|
nextTick(() => {
|
||||||
|
datas.urlCallback = {
|
||||||
|
userId: uni.getStorageSync('userInfo').userId,
|
||||||
|
extra: uni.getStorageSync('userInfo').userId + "" + new Date().getTime(),
|
||||||
|
}
|
||||||
datas.adRewardedVideoloadNum = 0
|
datas.adRewardedVideoloadNum = 0
|
||||||
adRewarded.value.load();
|
adRewarded.value.load();
|
||||||
})
|
})
|
||||||
@@ -251,6 +255,10 @@
|
|||||||
}
|
}
|
||||||
datas.adRewardedVideoloadNum++
|
datas.adRewardedVideoloadNum++
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
|
datas.urlCallback = {
|
||||||
|
userId: uni.getStorageSync('userInfo').userId,
|
||||||
|
extra: uni.getStorageSync('userInfo').userId + "" + new Date().getTime(),
|
||||||
|
}
|
||||||
adRewarded.value.load();
|
adRewarded.value.load();
|
||||||
}, 1000); // 10
|
}, 1000); // 10
|
||||||
console.log("广告加载失败")
|
console.log("广告加载失败")
|
||||||
@@ -275,6 +283,10 @@
|
|||||||
let res = await state({
|
let res = await state({
|
||||||
extraKey: datas.urlCallback.extra
|
extraKey: datas.urlCallback.extra
|
||||||
})
|
})
|
||||||
|
datas.urlCallback = {
|
||||||
|
userId: uni.getStorageSync('userInfo').userId,
|
||||||
|
extra: uni.getStorageSync('userInfo').userId + "" + new Date().getTime(),
|
||||||
|
}
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
title: '获得' + $common.freeDuration + '分钟免费时长',
|
title: '获得' + $common.freeDuration + '分钟免费时长',
|
||||||
icon: 'none'
|
icon: 'none'
|
||||||
@@ -347,10 +359,8 @@
|
|||||||
});
|
});
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
datas.urlCallback = {
|
|
||||||
userId: uni.getStorageSync('userInfo').userId,
|
console.log(datas.urlCallback)
|
||||||
extra: uni.getStorageSync('userInfo').userId + "" + new Date().getTime(),
|
|
||||||
}
|
|
||||||
adRewarded.value.show();
|
adRewarded.value.show();
|
||||||
} else {
|
} else {
|
||||||
uni.switchTab({
|
uni.switchTab({
|
||||||
|
|||||||
Reference in New Issue
Block a user