From f61b59123b37afef845d9488c6097923f5a3598c Mon Sep 17 00:00:00 2001 From: xichaoyin Date: Sat, 6 Jan 2024 00:07:27 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20zhanling=E9=87=8D=E7=BD=AE=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api_s2c/ApiSyncBtn.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/api_s2c/ApiSyncBtn.ts b/src/api_s2c/ApiSyncBtn.ts index 959eb6e..7b3308a 100644 --- a/src/api_s2c/ApiSyncBtn.ts +++ b/src/api_s2c/ApiSyncBtn.ts @@ -69,7 +69,7 @@ export default async function (call: ApiCall) { data[key] = {active: false}; } else { let zls = await G.mongodb.collection('scheduler').findOne({type: 'zhanling'}); - if (!data[key] || data[key].round != zls.round) { + if (!data[key] || data[key].round != zls?.round) { let lastRunTime = zls && zls.lastRunTime? zls.lastRunTime : G.time let round = zls && zls.lastRunTime? zls.round : 1 data[key] = {active: true, sTime: lastRunTime, round: round};