From 5f6f550bf9f83e0c00096c1561698ee1618d03b0 Mon Sep 17 00:00:00 2001 From: lqmac Date: Wed, 17 Apr 2024 23:16:53 +0800 Subject: [PATCH] 1 --- app/api/service/Goods.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/api/service/Goods.php b/app/api/service/Goods.php index df80f6c3..341c0041 100644 --- a/app/api/service/Goods.php +++ b/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);