mirror of
https://github.com/crystelf/crystelf-core.git
synced 2025-07-04 14:49:19 +00:00
优化
This commit is contained in:
parent
d4035acd43
commit
8a9c432d97
@ -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);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user