From b901319fb151efee9fb30692f7ada7818246177e Mon Sep 17 00:00:00 2001 From: WeijiangChen Date: Mon, 13 Mar 2023 20:50:59 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A6=82=E6=9E=9C=E9=80=9A=E7=9F=A5=E5=8A=9F?= =?UTF-8?q?=E8=83=BD=E6=B2=A1=E5=BC=80=E5=90=AF=EF=BC=8C=E4=B8=8D=E5=90=AF?= =?UTF-8?q?=E7=94=A8=E9=80=9A=E7=9F=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- module/network/notification.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/module/network/notification.py b/module/network/notification.py index 1c0bb119..834f9a68 100644 --- a/module/network/notification.py +++ b/module/network/notification.py @@ -27,6 +27,8 @@ class ServerChanNotification: self.notification_url = f"https://sctapi.ftqq.com/{self.token}.send" def send_msg(self, title: str, desp: str) -> bool: + if not settings.notification.enable: + return False data = { "title": title, "desp": desp,