diff --git a/src/main/java/com/peanut/modules/book/controller/BookForumArticlesServiceController.java b/src/main/java/com/peanut/modules/book/controller/BookForumArticlesServiceController.java index 7e668be0..667f6a61 100644 --- a/src/main/java/com/peanut/modules/book/controller/BookForumArticlesServiceController.java +++ b/src/main/java/com/peanut/modules/book/controller/BookForumArticlesServiceController.java @@ -82,8 +82,8 @@ public class BookForumArticlesServiceController { b.setCommentNum(commentcount); } - if(bookForumArticlesEntityPage.getTotal()>20){ - bookForumArticlesEntityPage.setTotal(20); + if(page>2){ + bookForumArticlesEntityPage.setRecords(null); } return R.ok().put("page",bookForumArticlesEntityPage); @@ -118,8 +118,8 @@ public class BookForumArticlesServiceController { b.setCommentNum(commentcount); } - if(bookForumArticlesEntityPage.getTotal()>20){ - bookForumArticlesEntityPage.setTotal(20); + if(page>2){ + bookForumArticlesEntityPage.setRecords(null); }