修复拆镜复刻路由,修补API参数说明,版本迁移异常修复
This commit is contained in:
@@ -717,8 +717,10 @@ async def update_shot_replicate_material_input(
|
||||
old_material_step = await _get_current_step_by_code(db, project.id, ShotReplicateStepCodeEnum.MATERIAL_INPUT.value)
|
||||
old_material = _step_payload(old_material_step.input_json if old_material_step else None)
|
||||
|
||||
# 拆镜复刻的素材视频来自 shot_replicate_segments.segment_video_url,
|
||||
# 与片段强绑定,不允许前端在项目素材修改接口中覆盖。
|
||||
material = {
|
||||
"material_video_url": req.material_video_url if req.material_video_url is not None else old_material.get("material_video_url"),
|
||||
"material_video_url": old_material.get("material_video_url"),
|
||||
"material_image_url": req.material_image_url if req.material_image_url is not None else old_material.get("material_image_url"),
|
||||
"source_project_name": req.source_project_name if req.source_project_name is not None else old_material.get("source_project_name"),
|
||||
"target_project_name": req.target_project_name if req.target_project_name is not None else old_material.get("target_project_name"),
|
||||
|
||||
Reference in New Issue
Block a user