修复后缀名错误

This commit is contained in:
Jerry 2025-05-09 23:46:28 +08:00
parent 095353e73e
commit ec4b97ec65

View File

@ -73,7 +73,7 @@ class BotService {
clientID: data.clientId ? data.clientId : await this.getBotClient(sendBot),
},
};
logger.debug(sendData);
//logger.debug(sendData);
if (sendData.data.clientID) {
const returnData = await wsClientManager.sendAndWait(sendData.data.clientID, sendData);
if (returnData) {
@ -102,7 +102,7 @@ class BotService {
| { uin: number; groups: { group_id: number; group_name: string }[]; nickName: string }[]
| undefined = await redisService.fetch('crystelfBots', clientId);
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) {
logger.error(`读取${clientId}出错..`);
}