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),
|
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;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user