Skip to content

Commit

Permalink
chore: 优化一处逻辑
Browse files Browse the repository at this point in the history
  • Loading branch information
MliKiowa committed Aug 15, 2024
1 parent 2d1e87d commit 42bad12
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/onebot/helper/data.ts
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ export class OB11Constructor {
peerUid: msg.peerUid,
guildId: '',
chatType: msg.chatType,
}, element.replyElement.replayMsgSeq, 1, true, true)).msgList[0];
}, element.replyElement.replayMsgSeq, 1, true, true)).msgList.find(msg => msg.msgRandom === records.msgRandom);
if (!replyMsg || records.msgRandom !== replyMsg.msgRandom) {
replyMsg = (await NTQQMsgApi.getSingleMsg(peer, element.replyElement.replayMsgSeq)).msgList[0];
}
Expand Down Expand Up @@ -286,13 +286,13 @@ export class OB11Constructor {
chatType: msg.chatType,
guildId: '',
},
msg.msgId,
msg.msgSeq,
msg.senderUid,
element.elementId,
element.elementType.toString(),
element.pttElement.fileSize || '0',
element.pttElement.fileUuid || '',
msg.msgId,
msg.msgSeq,
msg.senderUid,
element.elementId,
element.elementType.toString(),
element.pttElement.fileSize || '0',
element.pttElement.fileUuid || '',
);
//以uuid作为文件名
} else if (element.arkElement) {
Expand Down

0 comments on commit 42bad12

Please sign in to comment.