【P1】一键生成createEditPlan后无自动生成片段,generate报请先添加片段 #456

Closed
opened 2026-07-17 11:54:46 +08:00 by xiaoxia · 2 comments
Owner

问题描述

一键生成流程:createEditPlan传了template_id + asset_ids,但计划创建后clips数量为0,直接调generate会报"请先添加片段"。

已有兜底逻辑

_auto_fallback_copy_template_clips 会从 template_clip_configs 表复制,但前提是模板有这个数据。测试模板(pip模式)没有template_clip_configs数据。

期望行为

一键生成选择模板后,应该自动根据模板配置生成clips,用户直接点生成就能出片。

来源:一键生成全链路实测报告 #406

### 问题描述 一键生成流程:createEditPlan传了template_id + asset_ids,但计划创建后clips数量为0,直接调generate会报"请先添加片段"。 ### 已有兜底逻辑 `_auto_fallback_copy_template_clips` 会从 `template_clip_configs` 表复制,但前提是模板有这个数据。测试模板(pip模式)没有template_clip_configs数据。 ### 期望行为 一键生成选择模板后,应该自动根据模板配置生成clips,用户直接点生成就能出片。 来源:一键生成全链路实测报告 #406
Author
Owner

PR #460已提交,修复创建剪辑计划时传template_id不生成clips的问题。CI修复中(格式+兼容降级)。

PR #460已提交,修复创建剪辑计划时传template_id不生成clips的问题。CI修复中(格式+兼容降级)。
Author
Owner

PR #460 CI已通过,等待自动合并。

PR #460 CI已通过,等待自动合并。
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: xiaoxia/xiaoxia-saas#456