From dafac2c04758fcad6d943fca7dbaf0db852db4b1 Mon Sep 17 00:00:00 2001 From: luying Date: Tue, 2 Nov 2021 13:18:59 +0800 Subject: [PATCH] =?UTF-8?q?pvp=EF=BC=9A=E4=BF=AE=E6=94=B9=E8=B5=9B?= =?UTF-8?q?=E5=AD=A3debug=E6=8E=A5=E5=8F=A3=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- game-server/app/services/timeTaskService.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/game-server/app/services/timeTaskService.ts b/game-server/app/services/timeTaskService.ts index 96de27e83..429038cc3 100644 --- a/game-server/app/services/timeTaskService.ts +++ b/game-server/app/services/timeTaskService.ts @@ -117,9 +117,7 @@ async function setPvpSeason(isForce?: boolean, hour?: number) { console.log(`******** setPvpSeason4: newSeasonStartTime-${newSeasonStartTime}, during-${during}`) if(isForce) { // debug使用,如果seasonEndTime是未来的,强行结束掉,新赛季从现在开始 - if(newSeasonStartTime > nowSeconds()) { - newSeasonStartTime = nowSeconds(); - } + newSeasonStartTime = nowSeconds(); } else { // 不是用debug的情况,如果(因为debug)newSeasonStartTime不是每天0点结算,那么改成lastSeasonEndTime之后的0点开始 let d = new Date(newSeasonStartTime * 1000); if(d.getHours() != 0) {