From 604289fd5e662434a53d1a176b73b02ac24cade5 Mon Sep 17 00:00:00 2001 From: CounterFire2023 <136581895+CounterFire2023@users.noreply.github.com> Date: Mon, 13 May 2024 14:41:38 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=B8=B8=E6=88=8F=E5=86=85?= =?UTF-8?q?=E4=BB=BB=E5=8A=A1=E5=BD=93=E6=97=A5=E5=B7=B2=E9=A2=86=E5=8F=96?= =?UTF-8?q?=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/ingame.controller.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/controllers/ingame.controller.ts b/src/controllers/ingame.controller.ts index 7222033..41439a9 100644 --- a/src/controllers/ingame.controller.ts +++ b/src/controllers/ingame.controller.ts @@ -117,7 +117,7 @@ class InGameController extends BaseController { const dateTag = formatDate(new Date()) let record = await InGameTaskRecord.findOne({ user: user.id, task, dateTag }) if (record) { - throw new ZError(12, 'already claimed today') + throw new ZError(13, 'already claimed today') } const Task = allTasks.get(cfg.task) const taskInstance = new Task.default({ user, activity: req.activity })