修复调用错误

This commit is contained in:
Jerry 2025-05-09 23:03:19 +08:00
parent 76c4f507df
commit 28aa889418

View File

@ -73,13 +73,16 @@ class BotService {
clientID: data.clientId ? data.clientId : await this.getBotClient(sendBot), clientID: data.clientId ? data.clientId : await this.getBotClient(sendBot),
}, },
}; };
const returnData = await wsClientManager.sendAndWait('getGroupInfo', sendData); if (sendData.data.clientID) {
if (returnData) { const returnData = await wsClientManager.sendAndWait(sendData.data.clientID, sendData);
return returnData; if (returnData) {
} else { return returnData;
logger.warn(`未查询到${data.groupId}的信息..`); } else {
return undefined; logger.warn(`未查询到${data.groupId}的信息..`);
return undefined;
}
} }
return undefined;
} }
/** /**