feat: 生产操作识别过期主视频
This commit is contained in:
@@ -84,6 +84,7 @@ export function useProduction() {
|
||||
const target = getProductionSession(projectId)
|
||||
target.receipt = null
|
||||
const staleKeyframes = query.data.value?.keyframes.stalePrimaryKeyframe ?? 0
|
||||
const staleVideos = query.data.value?.videos.stalePrimaryVideo ?? 0
|
||||
const labels: Record<ProductionCommand, string> = {
|
||||
prompts: force.value ? '重生成项目视频提示词' : '补齐项目视频提示词',
|
||||
keyframes: force.value
|
||||
@@ -91,7 +92,11 @@ export function useProduction() {
|
||||
: staleKeyframes > 0
|
||||
? `更新 ${staleKeyframes} 个过期主首帧`
|
||||
: `补齐第 ${episodeNo.value} 集主首帧`,
|
||||
videos: force.value ? '新增项目视频候选' : '提交就绪视频任务',
|
||||
videos: force.value
|
||||
? '新增项目视频候选'
|
||||
: staleVideos > 0
|
||||
? `更新 ${staleVideos} 个过期主视频`
|
||||
: '提交就绪视频任务',
|
||||
'retry-videos': '重试失败视频任务'
|
||||
}
|
||||
await runOperation(projectId, labels[command], async () => {
|
||||
|
||||
Reference in New Issue
Block a user