正在显示
1 个修改的文件
包含
5 行增加
和
5 行删除
| @@ -36,11 +36,11 @@ class Product extends Base | @@ -36,11 +36,11 @@ class Product extends Base | ||
| 36 | $this->attributes['thumb'] = Arr::a2s($value); | 36 | $this->attributes['thumb'] = Arr::a2s($value); |
| 37 | } | 37 | } |
| 38 | 38 | ||
| 39 | -// public function getThumbAttribute($value){ | ||
| 40 | -// $value = Arr::s2a($value); | ||
| 41 | -// $value['url'] = $this->getImageUrl($value['url']); | ||
| 42 | -// return $value; | ||
| 43 | -// } | 39 | + public function getThumbAttribute($value){ |
| 40 | + $value = Arr::s2a($value); | ||
| 41 | + $value['url'] = $this->getImageUrl($value['url']); | ||
| 42 | + return $value; | ||
| 43 | + } | ||
| 44 | 44 | ||
| 45 | public function setGalleryAttribute($value){ | 45 | public function setGalleryAttribute($value){ |
| 46 | $this->attributes['gallery'] = Arr::a2s($value); | 46 | $this->attributes['gallery'] = Arr::a2s($value); |
-
请 注册 或 登录 后发表评论