diff --git a/src/core/apis/file.ts b/src/core/apis/file.ts index 03118965..f1c9bac3 100644 --- a/src/core/apis/file.ts +++ b/src/core/apis/file.ts @@ -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; diff --git a/src/onebot/config/onebot11.json b/src/onebot/config/onebot11.json index 8ee5a368..e6823634 100644 --- a/src/onebot/config/onebot11.json +++ b/src/onebot/config/onebot11.json @@ -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 },