mirror of
https://github.com/crystelf/crystelf-core.git
synced 2025-07-04 06:39:18 +00:00
修复后缀名错误
This commit is contained in:
parent
095353e73e
commit
ec4b97ec65
@ -73,7 +73,7 @@ class BotService {
|
|||||||
clientID: data.clientId ? data.clientId : await this.getBotClient(sendBot),
|
clientID: data.clientId ? data.clientId : await this.getBotClient(sendBot),
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
logger.debug(sendData);
|
//logger.debug(sendData);
|
||||||
if (sendData.data.clientID) {
|
if (sendData.data.clientID) {
|
||||||
const returnData = await wsClientManager.sendAndWait(sendData.data.clientID, sendData);
|
const returnData = await wsClientManager.sendAndWait(sendData.data.clientID, sendData);
|
||||||
if (returnData) {
|
if (returnData) {
|
||||||
@ -102,7 +102,7 @@ class BotService {
|
|||||||
| { uin: number; groups: { group_id: number; group_name: string }[]; nickName: string }[]
|
| { uin: number; groups: { group_id: number; group_name: string }[]; nickName: string }[]
|
||||||
| undefined = await redisService.fetch('crystelfBots', clientId);
|
| undefined = await redisService.fetch('crystelfBots', clientId);
|
||||||
if (!raw) continue;
|
if (!raw) continue;
|
||||||
if (raw.find((bot) => bot.uin == botId)) return clientId;
|
if (raw.find((bot) => bot.uin == botId)) return path.basename(clientId, '.json');
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
logger.error(`读取${clientId}出错..`);
|
logger.error(`读取${clientId}出错..`);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user