From 1ef55237fbefda30f966039cd8a1887aaa3e9465 Mon Sep 17 00:00:00 2001 From: Jerry Date: Thu, 15 May 2025 12:56:03 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=8C=E5=96=84=E6=B3=A8=E9=87=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/fanqie.js | 3 ++- models/ws/handler.js | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/apps/fanqie.js b/apps/fanqie.js index 7e8dda2..d3fea3c 100644 --- a/apps/fanqie.js +++ b/apps/fanqie.js @@ -206,6 +206,7 @@ export class xzq extends plugin { } async upload(e, filePath) { + // TODO 修好这发文件的bug try { /* let res; @@ -237,7 +238,7 @@ export class xzq extends plugin { }); form.append('file', fileStream); form.append('token', configControl.get('coreConfig')?.token); - await finished(fileStream); + await finished(fileStream); //这文件读取也太慢了 const uploadUrl = `${configControl.get('coreConfig')?.coreUrl}/public/upload?dir=fanqie&expire=600`; const response = await axios.post(uploadUrl, form, { headers: form.getHeaders(), diff --git a/models/ws/handler.js b/models/ws/handler.js index f29947d..3876ed8 100644 --- a/models/ws/handler.js +++ b/models/ws/handler.js @@ -79,6 +79,7 @@ class Handler { * @param msg * @returns {Promise} */ + // TODO 测试可用性 async handleSendMessage(client, msg) { const botId = msg.data?.botId; const groupId = msg.data?.groupId;