|
|
@ -135,7 +135,8 @@ class Goods extends GoodsService |
|
|
|
], $setting['params']['auto']['showNum']); |
|
|
|
], $setting['params']['auto']['showNum']); |
|
|
|
$goodsList = $goodsList ? $goodsList->toArray()['data'] : []; |
|
|
|
$goodsList = $goodsList ? $goodsList->toArray()['data'] : []; |
|
|
|
} |
|
|
|
} |
|
|
|
if (empty($goodsList) && $goodsList->isEmpty()) { |
|
|
|
//if (empty($goodsList) && $goodsList->isEmpty()) { |
|
|
|
|
|
|
|
if (empty($goodsList)) { |
|
|
|
return []; |
|
|
|
return []; |
|
|
|
} |
|
|
|
} |
|
|
|
return $this->formatGoodsList($goodsList); |
|
|
|
return $this->formatGoodsList($goodsList); |
|
|
|