From 1193fd8fb9752808acea6faf1d69dc88c663b2d2 Mon Sep 17 00:00:00 2001 From: Jerry Date: Fri, 16 May 2025 23:47:43 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/fanqie.js | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/apps/fanqie.js b/apps/fanqie.js index a309236..89363b6 100644 --- a/apps/fanqie.js +++ b/apps/fanqie.js @@ -195,9 +195,7 @@ export class xzq extends plugin { await this.clearCache(false, true, String(e.message_id)); if (!uploadReturn) return e.reply('上传失败', true); - e.reply( - `《${book_info.book_name}》上传成功,用时 ${(Date.now() - startTime) / 1000}s\n下载链接为${uploadReturn.url},将在10分钟后删除,请及时下载` - ); + e.reply(`《${book_info.book_name}》上传成功,用时 ${(Date.now() - startTime) / 1000}s`); return true; } @@ -206,14 +204,14 @@ export class xzq extends plugin { try { let res; if (e.isGroup) { - res = e.bot.sendApi('upload_group_file', { + res = await e.bot.sendApi('upload_group_file', { group_id: e.group_id, file: filePath, name: path.basename(filePath), folder: 'fanqie', }); } else if (e.friend) { - res = e.bot.sendApi('upload_private_file', { + res = await e.bot.sendApi('upload_private_file', { user_id: e.user_id, file: filePath, name: path.basename(filePath),