Browse Source

视频预览

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

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

@@ -150,6 +150,7 @@ class GeneratePreviewVideo extends Command
     private function ossUrl($url)
     {
         if (strpos($url, 'http:') === 0 || strpos($url, 'https:') === 0) {
+            $url = str_replace(env('PREVIEW_OSS_URL'), env('PREVIEW_OSS_URL_INTERNAL'), $url);
             return  $url;
         }
         if (env('PREVIEW_OSS_URL_INTERNAL')) {