mirror of
https://github.com/NapNeko/NapCatQQ.git
synced 2026-02-06 13:05:09 +00:00
fix: typo
This commit is contained in:
@@ -147,10 +147,15 @@ export class OB11Constructor {
|
||||
peerUid: msg.peerUid,
|
||||
guildId: '',
|
||||
};
|
||||
|
||||
let replyMsg: RawMessage | undefined;
|
||||
replyMsg = (await NTQQMsgApi.getMsgsByMsgId(peer, MessageUnique.getRecentMsgIds(peer, 50))).msgList.find((msg) => msg.msgRandom == records.msgRandom && msg.msgSeq == element.replyElement.replayMsgSeq);
|
||||
|
||||
replyMsg = (await NTQQMsgApi.getMsgsBySeqAndCount({ peerUid: msg.peerUid, guildId: '', chatType: msg.chatType }, element.replyElement.replayMsgSeq, 1, true, true)).msgList[0];
|
||||
|
||||
if (!replyMsg || replyMsg.msgRandom !== records.msgRandom) {
|
||||
logWarn(`消息比对失败,准备重新尝试 Info: CurrentMsgRandom:${replyMsg?.msgRandom}/TargetMsgRandom:${records.msgRandom}`);
|
||||
await sleep(500);
|
||||
replyMsg = (await NTQQMsgApi.getMsgsByMsgId(peer, MessageUnique.getRecentMsgIds(peer, 50))).msgList.find((msg) => msg.msgRandom == records.msgRandom && msg.msgSeq == element.replyElement.replayMsgSeq);
|
||||
}
|
||||
if (!replyMsg || replyMsg.msgRandom !== records.msgRandom) {
|
||||
logWarn(`消息比对失败,准备重新尝试 Info: CurrentMsgRandom:${replyMsg?.msgRandom}/TargetMsgRandom:${records.msgRandom}`);
|
||||
await sleep(500);
|
||||
@@ -161,12 +166,6 @@ export class OB11Constructor {
|
||||
records.senderUid
|
||||
)).msgList[0];
|
||||
}
|
||||
|
||||
if (!replyMsg || replyMsg.msgRandom !== records.msgRandom) {
|
||||
logWarn(`消息比对失败,准备重新尝试 Info: CurrentMsgRandom:${replyMsg?.msgRandom}/TargetMsgRandom:${records.msgRandom}`);
|
||||
await sleep(500);
|
||||
replyMsg = (await NTQQMsgApi.getMsgsBySeqAndCount({ peerUid: msg.peerUid, guildId: '', chatType: msg.chatType }, element.replyElement.replayMsgSeq, 1, true, true)).msgList[0];
|
||||
}
|
||||
if (!replyMsg || replyMsg.msgRandom !== records.msgRandom) {
|
||||
logWarn(`消息比对失败,准备重新尝试 Info: CurrentMsgRandom:${replyMsg?.msgRandom}/TargetMsgRandom:${records.msgRandom}`);
|
||||
throw new Error('回复消息消息验证失败')
|
||||
|
||||
Reference in New Issue
Block a user