修复消息为空不发送

This commit is contained in:
xingsu1021
2022-09-11 13:20:35 +08:00
parent 41a4cb7881
commit aabb80d580

View File

@@ -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的记录详情