feat: 生产操作识别过期主视频

This commit is contained in:
GouJ
2026-09-01 15:54:23 +08:00
parent 0678d7555f
commit d5ea2aaa98
+6 -1
View File
@@ -84,6 +84,7 @@ export function useProduction() {
const target = getProductionSession(projectId) const target = getProductionSession(projectId)
target.receipt = null target.receipt = null
const staleKeyframes = query.data.value?.keyframes.stalePrimaryKeyframe ?? 0 const staleKeyframes = query.data.value?.keyframes.stalePrimaryKeyframe ?? 0
const staleVideos = query.data.value?.videos.stalePrimaryVideo ?? 0
const labels: Record<ProductionCommand, string> = { const labels: Record<ProductionCommand, string> = {
prompts: force.value ? '重生成项目视频提示词' : '补齐项目视频提示词', prompts: force.value ? '重生成项目视频提示词' : '补齐项目视频提示词',
keyframes: force.value keyframes: force.value
@@ -91,7 +92,11 @@ export function useProduction() {
: staleKeyframes > 0 : staleKeyframes > 0
? `更新 ${staleKeyframes} 个过期主首帧` ? `更新 ${staleKeyframes} 个过期主首帧`
: `补齐第 ${episodeNo.value} 集主首帧`, : `补齐第 ${episodeNo.value} 集主首帧`,
videos: force.value ? '新增项目视频候选' : '提交就绪视频任务', videos: force.value
? '新增项目视频候选'
: staleVideos > 0
? `更新 ${staleVideos} 个过期主视频`
: '提交就绪视频任务',
'retry-videos': '重试失败视频任务' 'retry-videos': '重试失败视频任务'
} }
await runOperation(projectId, labels[command], async () => { await runOperation(projectId, labels[command], async () => {