From aa31a352962c1bb8df650c517d834def36ee90b6 Mon Sep 17 00:00:00 2001 From: luying Date: Fri, 2 Dec 2022 13:21:14 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9E=20fix(=E6=8B=8D=E5=8D=96=E8=A1=8C)?= =?UTF-8?q?:=20=E9=98=B6=E6=AE=B5=E4=B8=8D=E5=90=8C=E5=88=86=E7=BA=A2?= =?UTF-8?q?=E5=8F=AF=E8=83=BD=E9=87=8D=E7=BD=AE=EF=BC=8C=E4=BF=AE=E6=94=B9?= =?UTF-8?q?=E6=8B=8D=E5=8D=96=E6=97=B6=E9=97=B4=E7=B2=BE=E7=A1=AE=E5=BA=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- game-server/app/services/auctionService.ts | 4 ++-- shared/consts/statusCode.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/game-server/app/services/auctionService.ts b/game-server/app/services/auctionService.ts index 018465fd6..c67c6794e 100644 --- a/game-server/app/services/auctionService.ts +++ b/game-server/app/services/auctionService.ts @@ -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; diff --git a/shared/consts/statusCode.ts b/shared/consts/statusCode.ts index 1076f9e0e..3c1b9b4a2 100644 --- a/shared/consts/statusCode.ts +++ b/shared/consts/statusCode.ts @@ -20,7 +20,7 @@ export const STATUS = { TIMESTAMP_ERR: { code: 15, simStr: '请求时间参数错误' }, DUPLICATE_ACCESS: { code: 16, simStr: '随机请求参数重复' }, ADDRESS_ERR: { code: 17, simStr: '您的版本已停止支持,请前往应用商店下载最新安装包' }, - GLOBAL_ERR: { code: 1003, simStr: '服务器内部错误' }, + GLOBAL_ERR: { code: 1003, simStr: '刷新服务器数据错误,请尝试重新登录或联系客服' }, UPDATE_INFO_ERR: {code: 1004, simStr: '热更新配置错误'}, DEBUG_FUNCTION_ERR: {code: 1005, simStr: '功能逻辑已改,debug接口不再提供'}, DEVELOP_ONLY: {code: 1006, simStr: '只有测试环境才可以使用该接口'},