From 3ed8faa3c112dbf5e27a50cb97f46913209478fe Mon Sep 17 00:00:00 2001 From: Appoip <99581678+Appoip@users.noreply.github.com> Date: Sun, 4 Sep 2022 11:25:03 +0800 Subject: [PATCH] Update notify.py --- sample/notify.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sample/notify.py b/sample/notify.py index bdb00943..e5d48d5a 100644 --- a/sample/notify.py +++ b/sample/notify.py @@ -292,7 +292,7 @@ def chat(title: str, content: str) -> None: print("chat 服务的 CHAT_URL或CHAT_TOKEN 未设置!!\n取消推送") return print("chat 服务启动") - data = 'payload=' + json.dumps({'text': content}) + data = 'payload=' + json.dumps({'text': title + '\n' + content}) url = push_config.get("CHAT_URL") + push_config.get("CHAT_TOKEN") response = requests.post(url, data=data)