From b1d4b484c64c595d6cb582b24f3d00f09e92c417 Mon Sep 17 00:00:00 2001 From: Cp0204 Date: Sat, 11 May 2024 16:17:13 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A8=20=E9=9D=92=E9=BE=99=E7=8E=AF?= =?UTF-8?q?=E5=A2=83=E7=9B=B4=E6=8E=A5=E4=BD=BF=E7=94=A8=E5=86=85=E7=BD=AE?= =?UTF-8?q?=E7=9A=84=E9=80=9A=E7=9F=A5=E6=A8=A1=E5=9D=97=20close=20#15?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 4 ++-- sendNotify.py => notify.py | 0 quark_auto_save.py | 6 +++--- 3 files changed, 5 insertions(+), 5 deletions(-) rename sendNotify.py => notify.py (100%) diff --git a/README.md b/README.md index f4ca262..3a38de8 100644 --- a/README.md +++ b/README.md @@ -98,14 +98,14 @@ docker run --rm -v /var/run/docker.sock:/var/run/docker.sock containrrr/watchtow 1. 拉库命令: ``` - ql repo https://github.com/Cp0204/quark-auto-save.git "quark" "" "sendNotify" + ql repo https://github.com/Cp0204/quark-auto-save.git "quark" "" "" ``` 2. 首次运行程序将从本仓库下载配置模版。 3. 脚本管理中,手动编辑 `quark_config.json` 配置文件。 -> 当无配置文件时且存在青龙环境变量 `QUARK_COOKIE` 时,则仅签到,多账号用换行分隔。 +> 删除配置文件,且存在青龙环境变量 `QUARK_COOKIE` 时,则仅签到,多账号用换行分隔。 ### 程序配置 diff --git a/sendNotify.py b/notify.py similarity index 100% rename from sendNotify.py rename to notify.py diff --git a/quark_auto_save.py b/quark_auto_save.py index 02beeb9..3c5e28f 100644 --- a/quark_auto_save.py +++ b/quark_auto_save.py @@ -53,13 +53,13 @@ def magic_regex_func(pattern, replace): def send_ql_notify(title, body): try: # 导入通知模块 - import sendNotify + import notify # 如未配置 push_config 则使用青龙环境通知设置 if CONFIG_DATA.get("push_config"): CONFIG_DATA["push_config"]["CONSOLE"] = True - sendNotify.push_config = CONFIG_DATA["push_config"] - sendNotify.send(title, body) + notify.push_config = CONFIG_DATA["push_config"] + notify.send(title, body) except Exception as e: if e: print("发送通知消息失败!")