From cabbd98dfe05d7bf5f243da5054a965f3d1a8dc5 Mon Sep 17 00:00:00 2001 From: SlyAimer <2289782085@qq.com> Date: Wed, 2 Apr 2025 18:08:23 +0800 Subject: [PATCH 1/3] =?UTF-8?q?fix(jm=5Fdownload):=20=E4=BF=AE=E6=AD=A3?= =?UTF-8?q?=E5=8F=82=E6=95=B0=E6=95=B0=E9=87=8F=E9=AA=8C=E8=AF=81=E9=80=BB?= =?UTF-8?q?=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/plugins/jm_download.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/plugins/jm_download.py b/src/plugins/jm_download.py index 7c580cd..7b398b8 100644 --- a/src/plugins/jm_download.py +++ b/src/plugins/jm_download.py @@ -9,9 +9,8 @@ jm = on_command("jm", rule=to_me(), priority=10,block=False) async def handle_function(message: MessageEvent): values = message.get_plaintext().replace("/jm", "").split(" ") - - if 3 > len(values) > 4: - await jm.finish("请输入正确的格式 /jm+id 或 /jm+id+邮箱号") + if len(values) != 3: + await jm.finish("请输入正确的格式 /jm+id+邮箱号") else: if not validate_email(values[2]): await jm.finish("邮箱格式不正确!") From 70aa13ef2a2b7cae2570bbc975969083867717f0 Mon Sep 17 00:00:00 2001 From: SlyAimer <2289782085@qq.com> Date: Wed, 2 Apr 2025 19:07:20 +0800 Subject: [PATCH 2/3] =?UTF-8?q?feat(configs):=20=E6=B7=BB=E5=8A=A0?= =?UTF-8?q?=E8=B0=B7=E6=AD=8C=E5=92=8CQQ=E9=82=AE=E7=AE=B1=E9=85=8D?= =?UTF-8?q?=E7=BD=AE=E7=A4=BA=E4=BE=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/configs/api_config_example.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/configs/api_config_example.py b/src/configs/api_config_example.py index be097d8..6f62abc 100644 --- a/src/configs/api_config_example.py +++ b/src/configs/api_config_example.py @@ -1,5 +1,17 @@ app_id="" bot_account= "" +""" +谷歌邮箱配置 +""" +google_smtp_server = "smtp.gmail.com" +google_email ="xxxxxx@gmail.com" +google_password = "1234567891234567" #16位应用码 +""" +qq 邮箱配置 +""" +qq_smtp_server = "smtp.qq.com" +qq_email = "xxxxxxxxxx@qq.com" +qq_password = "123456789123456789" #应用码 """ 图床配置 From 722be73e14a2dae9526914b3ebb6dab0e143f5d9 Mon Sep 17 00:00:00 2001 From: SlyAimer <2289782085@qq.com> Date: Wed, 2 Apr 2025 20:06:20 +0800 Subject: [PATCH 3/3] =?UTF-8?q?fix(configs):=20=E6=9B=B4=E6=96=B0jm=5Fconf?= =?UTF-8?q?ig.yml=E4=B8=8B=E8=BD=BD=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/configs/jm_config.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/configs/jm_config.yml b/src/configs/jm_config.yml index 662e77b..508aead 100644 --- a/src/configs/jm_config.yml +++ b/src/configs/jm_config.yml @@ -1,3 +1,12 @@ dir_rule: base_dir: src\resources\image\jm rule: Bd_Pname + +# 下载配置 +download: + cache: true # 如果要下载的文件在磁盘上已存在,不用再下一遍了吧?默认为true + image: + decode: true # JM的原图是混淆过的,要不要还原?默认为true + suffix: .jpg # 把图片都转为.jpg格式,默认为null,表示不转换。 + threading: + photo: 5