浏览代码

视频预览

moshaorui 2 周之前
父节点
当前提交
80897d4b96
共有 1 个文件被更改,包括 1 次插入0 次删除
  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')) {