mirror of
https://github.com/crystelf/crystelf-core.git
synced 2025-07-04 06:39:18 +00:00
修复调用错误
This commit is contained in:
parent
76c4f507df
commit
28aa889418
@ -73,13 +73,16 @@ class BotService {
|
||||
clientID: data.clientId ? data.clientId : await this.getBotClient(sendBot),
|
||||
},
|
||||
};
|
||||
const returnData = await wsClientManager.sendAndWait('getGroupInfo', sendData);
|
||||
if (returnData) {
|
||||
return returnData;
|
||||
} else {
|
||||
logger.warn(`未查询到${data.groupId}的信息..`);
|
||||
return undefined;
|
||||
if (sendData.data.clientID) {
|
||||
const returnData = await wsClientManager.sendAndWait(sendData.data.clientID, sendData);
|
||||
if (returnData) {
|
||||
return returnData;
|
||||
} else {
|
||||
logger.warn(`未查询到${data.groupId}的信息..`);
|
||||
return undefined;
|
||||
}
|
||||
}
|
||||
return undefined;
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user