mirror of
https://github.com/Nezumi-2711/astrbot_plugin_qq_group_daily_analysis.git
synced 2026-09-22 05:31:52 +00:00
fix: 修复生成报告时的 KeyError: 'group_id' 崩溃问题
- 在 execute_daily_analysis 返回结果中补全 group_id 和 platform_id - 在 execute_incremental_final_report 返回结果中补全对应字段 - 确保 main.py 中的报表分发逻辑能正确获取目标群组信息
This commit is contained in:
@@ -237,6 +237,8 @@ class AnalysisApplicationService:
|
||||
"analysis_result": analysis_result,
|
||||
"messages_count": len(unified_messages),
|
||||
"adapter": adapter,
|
||||
"group_id": group_id,
|
||||
"platform_id": getattr(adapter, "platform_id", platform_id),
|
||||
}
|
||||
|
||||
# ----------------------------------------------------------------
|
||||
@@ -592,6 +594,8 @@ class AnalysisApplicationService:
|
||||
"analysis_result": analysis_result,
|
||||
"messages_count": state.total_message_count,
|
||||
"adapter": adapter,
|
||||
"group_id": group_id,
|
||||
"platform_id": getattr(adapter, "platform_id", platform_id),
|
||||
}
|
||||
|
||||
# ----------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user