fix: 修复配置文件路径和报表合并逻辑

This commit is contained in:
renzhiyuan 2026-02-09 17:07:14 +08:00
parent 229d3585ba
commit c7baaa8514
1 changed files with 1 additions and 0 deletions

View File

@ -64,6 +64,7 @@ func (d *DingBotService) runBackgroundTasks(ctx context.Context, data *chatbot.B
g.Go(func() error { g.Go(func() error {
defer func() { defer func() {
// 确保通道最终关闭 // 确保通道最终关闭
log.Println("流式处理协程关闭")
close(resChan) close(resChan)
}() }()
return d.dingTalkBotBiz.HandleStreamRes(ctx, data, resChan) return d.dingTalkBotBiz.HandleStreamRes(ctx, data, resChan)