🐞 fix(拍卖行): 阶段不同分红可能重置,修改拍卖时间精确度
This commit is contained in:
@@ -541,8 +541,8 @@ export async function checkAuctionStage(auctionStage: number, magicWord: string)
|
|||||||
const curTime = await getCurrentTimeWithSetDay();
|
const curTime = await getCurrentTimeWithSetDay();
|
||||||
if(auctionStage != AUCTION_STAGE.GUILD && auctionStage != AUCTION_STAGE.WORLD) return false;
|
if(auctionStage != AUCTION_STAGE.GUILD && auctionStage != AUCTION_STAGE.WORLD) return false;
|
||||||
if(auctionStage == AUCTION_STAGE.GUILD) {
|
if(auctionStage == AUCTION_STAGE.GUILD) {
|
||||||
if(curTime < (await todayGuildBegin()).getTime() - 10 * 60 * 100) return false;
|
if(curTime < (await todayGuildBegin()).getTime()) return false;
|
||||||
if(curTime > (await todayWorldBegin()).getTime() + 10 * 60 * 1000) return false
|
if(curTime > (await todayWorldBegin()).getTime()) return false
|
||||||
}
|
}
|
||||||
if(auctionStage == AUCTION_STAGE.WORLD) {
|
if(auctionStage == AUCTION_STAGE.WORLD) {
|
||||||
if(curTime < (await todayWorldBegin()).getTime() - 10 * 60 * 100) return false;
|
if(curTime < (await todayWorldBegin()).getTime() - 10 * 60 * 100) return false;
|
||||||
|
|||||||
@@ -20,7 +20,7 @@ export const STATUS = {
|
|||||||
TIMESTAMP_ERR: { code: 15, simStr: '请求时间参数错误' },
|
TIMESTAMP_ERR: { code: 15, simStr: '请求时间参数错误' },
|
||||||
DUPLICATE_ACCESS: { code: 16, simStr: '随机请求参数重复' },
|
DUPLICATE_ACCESS: { code: 16, simStr: '随机请求参数重复' },
|
||||||
ADDRESS_ERR: { code: 17, simStr: '您的版本已停止支持,请前往应用商店下载最新安装包' },
|
ADDRESS_ERR: { code: 17, simStr: '您的版本已停止支持,请前往应用商店下载最新安装包' },
|
||||||
GLOBAL_ERR: { code: 1003, simStr: '服务器内部错误' },
|
GLOBAL_ERR: { code: 1003, simStr: '刷新服务器数据错误,请尝试重新登录或联系客服' },
|
||||||
UPDATE_INFO_ERR: {code: 1004, simStr: '热更新配置错误'},
|
UPDATE_INFO_ERR: {code: 1004, simStr: '热更新配置错误'},
|
||||||
DEBUG_FUNCTION_ERR: {code: 1005, simStr: '功能逻辑已改,debug接口不再提供'},
|
DEBUG_FUNCTION_ERR: {code: 1005, simStr: '功能逻辑已改,debug接口不再提供'},
|
||||||
DEVELOP_ONLY: {code: 1006, simStr: '只有测试环境才可以使用该接口'},
|
DEVELOP_ONLY: {code: 1006, simStr: '只有测试环境才可以使用该接口'},
|
||||||
|
|||||||
Reference in New Issue
Block a user