From aae3de84f4e9ab8566f3ed0cd3cd9b4b0c4b0489 Mon Sep 17 00:00:00 2001 From: shanmite Date: Mon, 15 Aug 2022 15:28:45 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BB=85=E5=9C=A8=E8=AF=84=E8=AE=BA?= =?UTF-8?q?=E9=9C=80=E8=A6=81=E9=AA=8C=E8=AF=81=E7=A0=81=E6=97=B6=E9=80=80?= =?UTF-8?q?=E5=87=BA(#175)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fixed #175 --- lib/core/monitor.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/core/monitor.js b/lib/core/monitor.js index 46ec3d2..12fe708 100644 --- a/lib/core/monitor.js +++ b/lib/core/monitor.js @@ -107,8 +107,10 @@ class Monitor extends Searcher { status = 0, is_exception = 0, is_outof_maxfollow = 0, - relayed_nums = 0; + relayed_nums = 0, + total_nums = 0; for (const [index, lottery] of shuffle(allLottery).entries()) { + total_nums += 1; let is_shutdown = false; if ( is_outof_maxfollow @@ -173,9 +175,6 @@ class Monitor extends Searcher { break; case 1002: case 1003: - case 1004: - is_shutdown = true; - break; case 1005: case 1006: case 1007: @@ -197,6 +196,7 @@ class Monitor extends Searcher { is_outof_maxfollow = 2005 break; case 1001: + case 1004: case 2001: case 3001: case 5001: @@ -210,7 +210,7 @@ class Monitor extends Searcher { await delay(wait * (Math.random() + 0.5)); } - log.info('抽奖', `本轮共转发${relayed_nums}条`); + log.info('抽奖', `本轮共处理${total_nums}条,成功参与${relayed_nums}条`); return is_exception || is_outof_maxfollow || status