diff --git a/app/Controller/v3/CategoryController.php b/app/Controller/v3/CategoryController.php index 9947218..0330c4f 100644 --- a/app/Controller/v3/CategoryController.php +++ b/app/Controller/v3/CategoryController.php @@ -40,7 +40,7 @@ class CategoryController extends BaseController $banners = $this->bannerService->all(Banner::TYPE_APPLET_INDEX, $gmarket_id); foreach ($category as $key => &$item) { $hot_types = []; - if(count($item['goods_types']) > 4){ + if(count($item['goods_types']) > 2){ $hot_types = array_slice($item['goods_types'],0,2); }