正在显示
1 个修改的文件
包含
2 行增加
和
2 行删除
| @@ -42,11 +42,11 @@ class Task extends Base | @@ -42,11 +42,11 @@ class Task extends Base | ||
| 42 | } | 42 | } |
| 43 | 43 | ||
| 44 | public function setAttachmentAttribute($value){ | 44 | public function setAttachmentAttribute($value){ |
| 45 | - $this->attributes['attachment'] = getFileUrl($value); | 45 | + $this->attributes['attachment'] = $value; |
| 46 | } | 46 | } |
| 47 | 47 | ||
| 48 | public function getAttachmentAttribute($value){ | 48 | public function getAttachmentAttribute($value){ |
| 49 | - return Upload::path2url($value); | 49 | + return getFileUrl($value); |
| 50 | } | 50 | } |
| 51 | 51 | ||
| 52 | public function getTimeoutAttribute(){ | 52 | public function getTimeoutAttribute(){ |
-
请 注册 或 登录 后发表评论