提现看广告优化

This commit is contained in:
GaoHao
2025-01-16 13:33:28 +08:00
parent f92a3bbdf6
commit 1704cd2e7c
2 changed files with 2 additions and 3 deletions

View File

@@ -2,7 +2,7 @@
"version" : "1.0", "version" : "1.0",
"configurations" : [ "configurations" : [
{ {
"playground" : "standard", "playground" : "custom",
"type" : "uni-app:app-android" "type" : "uni-app:app-android"
}, },
{ {

View File

@@ -185,7 +185,6 @@
function ruleConfirm() { function ruleConfirm() {
data.ruleShow = false data.ruleShow = false
data.ruleIndex++ data.ruleIndex++
console.log(data.ruleIndex >= data.ruleList.length)
if( data.ruleIndex >= data.ruleList.length) { if( data.ruleIndex >= data.ruleList.length) {
data.ruleIndex = 0 data.ruleIndex = 0
return return
@@ -209,7 +208,7 @@
*/ */
async function getCanCash() { async function getCanCash() {
canCash().then(res => { canCash().then(res => {
data.isWithdraw = !res; data.isWithdraw = res;
if( uni.getStorageSync('adRewardedNum') >= 3 ){ if( uni.getStorageSync('adRewardedNum') >= 3 ){
data.isWithdraw = true; data.isWithdraw = true;
// uni.setStorageSync('adRewardedNum',0) // uni.setStorageSync('adRewardedNum',0)