正在显示
1 个修改的文件
包含
2 行增加
和
2 行删除
| @@ -36,12 +36,12 @@ class Category extends Base | @@ -36,12 +36,12 @@ class Category extends Base | ||
| 36 | 36 | ||
| 37 | public function getImageAttribute($value) | 37 | public function getImageAttribute($value) |
| 38 | { | 38 | { |
| 39 | - return $this->getImageUrl($value); | 39 | + return Upload::path2url($value); |
| 40 | } | 40 | } |
| 41 | 41 | ||
| 42 | public function setImageAttribute($value) | 42 | public function setImageAttribute($value) |
| 43 | { | 43 | { |
| 44 | - $this->attributes['image'] = $value; | 44 | + $this->attributes['image'] = Upload::url2path($value); |
| 45 | } | 45 | } |
| 46 | 46 | ||
| 47 | 47 |
-
请 注册 或 登录 后发表评论