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