From ac4adac29e9371c0da2209843002257d9ec95275 Mon Sep 17 00:00:00 2001 From: chenzhenkun Date: Fri, 1 Sep 2023 19:37:19 +0800 Subject: [PATCH] =?UTF-8?q?=E5=85=BC=E5=AE=B9=E5=BE=AE=E4=BF=A1=E8=89=BE?= =?UTF-8?q?=E7=89=B9=E7=9A=84=E6=83=85=E5=86=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- channel/wework/wework_message.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/channel/wework/wework_message.py b/channel/wework/wework_message.py index 3daf232..bd08091 100644 --- a/channel/wework/wework_message.py +++ b/channel/wework/wework_message.py @@ -157,7 +157,9 @@ class WeworkMessage(ChatMessage): at_list = tmp_list logger.debug(f"at_list: {at_list}") logger.debug(f"nickname: {nickname}") - self.is_at = nickname in at_list + self.is_at = False + if nickname in at_list or login_info['nickname'] in at_list or login_info['username'] in at_list: + self.is_at = True self.at_list = at_list # 检查消息内容是否包含@用户名。处理复制粘贴的消息,这类消息可能不会触发@通知,但内容中可能包含 "@用户名"。