diff --git a/game-server/app/services/eventSercive.ts b/game-server/app/services/eventSercive.ts index c429ef473..74fd5b703 100644 --- a/game-server/app/services/eventSercive.ts +++ b/game-server/app/services/eventSercive.ts @@ -36,10 +36,10 @@ export function getEventTime(now: Date) { let curTime = Number(now); let todayA = now.setHours(12, 0, 0, 0); // 每天12点 let todayB = now.setHours(18, 0, 0, 0); // 每天18点 - let yesterdayA = todayA - 86400000; // 前一天12点 + let yesterdayB = todayB - 86400000; // 前一天12点 let t = 0; if(curTime < todayA) { - t = yesterdayA; + t = yesterdayB; } else if (curTime >= todayA && curTime < todayB) { t = todayA; } else if (curTime >= todayB) {