From 74f2e3843c0ecea424e1d17d61b2be5cb5e9cbc3 Mon Sep 17 00:00:00 2001 From: wang hou sheng <76928547+wanghousheng@users.noreply.github.com> Date: Thu, 18 Apr 2024 00:26:08 +0800 Subject: [PATCH] 1 --- app/api/model/Goods.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/api/model/Goods.php b/app/api/model/Goods.php index 95afd3f6..30fd4594 100644 --- a/app/api/model/Goods.php +++ b/app/api/model/Goods.php @@ -254,7 +254,7 @@ class Goods extends GoodsModel ->where(['category_id' => $param['category_id']]) ->whereIn('goods_id', $goods_ids) ->column('distinct goods_id'); - if ($cate_goods_id) { + if (!$cate_goods_id) { return $list; } }