From 3c0b23ae33e02844b8125dec3a77bfdc1878cb67 Mon Sep 17 00:00:00 2001 From: Akimio521 Date: Sun, 25 Feb 2024 15:56:27 +0800 Subject: [PATCH] =?UTF-8?q?=E6=99=BA=E8=83=BD=E5=BE=AE=E7=A7=98=E4=B9=A6?= =?UTF-8?q?=E6=9D=A1=E4=BB=B6=E5=88=A4=E6=96=AD=E9=94=99=E8=AF=AF=E4=BF=AE?= =?UTF-8?q?=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sample/notify.py | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/sample/notify.py b/sample/notify.py index bfba3db7..7b1567b4 100644 --- a/sample/notify.py +++ b/sample/notify.py @@ -634,14 +634,18 @@ def aibotk(title: str, content: str, **kwargs) -> None: 使用 智能微秘书 推送消息。 """ if not ( - kwargs.get("AIBOTK_KEY") - and kwargs.get("AIBOTK_TYPE") - and kwargs.get("AIBOTK_NAME") - )or ( - push_config.get("AIBOTK_KEY") - and push_config.get("AIBOTK_TYPE") - and push_config.get("AIBOTK_NAME") - ): + ( + kwargs.get("AIBOTK_KEY") + and kwargs.get("AIBOTK_TYPE") + and kwargs.get("AIBOTK_NAME") + ) + or + ( + push_config.get("AIBOTK_KEY") + and push_config.get("AIBOTK_TYPE") + and push_config.get("AIBOTK_NAME") + ) + ): print("智能微秘书 的 AIBOTK_KEY 或者 AIBOTK_TYPE 或者 AIBOTK_NAME 未设置!!\n取消推送") return print("智能微秘书 服务启动")