From d40ffcafae773f2d9785a1d4d6039611525fb90e Mon Sep 17 00:00:00 2001 From: Appoip <99581678+Appoip@users.noreply.github.com> Date: Sat, 3 Sep 2022 21:58:08 +0800 Subject: [PATCH] Update notify.py --- sample/notify.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sample/notify.py b/sample/notify.py index 84edffe5..bdb00943 100644 --- a/sample/notify.py +++ b/sample/notify.py @@ -294,12 +294,12 @@ def chat(title: str, content: str) -> None: print("chat 服务启动") data = 'payload=' + json.dumps({'text': content}) url = push_config.get("CHAT_URL") + push_config.get("CHAT_TOKEN") - response = requests.post(url, data=data).json() + response = requests.post(url, data=data) if response.status_code == 200: - print("PushDeer 推送成功!") + print("Chat 推送成功!") else: - print("PushDeer 推送失败!错误信息:", response) + print("Chat 推送失败!错误信息:", response)