From ca06525de523ceb80891047704c9118a908890d3 Mon Sep 17 00:00:00 2001 From: smallfawn <101914820+smallfawn@users.noreply.github.com> Date: Sat, 6 May 2023 12:39:17 +0800 Subject: [PATCH] Update dwnc.js --- dwnc.js | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/dwnc.js b/dwnc.js index bd73bf2..a630e87 100644 --- a/dwnc.js +++ b/dwnc.js @@ -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) {