From e90af5f38ba24d969962cceddcdb11589db608a0 Mon Sep 17 00:00:00 2001 From: yafu Date: Tue, 25 Jul 2023 15:25:24 +0800 Subject: [PATCH] =?UTF-8?q?PushMe=E6=8E=A8=E9=80=81=E9=80=9A=E9=81=93?= =?UTF-8?q?=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sample/notify.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sample/notify.py b/sample/notify.py index 4a044402..3d569c07 100644 --- a/sample/notify.py +++ b/sample/notify.py @@ -655,10 +655,10 @@ def pushme(title: str, content: str) -> None: } response = requests.post(url, data=data) - if response == 'success': + if response.status_code == 200 and response.text == "success": print("PushMe 推送成功!") else: - print("PushMe 推送失败!{response}") + print(f"PushMe 推送失败!{response.status_code} {response.text}") def one() -> str: