Merge branch 'develop' of http://47.244.231.31:8099/zhl/globalso-v6 into develop
正在显示
1 个修改的文件
包含
14 行增加
和
14 行删除
| @@ -54,20 +54,20 @@ class Product extends Base | @@ -54,20 +54,20 @@ class Product extends Base | ||
| 54 | // $this->attributes['icon'] = Arr::a2s($value); | 54 | // $this->attributes['icon'] = Arr::a2s($value); |
| 55 | // } | 55 | // } |
| 56 | 56 | ||
| 57 | -// /** | ||
| 58 | -// * @remark :图标获取器 | ||
| 59 | -// * @name :getGalleryAttribute | ||
| 60 | -// * @author :lyh | ||
| 61 | -// * @method :post | ||
| 62 | -// * @time :2023/7/21 11:11 | ||
| 63 | -// */ | ||
| 64 | -// public function getIconAttribute($value){ | ||
| 65 | -// $value = Arr::s2a($value); | ||
| 66 | -// foreach ($value as &$v){ | ||
| 67 | -// $v = $this->getImageUrl($v); | ||
| 68 | -// } | ||
| 69 | -// return $value; | ||
| 70 | -// } | 57 | + /** |
| 58 | + * @remark :图标获取器 | ||
| 59 | + * @name :getGalleryAttribute | ||
| 60 | + * @author :lyh | ||
| 61 | + * @method :post | ||
| 62 | + * @time :2023/7/21 11:11 | ||
| 63 | + */ | ||
| 64 | + public function getIconAttribute($value){ | ||
| 65 | + $value = Arr::s2a($value); | ||
| 66 | + foreach ($value as &$v){ | ||
| 67 | + $v = $this->getImageUrl($v); | ||
| 68 | + } | ||
| 69 | + return $value; | ||
| 70 | + } | ||
| 71 | 71 | ||
| 72 | public function setAttrsAttribute($value){ | 72 | public function setAttrsAttribute($value){ |
| 73 | $this->attributes['attrs'] = Arr::a2s($value); | 73 | $this->attributes['attrs'] = Arr::a2s($value); |
-
请 注册 或 登录 后发表评论