Update dwnc.js

This commit is contained in:
smallfawn
2023-05-06 12:39:17 +08:00
committed by GitHub
parent 51fd9689c9
commit ca06525de5

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,7 +515,7 @@ 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 {
DoubleLog(`账号[${this.index}] 浇水[${result.msg}]`);