fix: getfile

This commit is contained in:
手瓜一十雪 2024-08-29 21:55:44 +08:00
parent e1e4d038d9
commit f14726ed1a
2 changed files with 2 additions and 5 deletions

View File

@ -353,9 +353,6 @@ export class NTQQFileApi {
chatType: chatType,
peerUid: peerUid,
}, [msgId]);
if (msg.msgList.length === 0) {
return fileTransNotifyInfo.filePath;
}
const mixElement = msg.msgList.find((msg) => msg.msgId === msgId)?.elements.find((e) => e.elementId === elementId);
const mixElementInner = mixElement?.videoElement ?? mixElement?.fileElement ?? mixElement?.pttElement ?? mixElement?.picElement;
let realPath = mixElementInner?.filePath;

View File

@ -1,6 +1,6 @@
{
"http": {
"enable": false,
"enable": true,
"host": "",
"port": 3000,
"secret": "",
@ -9,7 +9,7 @@
"postUrls": []
},
"ws": {
"enable": false,
"enable": true,
"host": "",
"port": 3001
},