From bae7bff70d9e709e2931f60e6d106822c145ad1b Mon Sep 17 00:00:00 2001 From: jxxghp Date: Fri, 17 Jan 2025 16:41:01 +0800 Subject: [PATCH] fix #3744 --- app/chain/__init__.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/chain/__init__.py b/app/chain/__init__.py index b041b755..c0c1c43a 100644 --- a/app/chain/__init__.py +++ b/app/chain/__init__.py @@ -531,6 +531,9 @@ class ChainBase(metaclass=ABCMeta): # 管理员发过了,此消息不发了 logger.info(f"用户 {send_message.username} 不存在,消息无法发送到对应用户") continue + elif send_message.username == settings.SUPERUSER: + # 管理员同名已发送 + admin_sended = True else: # 按原消息发送全体 if not admin_sended: