正在显示
1 个修改的文件
包含
21 行增加
和
21 行删除
| @@ -42,28 +42,28 @@ class Product extends Base | @@ -42,28 +42,28 @@ class Product extends Base | ||
| 42 | return $value; | 42 | return $value; |
| 43 | } | 43 | } |
| 44 | 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 | - } | 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 | +// } | ||
| 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 setIconAttribute($value){ | ||
| 65 | - $this->attributes['icon'] = Arr::a2s($value); | ||
| 66 | - } | 57 | +// /** |
| 58 | +// * @remark :图标获取器 | ||
| 59 | +// * @name :getGalleryAttribute | ||
| 60 | +// * @author :lyh | ||
| 61 | +// * @method :post | ||
| 62 | +// * @time :2023/7/21 11:11 | ||
| 63 | +// */ | ||
| 64 | +// public function setIconAttribute($value){ | ||
| 65 | +// $this->attributes['icon'] = Arr::a2s($value); | ||
| 66 | +// } | ||
| 67 | 67 | ||
| 68 | // /** | 68 | // /** |
| 69 | // * @remark :图标获取器 | 69 | // * @remark :图标获取器 |
-
请 注册 或 登录 后发表评论