|
|
@@ -1074,6 +1074,7 @@ class AnimeService
|
|
|
if ($video_url) {
|
|
|
$update_data['video_url'] = $video_url;
|
|
|
$compressed_video_url = compressVideo($video_url);
|
|
|
+ $update_data['current_type'] = 2;
|
|
|
if ($compressed_video_url) $update_data['preview_video_url'] = $compressed_video_url;
|
|
|
|
|
|
// 同时写入一个简单的视频生成任务
|
|
|
@@ -1705,6 +1706,7 @@ class AnimeService
|
|
|
if ($img_url) $insert_data['img_url'] = $img_url;
|
|
|
if ($video_url) {
|
|
|
$insert_data['video_url'] = $video_url;
|
|
|
+ $insert_data['current_type'] = 2;
|
|
|
$compressed_video_url = compressVideo($video_url);
|
|
|
if ($compressed_video_url) $insert_data['preview_video_url'] = $compressed_video_url;
|
|
|
}
|