From 6ab443c29f399ed5787caaab7e5a5caf93e34f52 Mon Sep 17 00:00:00 2001 From: luying Date: Tue, 5 Jul 2022 10:53:00 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B7=91=E9=A9=AC=E7=81=AF=EF=BC=9A=E4=BF=AE?= =?UTF-8?q?=E5=A4=8D=E5=A6=82=E6=9E=9C=E8=B7=91=E9=A9=AC=E7=81=AF=E4=B8=80?= =?UTF-8?q?=E6=AC=A1=E6=80=A7=E5=AE=9A=E6=97=B6=E4=BC=9A=E6=AF=8F=E6=AC=A1?= =?UTF-8?q?=E9=87=8D=E5=90=AF=E7=9A=84=E6=97=B6=E5=80=99=E5=8F=91=E9=80=81?= =?UTF-8?q?=E7=9A=84bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- game-server/app/services/gmService.ts | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/game-server/app/services/gmService.ts b/game-server/app/services/gmService.ts index e7565e35c..eb9c455d4 100644 --- a/game-server/app/services/gmService.ts +++ b/game-server/app/services/gmService.ts @@ -61,13 +61,9 @@ async function generateMarqueeSchedule(marquee: MarqueeType) { if(marquee.timeType != MARQUEE_TIME_TYPE.SCHEDULE) return false; if(marquee.endTime && marquee.endTime < nowSeconds()) return false; - if(marquee.startTime > nowSeconds()) { - let startJob = scheduleJob(`start${marquee.code}`, marquee.startTime * 1000, async () => { - await startMarquee(marquee, startJob) - }); - } else { - await startMarquee(marquee) - } + let startJob = scheduleJob(`start${marquee.code}`, marquee.startTime * 1000, async () => { + await startMarquee(marquee, startJob) + }); return true; }