|
...
|
...
|
@@ -81,8 +81,10 @@ class Product extends Base |
|
|
|
public function getThumbAttribute($value){
|
|
|
|
if(!empty($value)){
|
|
|
|
$value = json_decode($value,true);
|
|
|
|
if(!empty($value['url'])){
|
|
|
|
$value['url'] = getImageUrl($value['url']);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return $value;
|
|
|
|
}
|
|
|
|
|
|
...
|
...
|
@@ -91,7 +93,9 @@ class Product extends Base |
|
|
|
if(!empty($value)){
|
|
|
|
$value = Arr::s2a($value);
|
|
|
|
foreach ($value as $k => $v){
|
|
|
|
if(!empty($v['url'])){
|
|
|
|
$v['url'] = getImageUrl($v['url']);
|
|
|
|
}
|
|
|
|
$value[$k] = $v;
|
|
|
|
}
|
|
|
|
}
|
...
|
...
|
|