浏览代码

fix issue

父节点
当前提交
3c4f3046fb
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1
    1
      app/Models/NewsParagraph.php

+ 1
- 1
app/Models/NewsParagraph.php 查看文件

@@ -60,7 +60,7 @@ class NewsParagraph extends Model
60 60
     protected function paragraphVideoUrl(): Attribute
61 61
     {
62 62
         return Attribute::make(
63
-            get: fn ($value) => ($this->video_type == 2) ? Storage::disk('public')->url($this->video_url) : $this->attributes["link"],
63
+            get: fn ($value) => ($this->video_type == 2) ? Storage::disk('public')->url($this->video_url) : $this->link,
64 64
         );
65 65
     }
66 66
 }