🐞 fix(拍卖行): 世界拍卖行时间限制

This commit is contained in:
luying
2023-06-06 19:02:20 +08:00
parent f0304b80e8
commit be0dfb0b85

View File

@@ -545,8 +545,8 @@ export async function checkAuctionStage(auctionStage: number, magicWord: string)
if(curTime > (await todayWorldBegin()).getTime()) return false
}
if(auctionStage == AUCTION_STAGE.WORLD) {
if(curTime < (await todayWorldBegin()).getTime() - 10 * 60 * 100) return false;
if(curTime > (await todayWorldEnd()).getTime() + 10 * 60 * 1000) return false
if(curTime < (await todayWorldBegin()).getTime()) return false;
if(curTime > (await todayWorldEnd()).getTime()) return false
}
return true
}