debug
This commit is contained in:
@@ -119,11 +119,13 @@ class GroupVirtualPlugin(MessagePluginInterface):
|
||||
|
||||
# 获取该群所在的所有虚拟聊天组
|
||||
chat_groups = self._get_chat_groups_by_group_id(roomid)
|
||||
self.LOG.debug(f"chat_groups: {chat_groups}")
|
||||
if not chat_groups:
|
||||
return False, "该群不在任何虚拟聊天组中"
|
||||
|
||||
# 生成消息唯一标识(用于防止循环转发)
|
||||
message_id = f"{full_wx_msg.msg_id}_{full_wx_msg.create_time}"
|
||||
self.LOG.debug(f"message_id: {message_id}")
|
||||
if message_id in self.message_cache:
|
||||
return False, "消息已经转发过"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user