李帅

1.后台可上传图文内容。

...@@ -74,7 +74,7 @@ class MakeImages implements ShouldQueue ...@@ -74,7 +74,7 @@ class MakeImages implements ShouldQueue
74 if (!$this->execmd($cmd)) return; 74 if (!$this->execmd($cmd)) return;
75 75
76 // 全部合成以后创建 临境 76 // 全部合成以后创建 临境
77 - $video_info = $this->mediainfo($output); 77 +// $video_info = $this->mediainfo($output);
78 78
79 $create = [ 79 $create = [
80 'user_id' => 1, 80 'user_id' => 1,
...@@ -83,7 +83,7 @@ class MakeImages implements ShouldQueue ...@@ -83,7 +83,7 @@ class MakeImages implements ShouldQueue
83 'url' => str_replace(Storage::disk('public')->path(''),'',$output), 83 'url' => str_replace(Storage::disk('public')->path(''),'',$output),
84 'type' => $this->adminMakeVideo->type == 1 ? 2 : 1, 84 'type' => $this->adminMakeVideo->type == 1 ? 2 : 1,
85 'duration' => 0, 85 'duration' => 0,
86 - 'size' => $video_info['format']['size'], 86 + 'size' => filesize($image),
87 'poem_id' => $this->adminMakeVideo->poem_id, 87 'poem_id' => $this->adminMakeVideo->poem_id,
88 'temp_id' => $this->adminMakeVideo->temp_id, 88 'temp_id' => $this->adminMakeVideo->temp_id,
89 'thumbnail' => str_replace(Storage::disk('public')->path(''),'',$image), 89 'thumbnail' => str_replace(Storage::disk('public')->path(''),'',$image),
......