Merge branch 'develop' of http://47.244.231.31:8099/zhl/globalso-v6 into develop
正在显示
1 个修改的文件
包含
1 行增加
和
12 行删除
| @@ -41,18 +41,7 @@ class Product extends Base | @@ -41,18 +41,7 @@ class Product extends Base | ||
| 41 | $value['url'] = $this->getImageUrl($value['url']); | 41 | $value['url'] = $this->getImageUrl($value['url']); |
| 42 | return $value; | 42 | return $value; |
| 43 | } | 43 | } |
| 44 | - | ||
| 45 | -// public function setGalleryAttribute($value){ | ||
| 46 | -// $this->attributes['gallery'] = Arr::a2s($value); | ||
| 47 | -// } | ||
| 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 | - } | 44 | + |
| 56 | 45 | ||
| 57 | // /** | 46 | // /** |
| 58 | // * @remark :图标获取器 | 47 | // * @remark :图标获取器 |
-
请 注册 或 登录 后发表评论