diff --git a/shortdrama/service/drama_service.go b/shortdrama/service/drama_service.go index 8a1fb78..fee804a 100644 --- a/shortdrama/service/drama_service.go +++ b/shortdrama/service/drama_service.go @@ -346,17 +346,9 @@ func (s *dramaService) generateOneSegment(ctx context.Context, d *entity.Drama, return err } - // 解析 Agent 输出 segOutput := model.ParseAgentOutput(result, segIdx) - - // 调试日志:当场景为空时打印 Agent 输出预览 if len(segOutput.Scenes) == 0 { - preview := result - if len([]rune(preview)) > 500 { - preview = string([]rune(preview)[:500]) + "..." - } - g.Log().Warningf(ctx, "第%d集第%d段 Agent 输出未解析到场景数据,输出预览: %s", - ep.Index, segIdx+1, preview) + g.Log().Warningf(ctx, "第%d集第%d段 Agent 未生成场景数据,请检查输入", ep.Index, segIdx+1) } // 从 Agent 原始输出中提取图片数据,回填到 segOutput diff --git a/shortdrama/view/modal-actor.html b/shortdrama/view/modal-actor.html index 84a43a4..bbd2f0d 100644 --- a/shortdrama/view/modal-actor.html +++ b/shortdrama/view/modal-actor.html @@ -113,15 +113,15 @@ function deleteChar(idx) {