Browse Source

视频预览

moshaorui 2 weeks ago
parent
commit
3c2875d41a
1 changed files with 2 additions and 1 deletions
  1. 2 1
      app/Console/Commands/GeneratePreviewVideo.php

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

@@ -3,6 +3,7 @@
 namespace App\Console\Commands;
 
 use App\Libraries\CommonHelper;
+use Exception;
 use Illuminate\Console\Command;
 use Illuminate\Http\File;
 use Illuminate\Support\Carbon;
@@ -52,7 +53,7 @@ class GeneratePreviewVideo extends Command
     {
 //        $this->importVideo();
 //        exit;
-
+        ini_set('memory_limit', '512M');
         $disk = $this->disk('oss');
 
         //如果目录不存在则创建