Procházet zdrojové kódy

首页报错优化

liude před 1 rokem
rodič
revize
41a75959da

+ 3 - 3
src/main/java/com/chelvc/cloud/maintain/controller/IndexController.java

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