From 1a4da3ca7360a6819e52a5118bba1331fb0571ff Mon Sep 17 00:00:00 2001 From: CounterFire2023 <136581895+CounterFire2023@users.noreply.github.com> Date: Tue, 23 Apr 2024 16:43:13 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=AE=9D=E7=AE=B1=E5=8A=A9?= =?UTF-8?q?=E5=8A=9B=E7=9A=84=E9=94=99=E8=AF=AF=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/controllers/chest.controller.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/controllers/chest.controller.ts b/src/controllers/chest.controller.ts index 75d6880..ff69887 100644 --- a/src/controllers/chest.controller.ts +++ b/src/controllers/chest.controller.ts @@ -230,7 +230,7 @@ class BoxController extends BaseController { throw new ZError(10, 'user already enhanced') } if (chest.bonusUsers.length >= chest.maxBounsCount) { - throw new ZError(13, 'enhanced times exceed') + throw new ZError(17, 'enhanced times exceed') } if (chest.status === ChestStatusEnum.OPENED) { throw new ZError(14, 'chest already opened') @@ -240,7 +240,7 @@ class BoxController extends BaseController { } // 生产环境不能助力自己 if (process.env.NODE_ENV === 'production' && chest.user === uid) { - throw new ZError(15, 'can not enhance self') + throw new ZError(18, 'can not enhance self') } const userMax = user.twitterId && user.discordId ? MAX_ENHANCE_COUNT_ADV : MAX_ENHANCE_COUNT_BASE const dateTag = formatDate(new Date())