去除debug 日志
This commit is contained in:
@@ -111,7 +111,7 @@ class GroupVirtualPlugin(MessagePluginInterface):
|
|||||||
sender = message.get("sender", "")
|
sender = message.get("sender", "")
|
||||||
full_wx_msg: WxMessage = message.get("full_wx_msg")
|
full_wx_msg: WxMessage = message.get("full_wx_msg")
|
||||||
content = message.get("content", "")
|
content = message.get("content", "")
|
||||||
self.LOG.debug(f"插件执行: {self.name}:{content}")
|
self.LOG.debug(f"插件执行: {self.name}")
|
||||||
self.bot: WechatAPIClient = message.get("bot")
|
self.bot: WechatAPIClient = message.get("bot")
|
||||||
# 检查是否是机器人自己发送的消息
|
# 检查是否是机器人自己发送的消息
|
||||||
if full_wx_msg.from_self():
|
if full_wx_msg.from_self():
|
||||||
@@ -167,7 +167,6 @@ class GroupVirtualPlugin(MessagePluginInterface):
|
|||||||
if msg_type == MessageType.TEXT:
|
if msg_type == MessageType.TEXT:
|
||||||
content = message.get("content", "")
|
content = message.get("content", "")
|
||||||
forward_content = f"{prefix}{content}"
|
forward_content = f"{prefix}{content}"
|
||||||
self.LOG.debug(f"forward_content: {forward_content}")
|
|
||||||
# 转发到其他群
|
# 转发到其他群
|
||||||
for group in chat_group["groups"]:
|
for group in chat_group["groups"]:
|
||||||
if group["id"] != roomid: # 不转发回源群
|
if group["id"] != roomid: # 不转发回源群
|
||||||
@@ -181,7 +180,6 @@ class GroupVirtualPlugin(MessagePluginInterface):
|
|||||||
await self.bot.send_text_message(group["id"], f"{prefix}[图片]")
|
await self.bot.send_text_message(group["id"], f"{prefix}[图片]")
|
||||||
# 转发图片
|
# 转发图片
|
||||||
xml_content = message.get("content", "")
|
xml_content = message.get("content", "")
|
||||||
self.LOG.debug(f"xml_content: {xml_content}")
|
|
||||||
await self.bot.send_cdn_img_msg(group["id"], xml_content)
|
await self.bot.send_cdn_img_msg(group["id"], xml_content)
|
||||||
elif msg_type == MessageType.VIDEO:
|
elif msg_type == MessageType.VIDEO:
|
||||||
for group in chat_group["groups"]:
|
for group in chat_group["groups"]:
|
||||||
@@ -189,7 +187,6 @@ class GroupVirtualPlugin(MessagePluginInterface):
|
|||||||
await self.bot.send_text_message(group["id"], f"{prefix}[视频]")
|
await self.bot.send_text_message(group["id"], f"{prefix}[视频]")
|
||||||
# 转发图片
|
# 转发图片
|
||||||
xml_content = message.get("content", "")
|
xml_content = message.get("content", "")
|
||||||
self.LOG.debug(f"xml_content: {xml_content}")
|
|
||||||
await self.bot.send_cdn_video_msg(group["id"], xml_content)
|
await self.bot.send_cdn_video_msg(group["id"], xml_content)
|
||||||
|
|
||||||
def _get_chat_group(self, chat_group_id: str) -> Optional[Dict[str, Any]]:
|
def _get_chat_group(self, chat_group_id: str) -> Optional[Dict[str, Any]]:
|
||||||
|
|||||||
Reference in New Issue
Block a user