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; } }