Showing
1 changed file
with
6 additions
and
4 deletions
| ... | @@ -95,8 +95,7 @@ class MakeVideo implements ShouldQueue | ... | @@ -95,8 +95,7 @@ class MakeVideo implements ShouldQueue |
| 95 | escapeshellarg($video); | 95 | escapeshellarg($video); |
| 96 | 96 | ||
| 97 | // 执行合成 | 97 | // 执行合成 |
| 98 | - $this->execmd($cmd); | 98 | + if ($this->execmd($cmd)){ |
| 99 | - | ||
| 100 | $video2 = $this->getTempPath(); | 99 | $video2 = $this->getTempPath(); |
| 101 | $cmd = $this->ffmpeg . ' -y -i ' . escapeshellarg($video) . | 100 | $cmd = $this->ffmpeg . ' -y -i ' . escapeshellarg($video) . |
| 102 | ' -vf '. | 101 | ' -vf '. |
| ... | @@ -117,7 +116,7 @@ class MakeVideo implements ShouldQueue | ... | @@ -117,7 +116,7 @@ class MakeVideo implements ShouldQueue |
| 117 | Immerse::query()->create([ | 116 | Immerse::query()->create([ |
| 118 | 'user_id' => 1, | 117 | 'user_id' => 1, |
| 119 | 'title' => '', | 118 | 'title' => '', |
| 120 | - 'content' => $this->adminMakeVideo->feel, | 119 | + 'content' => $this->adminMakeVideo->feel ?? '', |
| 121 | 'url' => $video2, | 120 | 'url' => $video2, |
| 122 | 'type' => $this->adminMakeVideo->type == 1 ? 2 : 1, | 121 | 'type' => $this->adminMakeVideo->type == 1 ? 2 : 1, |
| 123 | 'duration' => $video_info['format']['duration'], | 122 | 'duration' => $video_info['format']['duration'], |
| ... | @@ -128,9 +127,12 @@ class MakeVideo implements ShouldQueue | ... | @@ -128,9 +127,12 @@ class MakeVideo implements ShouldQueue |
| 128 | 'bgm' => $this->adminMakeVideo->bgm_url, | 127 | 'bgm' => $this->adminMakeVideo->bgm_url, |
| 129 | ]); | 128 | ]); |
| 130 | } else { | 129 | } else { |
| 131 | - Log::info(''); | 130 | + Log::info('退出1'); |
| 132 | return; | 131 | return; |
| 133 | } | 132 | } |
| 133 | + }else{ | ||
| 134 | + Log::info('退出2'); | ||
| 135 | + } | ||
| 134 | 136 | ||
| 135 | } | 137 | } |
| 136 | 138 | ... | ... |
-
Please register or login to post a comment