From dbda9e648fae2279a28ecb41cda3ffa2852c63f7 Mon Sep 17 00:00:00 2001 From: juzeon <812312770@qq.com> Date: Tue, 14 Sep 2021 16:25:11 +0800 Subject: [PATCH] =?UTF-8?q?fix=EF=BC=9A=E4=BF=AE=E5=A4=8D=E7=9B=91?= =?UTF-8?q?=E6=8E=A7=E8=AE=A1=E6=95=B0=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/health.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/health.ts b/src/health.ts index 15e85e0..37478b8 100644 --- a/src/health.ts +++ b/src/health.ts @@ -33,8 +33,9 @@ export async function health() { exitNames.push(currentCourse.kcmc) } } else { - totalAcquireCount += parseInt(lastCourse.syrs) - parseInt(currentCourse.syrs) - if (!acquireNames.includes(currentCourse.kcmc)) { + let num = parseInt(lastCourse.syrs) - parseInt(currentCourse.syrs) + totalAcquireCount += num + if (!acquireNames.includes(currentCourse.kcmc) && num > 0) { acquireNames.push(currentCourse.kcmc) } }