修复调用错误

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

View File

@ -73,7 +73,8 @@ 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) {
const returnData = await wsClientManager.sendAndWait(sendData.data.clientID, sendData);
if (returnData) { if (returnData) {
return returnData; return returnData;
} else { } else {
@ -81,6 +82,8 @@ class BotService {
return undefined; return undefined;
} }
} }
return undefined;
}
/** /**
* `botId``client` * `botId``client`