作者 lyh

gx

... ... @@ -41,18 +41,7 @@ class Product extends Base
$value['url'] = $this->getImageUrl($value['url']);
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 :图标获取器
... ...