From 23dde1fba9a0f802534f0f8ccf7425de2fa7f8df Mon Sep 17 00:00:00 2001 From: Miyokiss Date: Sun, 13 Apr 2025 21:49:07 +0800 Subject: [PATCH 1/2] =?UTF-8?q?fix(jm=5Fcomic):=20=E4=BF=AE=E5=A4=8D?= =?UTF-8?q?=E5=8E=8B=E7=BC=A9=E6=96=87=E4=BB=B6=E8=B7=AF=E5=BE=84=E5=92=8C?= =?UTF-8?q?=E4=BA=8C=E7=BB=B4=E7=A0=81=E4=B8=8B=E8=BD=BD=E9=93=BE=E6=8E=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/clover_jm/jm_comic.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/clover_jm/jm_comic.py b/src/clover_jm/jm_comic.py index f27e639..1db01d2 100644 --- a/src/clover_jm/jm_comic.py +++ b/src/clover_jm/jm_comic.py @@ -45,9 +45,9 @@ async def jm_qr(album_id: str| None): album_detail,downloader = await download_jm(album_id = album_id,file_name = file_name,receiver_email = None) # 创建变量 folder_path = f"{jm_path}{file_name}" - zip_path = f"{jm_path}{file_name}{album_detail.title}.zip" + zip_path = f"{folder_path}{album_detail.title}.zip" # 压缩文件 - zip_status = await folder_zip(file_name,zip_path) + zip_status = await folder_zip(folder_path,zip_path) if not zip_status: await delete_folder(folder_path) return "压缩文件失败" @@ -58,14 +58,12 @@ async def jm_qr(album_id: str| None): file_code=send_status["code"] # 删除文件 await delete_folder(folder_path) - await delete_file(zip_path) return { "msg":"获取成功~!码上下载!~", "qr_code": f"{qrserver_url}?size={qrserver_size}&data={anonfile_download_url}{file_code}" } else: await delete_folder(folder_path) - await delete_file(zip_path) return { "msg":"发送失败,请重试!" } From 27adf4c8d360eb2a5f5f595c4ff851a953ea0e0f Mon Sep 17 00:00:00 2001 From: Miyokiss Date: Sun, 13 Apr 2025 21:53:12 +0800 Subject: [PATCH 2/2] =?UTF-8?q?Add(.gitignore):=20=E6=B7=BB=E5=8A=A0.vscod?= =?UTF-8?q?e=E5=88=B0=E5=BF=BD=E7=95=A5=E5=88=97=E8=A1=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 4217170..aed305e 100644 --- a/.gitignore +++ b/.gitignore @@ -34,4 +34,5 @@ src/clover_lightnovel/output1.html Elysia runtime /src/configs/tts -bot.pid \ No newline at end of file +bot.pid +.vscode