|
|
@@ -232,10 +232,10 @@ class IndexController extends HomeBaseController
|
|
|
$datas = RedisService::get($cacheKey.$page);
|
|
|
|
|
|
if(empty($datas)){
|
|
|
- $dataList = CategoryService::getCates(500, -1, "enname as id, catname as title, '1' as 'type'");
|
|
|
- $brands = JiamengService::getList(['status'=> 1], "j.id,j.title, '2' as 'type'", 1000);
|
|
|
+ $dataList = CategoryService::getCates(1000, -1, "enname as id, catname as title, '1' as 'type'");
|
|
|
+ $brands = JiamengService::getList(['status'=> 1], "j.id,j.title, '2' as 'type'", 3000);
|
|
|
$brands = $brands? $brands->toArray() : [];
|
|
|
- $news = NewsService::getList(['status'=> 1], 1000,"id,title, '3' as 'type'");
|
|
|
+ $news = NewsService::getList(['status'=> 1], 3000,"id,title, '3' as 'type'");
|
|
|
$news = $news? $news->toArray() : [];
|
|
|
$dataList = isset($brands['data']) && $brands['data']? array_merge($dataList, $brands['data']) : $dataList;
|
|
|
$dataList = isset($news['data']) && $news['data']? array_merge($dataList, $news['data']) : $dataList;
|