mirror of
https://github.com/NapNeko/NapCatQQ.git
synced 2024-11-21 09:36:35 +00:00
fix: getfile
This commit is contained in:
parent
e1e4d038d9
commit
f14726ed1a
@ -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;
|
||||||
|
@ -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
|
||||||
},
|
},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user