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, chatType: chatType,
peerUid: peerUid, peerUid: peerUid,
}, [msgId]); }, [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 mixElement = msg.msgList.find((msg) => msg.msgId === msgId)?.elements.find((e) => e.elementId === elementId);
const mixElementInner = mixElement?.videoElement ?? mixElement?.fileElement ?? mixElement?.pttElement ?? mixElement?.picElement; const mixElementInner = mixElement?.videoElement ?? mixElement?.fileElement ?? mixElement?.pttElement ?? mixElement?.picElement;
let realPath = mixElementInner?.filePath; let realPath = mixElementInner?.filePath;

View File

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