fix: 多层解析
This commit is contained in:
1 parent
5f72ca05fe
commit
d28ba233ae
1 file changed
+1
-1
@@ -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) {
|
||||||
|
|||||||
Reference in new issue
Block a user