|
|
@@ -4162,6 +4162,7 @@ class AnimeService
|
|
|
$first_frame_url = getProp($data, 'first_frame_url');
|
|
|
$tail_frame_url = getProp($data, 'tail_frame_url');
|
|
|
$generate_audio = getProp($data, 'generate_audio', 1);
|
|
|
+ $video_duration = getProp($data, 'video_duration');
|
|
|
$products = getProp($data, 'products', []);
|
|
|
$reference_images = array_unique(getProp($data, 'reference_images', []));
|
|
|
if (!is_array($reference_images) || !is_array($products)) {
|
|
|
@@ -4245,7 +4246,7 @@ class AnimeService
|
|
|
$fullPrompt = $processResult['content'];
|
|
|
$reference_images = array_merge($processResult['reference_images'], $reference_images);
|
|
|
|
|
|
- $videoDuration = getProp($act, 'act_duration');
|
|
|
+ $videoDuration = $video_duration ? $video_duration : getProp($act, 'act_duration');
|
|
|
|
|
|
// 处理视频模型
|
|
|
$model = getProp($data, 'model');
|
|
|
@@ -4393,6 +4394,7 @@ class AnimeService
|
|
|
'model' => $model
|
|
|
]);
|
|
|
}
|
|
|
+ dd($unifiedParams);
|
|
|
|
|
|
if ($reference_images) {
|
|
|
// 在处理之前先保存原始reference_images到任务参数中
|