From 54b2ae30bac122bfa686697bffb90e86c85a91b8 Mon Sep 17 00:00:00 2001 From: Cp0204 Date: Sat, 11 May 2024 10:03:11 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A8=20=E5=90=8C=E6=AD=A5=E4=B8=8A?= =?UTF-8?q?=E6=B8=B8=E9=9D=92=E9=BE=99=E9=80=9A=E7=9F=A5=E6=A8=A1=E5=9D=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sendNotify.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sendNotify.py b/sendNotify.py index 2bd0f7a..800bd47 100644 --- a/sendNotify.py +++ b/sendNotify.py @@ -33,7 +33,7 @@ def print(text, *args, **kw): # 通知服务 # fmt: off push_config = { - 'HITOKOTO': False, # 启用一言(随机句子) + 'HITOKOTO': True, # 启用一言(随机句子) 'BARK_PUSH': '', # bark IP 或设备码,例:https://api.day.app/DxHcxxxxxRxxxxxxcm/ 'BARK_ARCHIVE': '', # bark 推送是否存档 @@ -43,7 +43,7 @@ push_config = { 'BARK_LEVEL': '', # bark 推送时效性 'BARK_URL': '', # bark 推送跳转URL - 'CONSOLE': True, # 控制台输出 + 'CONSOLE': False, # 控制台输出 'DD_BOT_SECRET': '', # 钉钉机器人的 DD_BOT_SECRET 'DD_BOT_TOKEN': '', # 钉钉机器人的 DD_BOT_TOKEN @@ -766,7 +766,7 @@ def parse_string(input_string, value_format_fn=None): def parse_body(body, content_type, value_format_fn=None): if not body or content_type == "text/plain": - return body + return value_format_fn(body) if value_format_fn and body else body parsed = parse_string(body, value_format_fn)