diff --git a/src/onebot/action/file/GetFile.ts b/src/onebot/action/file/GetFile.ts index 56588413..77de1a79 100644 --- a/src/onebot/action/file/GetFile.ts +++ b/src/onebot/action/file/GetFile.ts @@ -31,8 +31,8 @@ export class GetFileBase extends BaseAction { const NTQQMsgApi = this.core.apis.MsgApi; const NTQQFileApi = this.core.apis.FileApi; - const contextMsgFile = FileNapCatOneBotUUID.decode(payload.file); //接收消息标记模式 + const contextMsgFile = FileNapCatOneBotUUID.decode(payload.file); if (contextMsgFile) { const { peer, msgId, elementId } = contextMsgFile; const downloadPath = await NTQQFileApi.downloadMedia(msgId, peer.chatType, peer.peerUid, elementId, '', ''); @@ -59,6 +59,7 @@ export class GetFileBase extends BaseAction { } return res; } + //群文件模式 const contextModelIdFile = FileNapCatOneBotUUID.decodeModelId(payload.file); if (contextModelIdFile) { diff --git a/src/onebot/api/group.ts b/src/onebot/api/group.ts index 70814272..d9800328 100644 --- a/src/onebot/api/group.ts +++ b/src/onebot/api/group.ts @@ -80,7 +80,7 @@ export class OneBotGroupApi { id: FileNapCatOneBotUUID.encode({ chatType: ChatType.KCHATTYPEGROUP, peerUid: msg.peerUid, - }, msg.msgSeq, element.elementId), + }, msg.msgId, element.elementId), name: element.fileElement.fileName, size: parseInt(element.fileElement.fileSize), busid: element.fileElement.fileBizId || 0,