This commit is contained in:
Jerry 2025-05-07 15:25:32 +08:00
parent d4035acd43
commit 8a9c432d97

View File

@ -18,7 +18,7 @@ class BotController {
private init(): void { private init(): void {
this.router.post(`/getBotId`, this.postBotsId); 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 { try {
const token = req.body.token; const token = req.body.token;
if (tools.checkToken(token.toString())) { if (tools.checkToken(token.toString())) {
const groupId = req.body.groupId; const groupId = req.body.groupId.toString();
let returnData = await BotService.getGroupInfo({ groupId: groupId }); let returnData = await BotService.getGroupInfo({ groupId: groupId });
if (returnData) { if (returnData) {
await response.success(res, returnData); await response.success(res, returnData);