mirror of
https://github.com/NapNeko/NapCatQQ.git
synced 2025-12-20 21:50:10 +08:00
fix: 多层解析
This commit is contained in:
parent
677731dd70
commit
e39bb05f01
@ -130,7 +130,7 @@ export class GoCQHTTPGetForwardMsgAction extends OneBotAction<Payload, {
|
|||||||
throw new Error('消息不存在或已过期');
|
throw new Error('消息不存在或已过期');
|
||||||
}
|
}
|
||||||
// 6. 解析消息内容
|
// 6. 解析消息内容
|
||||||
const resMsg = (await this.obContext.apis.MsgApi.parseMessageV2(singleMsg))?.arrayMsg;
|
const resMsg = (await this.obContext.apis.MsgApi.parseMessage(singleMsg, 'array', true));
|
||||||
|
|
||||||
const forwardContent = (resMsg?.message?.[0] as OB11MessageForward)?.data?.content;
|
const forwardContent = (resMsg?.message?.[0] as OB11MessageForward)?.data?.content;
|
||||||
if (forwardContent) {
|
if (forwardContent) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user