浏览代码

Revert media model change

Daniel Supernault 2 年之前
父节点
当前提交
c6fe213f93
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      app/Media.php

+ 2 - 1
app/Media.php

@@ -38,7 +38,8 @@ class Media extends Model
     public function url()
     {
         if($this->cdn_url) {
-            return Storage::disk(config('filesystems.cloud'))->url($this->media_path);
+            // return Storage::disk(config('filesystems.cloud'))->url($this->media_path);
+            return $this->cdn_url;
         }
 
         if($this->remote_media && $this->remote_url) {