From aabb80d5809e7a24d4bb7b25a2a1152b56e7ccb3 Mon Sep 17 00:00:00 2001 From: xingsu1021 Date: Sun, 11 Sep 2022 13:20:35 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=B6=88=E6=81=AF=E4=B8=BA?= =?UTF-8?q?=E7=A9=BA=E4=B8=8D=E5=8F=91=E9=80=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/cron/crontabs.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/apps/cron/crontabs.py b/apps/cron/crontabs.py index aea4bd2..75f342d 100644 --- a/apps/cron/crontabs.py +++ b/apps/cron/crontabs.py @@ -309,6 +309,10 @@ def send_msg(crontab_id = None, send_data = [], title='PT助手提示'): """ 发送消息 """ + #消息为空则不发送 + if send_data == []: + return + logger.info("-------------send_data-------------------") logger.info(",".join(send_data)) #获取对应任务ID的记录详情