From 6c3d737219dd1854254d34a38fc51a89735e63f8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=89=8B=E7=93=9C=E4=B8=80=E5=8D=81=E9=9B=AA?= Date: Tue, 6 Aug 2024 16:00:25 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=90=88=E5=B9=B6reply?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/onebot11/constructor.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/onebot11/constructor.ts b/src/onebot11/constructor.ts index 5fef0bff..5c7dc993 100644 --- a/src/onebot11/constructor.ts +++ b/src/onebot11/constructor.ts @@ -167,9 +167,8 @@ export class OB11Constructor { } if (msg.peerUin == '284840486') { //合并消息内侧 消息具体定位不到 - message_data['data']['id'] = MessageUnique.createMsg({ peerUid: msg.peerUid, guildId: '', chatType: msg.chatType }, records.msgId)?.toString(); } - if (!replyMsg || records.msgRandom !== replyMsg.msgRandom) { + if ((!replyMsg || records.msgRandom !== replyMsg.msgRandom) && msg.peerUin !== '284840486') { throw new Error('回复消息消息验证失败'); } message_data['data']['id'] = MessageUnique.createMsg({ peerUid: msg.peerUid, guildId: '', chatType: msg.chatType }, replyMsg.msgId)?.toString();