|
@@ -81,7 +81,9 @@ class Product extends Base |
|
@@ -81,7 +81,9 @@ 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
|
- $value['url'] = getImageUrl($value['url']);
|
84
|
+ if(!empty($value['url'])){
|
|
|
|
85
|
+ $value['url'] = getImageUrl($value['url']);
|
|
|
|
86
|
+ }
|
|
85
|
}
|
87
|
}
|
|
86
|
return $value;
|
88
|
return $value;
|
|
87
|
}
|
89
|
}
|
|
@@ -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){
|
|
94
|
- $v['url'] = getImageUrl($v['url']);
|
96
|
+ if(!empty($v['url'])){
|
|
|
|
97
|
+ $v['url'] = getImageUrl($v['url']);
|
|
|
|
98
|
+ }
|
|
95
|
$value[$k] = $v;
|
99
|
$value[$k] = $v;
|
|
96
|
}
|
100
|
}
|
|
97
|
}
|
101
|
}
|