瀏覽代碼

视频预览

moshaorui 2 周之前
父節點
當前提交
f60e35e8fe
共有 1 個文件被更改,包括 4 次插入2 次删除
  1. 4 2
      app/Console/Commands/GeneratePreviewVideo.php

+ 4 - 2
app/Console/Commands/GeneratePreviewVideo.php

@@ -92,7 +92,8 @@ class GeneratePreviewVideo extends Command
                     ->where('id', $item->id)
                     ->update([
                         'preview_url' => $uploadPath . '/' . $previewName,
-                        'status' => 1
+                        'status' => 1,
+                        'updated_at' => Carbon::now()
                     ]);
 
                 //删除本地文件
@@ -103,7 +104,8 @@ class GeneratePreviewVideo extends Command
                     ->where('id', $item->id)
                     ->update([
                         'remark' => $e->getMessage(),
-                        'status' => -1
+                        'status' => -1,
+                        'updated_at' => Carbon::now()
                     ]);
             }
         }