From 8079ff6c9f64c7a016ee5d08acfbe6e9e06fd7b3 Mon Sep 17 00:00:00 2001 From: haptear Date: Mon, 28 Mar 2022 09:39:21 +0800 Subject: [PATCH] =?UTF-8?q?=E7=A6=81=E6=AD=A2=E6=89=93=E5=8D=A1=E6=B8=B8?= =?UTF-8?q?=E6=88=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 58tc.js | 28 ++++++++++++++-------------- README.md | 8 +++++++- 2 files changed, 21 insertions(+), 15 deletions(-) diff --git a/58tc.js b/58tc.js index 9a9b437..f4a450e 100644 --- a/58tc.js +++ b/58tc.js @@ -470,7 +470,7 @@ class UserInfo { console.log(`账号[${this.index}]今天${auctionStr}`) let maxBid = parseFloat(result.result.userInfo.usableOre) let bidNum = 1 - if(this.runTask == 1) { + if(this.runTask == 2) { if(this.auction.status==0) { if(maxBid >= bidNum) { await $.wait(500) @@ -557,7 +557,7 @@ class UserInfo { let str = (item.userState==0) ? '未报名' : ((item.userState==5) ? '可打卡' :'已报名') console.log(`账号[${this.index}]${type}${item.number}期 -- ${str}`) if(item.userState==0) { - if(this.runTask == 1) { + if(this.runTask == 2) { if(this.ore.ore >= item.oreLimitValue) { await $.wait(500) await this.attendanceSignIn(item) @@ -671,21 +671,21 @@ class UserInfo { } console.log('\n================== 竞拍小游戏 ==================') - for(let user of userList) { - await user.auctionInfo(); - await $.wait(200); - } + // for(let user of userList) { + // await user.auctionInfo(); + // await $.wait(200); + // } console.log('\n================== 打卡小游戏 ==================') - for(let user of userList) { - await user.oreMainpage(false); - await $.wait(200); - } + // for(let user of userList) { + // await user.oreMainpage(false); + // await $.wait(200); + // } - for(let user of userList) { - await user.attendanceDetail(); - await $.wait(200); - } + // for(let user of userList) { + // await user.attendanceDetail(); + // await $.wait(200); + // } console.log('\n================== 金币任务 ==================') if(curHour>=TASK_TIME[0] && curHour