From 0fa49bb9c60e9a172496371c18270f44edc0b1ce Mon Sep 17 00:00:00 2001 From: jxxghp Date: Mon, 16 Jun 2025 08:06:47 +0800 Subject: [PATCH] =?UTF-8?q?fix=20=E6=B6=88=E6=81=AF=E5=AE=9A=E5=90=91?= =?UTF-8?q?=E5=8F=91=E9=80=81=E6=97=B6=E4=B8=8D=E6=A3=80=E6=9F=A5=E6=B6=88?= =?UTF-8?q?=E6=81=AF=E7=B1=BB=E5=9E=8B=E5=8C=B9=E9=85=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/modules/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/modules/__init__.py b/app/modules/__init__.py index fc72866c..44ee1c62 100644 --- a/app/modules/__init__.py +++ b/app/modules/__init__.py @@ -210,8 +210,8 @@ class _MessageBase(ServiceBase[TService, NotificationConf]): # 检查消息来源 if message.source and message.source != source: return False - # 检查消息类型开关 - if message.mtype: + # 不是定向发送时,检查消息类型开关 + if not message.userid and message.mtype: conf = self.get_config(source) if conf: switchs = conf.switchs or []