This commit is contained in:
手瓜一十雪
2024-11-14 12:48:19 +08:00
parent 756dea71fc
commit f425c9478e
6 changed files with 7 additions and 8 deletions

View File

@@ -61,7 +61,7 @@ export class GoCQHTTPGetForwardMsgAction extends BaseAction<Payload, any> {
}
const rootMsgId = MessageUnique.getShortIdByMsgId(msgId);
const rootMsg = MessageUnique.getMsgIdAndPeerByShortId(rootMsgId || parseInt(msgId));
const rootMsg = MessageUnique.getMsgIdAndPeerByShortId(rootMsgId ?? +msgId);
if (!rootMsg) {
throw new Error('msg not found');
}
@@ -76,7 +76,7 @@ export class GoCQHTTPGetForwardMsgAction extends BaseAction<Payload, any> {
if (!(resMsg?.message?.[0] as OB11MessageForward)?.data?.content) {
throw new Error('找不到相关的聊天记录');
}
return {
return {
messages: (resMsg?.message?.[0] as OB11MessageForward)?.data?.content
};
//}