|
@@ -58,7 +58,6 @@ class GeneratePreviewVideo extends Command
|
|
|
mkdir($localPreviewPath, 0777, true);
|
|
|
}
|
|
|
|
|
|
-
|
|
|
$reslut = DB::table('site_preview_video')
|
|
|
->where('status', '==', 0)
|
|
|
->orderBy('id')
|
|
@@ -92,6 +91,10 @@ class GeneratePreviewVideo extends Command
|
|
|
'preview_url' => $uploadPath . '/' . $previewName,
|
|
|
'status' => 1
|
|
|
]);
|
|
|
+
|
|
|
+
|
|
|
+ unlink($localFilePath);
|
|
|
+ unlink($previewPath);
|
|
|
} catch (\Exception $e) {
|
|
|
DB::table('site_preview_video')
|
|
|
->where('id', $item->id)
|