fix(discord-cross): 修复跨平台消息处理和附件下载问题

修复QQ群消息处理中的非群消息过滤问题
优化Discord附件下载逻辑,使用aiohttp替代requests
修复Redis订阅任务重复创建问题
调整消息格式化的embed字段处理逻辑
This commit is contained in:
2026-03-24 14:14:02 +08:00
committed by 镀铬酸钾
parent 95694071d1
commit fc8a258033
2 changed files with 17 additions and 6 deletions

View File

@@ -55,6 +55,10 @@ async def handle_qq_group_message(event: GroupMessageEvent):
if not config.ENABLE_CROSS_PLATFORM:
return
# 忽略非群消息和 Discord 注入的消息
if not hasattr(event, 'group_id') or hasattr(event, '_is_discord_message'):
return
group_id = event.group_id
mapped_channel = None
for discord_channel_id, info in config.CROSS_PLATFORM_MAP.items():