feat: 同步精简接口并统一表单校验

This commit is contained in:
GJ committed 2026-09-10 22:34:47 +08:00
1 parent 82d7bde631
commit 2eea0ea72e
66 files changed
+1611 -1100

No files matched your search

+5 -1
View File
@@ -24,7 +24,9 @@ export function validOptionalSize(width: number | '', height: number | ''): bool
/** 返回当前成功主首帧;异常的重复主图只取最新列表中的第一条。 */
export function primaryKeyframe(items: ShotKeyframe[]): ShotKeyframe | undefined {
return items.find(item => item.isPrimary && item.status === 'completed' && item.imageUrl)
return items.find(
item => item.isPrimary && item.source !== 'provider_variant' && item.status === 'completed' && item.imageUrl
)
}
/** 返回当前成功主视频。 */
@@ -47,6 +49,8 @@ export function issueLabel(code: ProductionIssueCode): string {
missing_identity_anchor: '缺少演员母版',
identity_unlocked: '演员身份未锁定',
missing_prompt: '缺少视频提示词',
stale_prompt: '视频提示词需要更新',
provider_input_recovery: '视频模型输入需要处理',
missing_keyframe: '缺少主首帧',
stale_keyframe: '主首帧已过期'
}