Browse Source

视频预览

moshaorui 3 tuần trước cách đây
mục cha
commit
56b09d5da5
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      app/Console/Commands/GeneratePreviewVideo.php

+ 1 - 1
app/Console/Commands/GeneratePreviewVideo.php

@@ -81,7 +81,7 @@ class GeneratePreviewVideo extends Command
                 $this->generatePreview($localFilePath, $previewPath);
 
                 //上传到OSS
-                $uploadPath = 'videos/uploads/previews/'. date('Ym').'/';
+                $uploadPath = 'videos/uploads/previews/'. date('Ym');
                 $file = new File($previewPath);
                 $disk->putFileAs($uploadPath, $file, $previewName);