|
@@ -81,8 +81,10 @@ class Product extends Base |
|
@@ -81,8 +81,10 @@ class Product extends Base |
|
81
|
public function getThumbAttribute($value){
|
81
|
public function getThumbAttribute($value){
|
|
82
|
if(!empty($value)){
|
82
|
if(!empty($value)){
|
|
83
|
$value = json_decode($value,true);
|
83
|
$value = json_decode($value,true);
|
|
|
|
84
|
+ if(!empty($value['url'])){
|
|
84
|
$value['url'] = getImageUrl($value['url']);
|
85
|
$value['url'] = getImageUrl($value['url']);
|
|
85
|
}
|
86
|
}
|
|
|
|
87
|
+ }
|
|
86
|
return $value;
|
88
|
return $value;
|
|
87
|
}
|
89
|
}
|
|
88
|
|
90
|
|
|
@@ -91,7 +93,9 @@ class Product extends Base |
|
@@ -91,7 +93,9 @@ class Product extends Base |
|
91
|
if(!empty($value)){
|
93
|
if(!empty($value)){
|
|
92
|
$value = Arr::s2a($value);
|
94
|
$value = Arr::s2a($value);
|
|
93
|
foreach ($value as $k => $v){
|
95
|
foreach ($value as $k => $v){
|
|
|
|
96
|
+ if(!empty($v['url'])){
|
|
94
|
$v['url'] = getImageUrl($v['url']);
|
97
|
$v['url'] = getImageUrl($v['url']);
|
|
|
|
98
|
+ }
|
|
95
|
$value[$k] = $v;
|
99
|
$value[$k] = $v;
|
|
96
|
}
|
100
|
}
|
|
97
|
}
|
101
|
}
|