From 4194fbabf16993c5e629f0c2a6d3d680303ec61e Mon Sep 17 00:00:00 2001 From: TingHsi Date: Mon, 9 May 2022 14:33:59 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AE=B0=E5=BD=95bark=E6=8E=A8=E9=80=81?= =?UTF-8?q?=E7=BB=93=E6=9E=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- push.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/push.py b/push.py index 3b544d6..25b831a 100644 --- a/push.py +++ b/push.py @@ -139,9 +139,10 @@ def dingrobot(status, push_message): # Bark def bark(status, push_message): - http.get( + rep = http.get( url=f'{cfg.get("bark", "api_url")}/{cfg.get("bark", "token")}/{title(status)}/{push_message}' - ) + ).json() + log.info(f"推送结果:{rep.get('message')}") def push(status, push_message): if not load_config():