From 17ebed084a3d5a7ce872eed7d3da95ab34891811 Mon Sep 17 00:00:00 2001 From: luying Date: Fri, 9 Sep 2022 16:38:13 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B7=91=E9=A9=AC=E7=81=AF=EF=BC=9A=E5=A4=A7?= =?UTF-8?q?=E5=8C=BA=E8=B7=91=E9=A9=AC=E7=81=AF=E6=97=A0=E6=95=88=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- game-server/app/services/gmService.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/game-server/app/services/gmService.ts b/game-server/app/services/gmService.ts index 5e3a614e9..3e480f93c 100644 --- a/game-server/app/services/gmService.ts +++ b/game-server/app/services/gmService.ts @@ -82,7 +82,6 @@ async function startMarquee(marquee: MarqueeType, startJob?: Job) { } else { if(marquee.endTime > nowSeconds()) { await pushMarqueeMsg(msgDatas); - console.log('***', marquee.interval) let secondsJob = scheduleJob(`setSeconds${marquee.code}`, `*/${marquee.interval} * * * * *`, async () => { console.log(`*****setSeconds${marquee.code}****`) await pushMarqueeMsg(msgDatas); @@ -117,8 +116,8 @@ async function createMarqueeMsg(marquee: MarqueeType) { for(let { env, serverId } of receivers) { if(serverId == 0) { let servers = await ServerlistModel.findByEnv(env); - for(let { serverId } of servers) { - serverIds.push(serverId); + for(let { id } of servers) { + serverIds.push(id); } } else { serverIds.push(serverId);