From f0b87e639a43c477898543b9f8c282cee7294068 Mon Sep 17 00:00:00 2001 From: devil_gong Date: Mon, 22 Jul 2019 15:00:31 +0800 Subject: [PATCH] =?UTF-8?q?=E9=A6=96=E9=A1=B5=E6=A5=BC=E5=B1=82=E6=95=B0?= =?UTF-8?q?=E6=8D=AE=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/service/GoodsService.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/application/service/GoodsService.php b/application/service/GoodsService.php index 78b814dcf..6b03dea9c 100755 --- a/application/service/GoodsService.php +++ b/application/service/GoodsService.php @@ -186,7 +186,7 @@ class GoodsService foreach($goods_category as &$v) { $category_ids = self::GoodsCategoryItemsIds([$v['id']], 1); - $goods = self::CategoryGoodsList(['where'=>['gci.category_id'=>$category_ids, 'is_home_recommended'=>1], 'm'=>0, 'n'=>8, 'field'=>'g.id,g.title,g.title_color,g.images,g.home_recommended_images,g.original_price,g.price,g.min_price,g.max_price,g.inventory,g.buy_min_number,g.buy_max_number']); + $goods = self::CategoryGoodsList(['where'=>['gci.category_id'=>$category_ids, 'g.is_home_recommended'=>1, 'g.is_shelves'=>1], 'm'=>0, 'n'=>8, 'field'=>'g.id,g.title,g.title_color,g.images,g.home_recommended_images,g.original_price,g.price,g.min_price,g.max_price,g.inventory,g.buy_min_number,g.buy_max_number']); $v['goods'] = $goods['data']; } }