From 8a9c432d97adf45077e21af0df7762bfa8f498d8 Mon Sep 17 00:00:00 2001 From: Jerry Date: Wed, 7 May 2025 15:25:32 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/modules/bot/bot.controller.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/modules/bot/bot.controller.ts b/src/modules/bot/bot.controller.ts index 7ec8631..bcb0417 100644 --- a/src/modules/bot/bot.controller.ts +++ b/src/modules/bot/bot.controller.ts @@ -18,7 +18,7 @@ class BotController { private init(): void { this.router.post(`/getBotId`, this.postBotsId); - this.router.post('/getBotInfo', this.postGroupInfo); + this.router.post('/getGroupInfo', this.postGroupInfo); } /** @@ -56,7 +56,7 @@ class BotController { try { const token = req.body.token; if (tools.checkToken(token.toString())) { - const groupId = req.body.groupId; + const groupId = req.body.groupId.toString(); let returnData = await BotService.getGroupInfo({ groupId: groupId }); if (returnData) { await response.success(res, returnData);