作者 lyh

gx

... ... @@ -42,17 +42,6 @@ class Product extends Base
return $value;
}
// public function setGalleryAttribute($value){
// $this->attributes['gallery'] = Arr::a2s($value);
// }
//
public function getGalleryAttribute($value){
$value = Arr::s2a($value);
foreach ($value as &$v){
$v['url'] = $this->getImageUrl($v['url']);
}
return $value;
}
// /**
// * @remark :图标获取器
... ...