Merge branch 'develop' of http://47.244.231.31:8099/zhl/globalso-v6 into develop
正在显示
1 个修改的文件
包含
7 行增加
和
7 行删除
| @@ -46,13 +46,13 @@ class Product extends Base | @@ -46,13 +46,13 @@ class Product extends Base | ||
| 46 | // $this->attributes['gallery'] = Arr::a2s($value); | 46 | // $this->attributes['gallery'] = Arr::a2s($value); |
| 47 | // } | 47 | // } |
| 48 | // | 48 | // |
| 49 | -// public function getGalleryAttribute($value){ | ||
| 50 | -// $value = Arr::s2a($value); | ||
| 51 | -// foreach ($value as &$v){ | ||
| 52 | -// $v['url'] = $this->getImageUrl($v['url']); | ||
| 53 | -// } | ||
| 54 | -// return $value; | ||
| 55 | -// } | 49 | + public function getGalleryAttribute($value){ |
| 50 | + $value = Arr::s2a($value); | ||
| 51 | + foreach ($value as &$v){ | ||
| 52 | + $v['url'] = $this->getImageUrl($v['url']); | ||
| 53 | + } | ||
| 54 | + return $value; | ||
| 55 | + } | ||
| 56 | 56 | ||
| 57 | // /** | 57 | // /** |
| 58 | // * @remark :图标获取器 | 58 | // * @remark :图标获取器 |
-
请 注册 或 登录 后发表评论