Update dwnc.js

This commit is contained in:
smallfawn 2023-05-06 12:39:17 +08:00 committed by GitHub
parent 51fd9689c9
commit ca06525de5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -85,8 +85,6 @@ async function start() {
taskall.push(await user.task_true());
//await wait(1); //延迟
}
await Promise.all(taskall);
await Promise.all(taskall);
taskall = [];
for (let user of userList) {
@ -96,7 +94,6 @@ async function start() {
}
await Promise.all(taskall);
console.log('\n------------------- [进度] -------------------\n');
taskall = [];
for (let user of userList) {
await $.wait(3000)
@ -518,9 +515,9 @@ class UserInfo {
let result = await httpRequest(options);
//console.log(result);
if (result.code == 200) {
if('rewardNum' in result.data.wateringReward){
if (result.data.wateringReward !== null) {
DoubleLog(`账号[${this.index}] 浇水[${result.msg}][${result.data.wateringReward.rewardNum}g]`);
}else{
} else {
DoubleLog(`账号[${this.index}] 浇水[${result.msg}]`);
}
} else if (result.code == 711110001) {