auto-save 2026-05-14 12:37 (~6)

This commit is contained in:
2026-05-14 12:37:30 +08:00
parent 01ab67eb13
commit 3733151ae4
6 changed files with 36 additions and 137 deletions

View File

@@ -522,13 +522,14 @@ export default function Home() {
if (!frame) return
const productRefs = (shot.product_images ?? []).filter(Boolean).slice(0, 4) as ImageRef[]
if (!shot.first_image || !shot.last_image || productRefs.length < 4 || !shot.action_text?.trim()) {
toast.error("产品融合镜头缺少首帧、尾帧、四张产品角度图或描述词")
toast.error("产品融合镜头缺少首帧、尾帧、固定产品图或描述词")
return
}
const duration = shot.duration && shot.duration > 0 ? shot.duration : 5
const labelOf = (ref?: ImageRef | null, fallback = "未提供") => ref?.label || fallback
try {
const prompt = [
`产品融合镜头ID${shot.id || `shot-${frameIdx + 1}`}`,
`竖屏 9:16${duration.toFixed(1)}Seedance 图生视频。`,
"图片模型固定为 GPT Image 2首帧和尾帧已经由文字生图生成用来锁定透明骨架人角色、场景构图和动作起止状态。",
"视频模型固定为 Seedance使用首帧作为起始画面、尾帧作为结束画面并用四张同一 SKG 产品不同角度白底图作为垫图/产品身份参考。",