|
@@ -99,7 +99,7 @@ public class IndexController {
|
|
|
|
|
|
// 加载推荐分类列表
|
|
|
try {
|
|
|
- List<CategoryDTO> categories = this.categoryService.listRecommendCategories(15);
|
|
|
+ List<CategoryDTO> categories = this.categoryService.listRecommendCategories(param.getPageSize().getCatPageSize());
|
|
|
index.setCategories(CategoryCopier.INSTANCE.copying(categories));
|
|
|
} catch (Exception e) {
|
|
|
log.error("Load recommend categories failed", e);
|
|
@@ -107,7 +107,7 @@ public class IndexController {
|
|
|
|
|
|
// 加载附近商家列表
|
|
|
try {
|
|
|
- List<MerchantDTO> merchants = this.merchantService.listNearbyMerchants(param, 4);
|
|
|
+ List<MerchantDTO> merchants = this.merchantService.listNearbyMerchants(param, param.getPageSize().getNearPageSize());
|
|
|
index.setNears(MerchantCopier.INSTANCE.copying(merchants));
|
|
|
} catch (Exception e) {
|
|
|
log.error("Load nearby merchants failed", e);
|
|
@@ -115,7 +115,7 @@ public class IndexController {
|
|
|
|
|
|
// 加载推荐商家列表
|
|
|
try {
|
|
|
- List<MerchantDTO> merchants = this.merchantService.listRecommendMerchants(param, 4);
|
|
|
+ List<MerchantDTO> merchants = this.merchantService.listRecommendMerchants(param, param.getPageSize().getRecPageSize());
|
|
|
index.setRecommends(MerchantCopier.INSTANCE.copying(merchants));
|
|
|
} catch (Exception e) {
|
|
|
log.error("Load recommend merchants failed", e);
|