|
|
@@ -170,6 +170,10 @@ class GoodsService extends BaseService
|
|
|
$info['detail_img'] = $info['detail_img']? json_decode($info['detail_img'], true) : [];
|
|
|
}
|
|
|
|
|
|
+ if(empty($info['detail_img'])){
|
|
|
+ $info['detail_img'] = [$info['main_img']];
|
|
|
+ }
|
|
|
+
|
|
|
$supplyList = config('goods.supplyList');
|
|
|
$info['supply_name'] = isset($supplyList[$info['supply_type']]) ? $supplyList[$info['supply_type']] : '';
|
|
|
|