更新 __init__.py

This commit is contained in:
jxxghp 2023-07-15 17:53:37 +08:00 committed by GitHub
parent 6d8ef17517
commit 97a4d73e03
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -49,7 +49,7 @@ def checkMessage(channel_type: MessageChannel):
else:
# 检查消息类型开关
if message.mtype:
switchs = SystemConfigOper().get(SystemConfigKey.NotificationChannels)
switchs = SystemConfigOper().get(SystemConfigKey.NotificationChannels) or []
for switch in switchs:
if switch.get("mtype") == message.mtype.value:
if channel_type == MessageChannel.Wechat and not switch.get("wechat"):