Skip to content

Commit

Permalink
修复自动提现
Browse files Browse the repository at this point in the history
  • Loading branch information
Leaf committed Dec 19, 2021
1 parent 4d8c341 commit e9a4881
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions ydd.js
Original file line number Diff line number Diff line change
Expand Up @@ -802,16 +802,19 @@ async function QueryWithdrawList() {
let skipFlag = 0
if(skipWithdraw.length>0) {
for(let skipItem of skipWithdraw) {
if(parseInt(item.jine) == parseInt(skipItem)) {
if(item.jine == skipItem) {
skipFlag = 1
break
}
}
}
if(skipFlag==1) continue
if(userInfo[userIdx].point>item.jinbi && userInfo[userIdx].ticket>item.cond && item.is_ok==1) {
if(skipFlag==1) {
console.log(`用户${userIdx+1}跳过提现${item.jine}元`)
continue
}
if(userInfo[userIdx].point>=item.jinbi && userInfo[userIdx].ticket>=item.cond && item.is_ok==1) {
console.log(`用户${userIdx+1}准备提现${item.jine}元`)
//await Withdraw(item.jine)
await Withdraw(item.jine)
if(withdrawFlag[userIdx]==1) break;
}
}
Expand Down

0 comments on commit e9a4881

Please sign in to comment.