lh 2 meses atrás
pai
commit
f22101b101

+ 1 - 0
app/Console/Commands/CheckVideoGenerationTasksCommand.php

@@ -107,6 +107,7 @@ class CheckVideoGenerationTasksCommand extends Command
                 if ($videoTask->status === 'success') {
                     $updateData['video_task_status'] = '已完成';
                     $updateData['video_url'] = $videoTask->result_url;
+                    $updateData['current_type'] = 2;
                     
                     // 如果有尾帧图片,也更新
                     if (!empty($videoTask->last_frame_url)) {

+ 3 - 0
app/Services/AIGeneration/AIVideoGenerationService.php

@@ -332,6 +332,7 @@ class AIVideoGenerationService
                     $segmentUpdateData = [
                         'video_url' => $statusInfo['result_url'],
                         'video_task_status' => '已完成',
+                        'current_type' => 2,
                         'last_frame_url' => $statusInfo['last_frame_url'] ?? '',
                         'updated_at' => $now
                     ];
@@ -588,6 +589,7 @@ class AIVideoGenerationService
                     $segmentUpdateData = [
                         'video_url' => $statusInfo['result_url'],
                         'video_task_status' => '已完成',
+                        'current_type' => 2,
                         'last_frame_url' => $statusInfo['last_frame_url'] ?? '',
                         'updated_at' => $now
                     ];
@@ -1360,6 +1362,7 @@ class AIVideoGenerationService
                     $segmentUpdateData = [
                         'video_url' => $statusInfo['result_url'],
                         'video_task_status' => '已完成',
+                        'current_type' => 2,
                         'last_frame_url' => $statusInfo['last_frame_url'] ?? '',
                         'updated_at' => $now
                     ];