From 419d7a971bb2195f4f2f9656d5b9d9add02426ff Mon Sep 17 00:00:00 2001 From: xiongxiaoyang <773861846@qq.com> Date: Thu, 11 Feb 2021 18:03:27 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E9=A6=96=E9=A1=B5=E6=98=BE?= =?UTF-8?q?=E7=A4=BA=EF=BC=88=E4=BF=AE=E6=94=B9=E5=91=A8=E6=8E=A8=E5=B0=8F?= =?UTF-8?q?=E8=AF=B4=E6=95=B0=E9=87=8F=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/java/com/java2nb/novel/core/utils/Constants.java | 2 +- .../java/com/java2nb/novel/service/impl/BookServiceImpl.java | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/novel-front/src/main/java/com/java2nb/novel/core/utils/Constants.java b/novel-front/src/main/java/com/java2nb/novel/core/utils/Constants.java index 7736233..f150cb2 100644 --- a/novel-front/src/main/java/com/java2nb/novel/core/utils/Constants.java +++ b/novel-front/src/main/java/com/java2nb/novel/core/utils/Constants.java @@ -29,7 +29,7 @@ public class Constants { /** * 首页设置的小说数量 * */ - public static final int INDEX_BOOK_SETTING_NUM = 32; + public static final int INDEX_BOOK_SETTING_NUM = 31; /** * 累积的最大点击量 diff --git a/novel-front/src/main/java/com/java2nb/novel/service/impl/BookServiceImpl.java b/novel-front/src/main/java/com/java2nb/novel/service/impl/BookServiceImpl.java index 9753c1a..a24b8ae 100644 --- a/novel-front/src/main/java/com/java2nb/novel/service/impl/BookServiceImpl.java +++ b/novel-front/src/main/java/com/java2nb/novel/service/impl/BookServiceImpl.java @@ -126,9 +126,9 @@ public class BookServiceImpl implements BookService { type = 0; } else if (i < 14) { type = 1; - } else if (i < 20) { + } else if (i < 19) { type = 2; - } else if (i < 26) { + } else if (i < 25) { type = 3; } else { type = 4;