🐞 fix(拍卖行): 阶段不同分红可能重置,修改拍卖时间精确度
This commit is contained in:
@@ -541,8 +541,8 @@ export async function checkAuctionStage(auctionStage: number, magicWord: string)
|
||||
const curTime = await getCurrentTimeWithSetDay();
|
||||
if(auctionStage != AUCTION_STAGE.GUILD && auctionStage != AUCTION_STAGE.WORLD) return false;
|
||||
if(auctionStage == AUCTION_STAGE.GUILD) {
|
||||
if(curTime < (await todayGuildBegin()).getTime() - 10 * 60 * 100) return false;
|
||||
if(curTime > (await todayWorldBegin()).getTime() + 10 * 60 * 1000) return false
|
||||
if(curTime < (await todayGuildBegin()).getTime()) return false;
|
||||
if(curTime > (await todayWorldBegin()).getTime()) return false
|
||||
}
|
||||
if(auctionStage == AUCTION_STAGE.WORLD) {
|
||||
if(curTime < (await todayWorldBegin()).getTime() - 10 * 60 * 100) return false;
|
||||
|
||||
Reference in New Issue
Block a user