lqmac 7 months ago
parent 89f8c55343
commit 5f6f550bf9
  1. 3
      app/api/service/Goods.php

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

Loading…
Cancel
Save