From d4ea32c6d7274f39d50a9dc69e45120e7424d916 Mon Sep 17 00:00:00 2001 From: wangjinlei <751475802@qq.com> Date: Tue, 6 Feb 2024 16:26:55 +0800 Subject: [PATCH] 1 --- .../modules/book/controller/BookChapterContentController.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/peanut/modules/book/controller/BookChapterContentController.java b/src/main/java/com/peanut/modules/book/controller/BookChapterContentController.java index c6ccc0bf..aadd55f5 100644 --- a/src/main/java/com/peanut/modules/book/controller/BookChapterContentController.java +++ b/src/main/java/com/peanut/modules/book/controller/BookChapterContentController.java @@ -345,7 +345,7 @@ public class BookChapterContentController { UserEbookBuyEntity userEbookBuyEntity = userEbookBuyService.getBaseMapper().selectOne(new LambdaQueryWrapper(). eq(UserEbookBuyEntity::getUserId, userId).eq(UserEbookBuyEntity::getBookId, bookId)); - if (chapter_info.getNumber() > book_info.getFreeChapterCount() && userEbookBuyEntity == null) { + if (book_info.getBookType()==0&&chapter_info.getNumber() > book_info.getFreeChapterCount() && userEbookBuyEntity == null) { Integer productByBookId = shopProductBookService.getProductByBookId(bookId); return R.ok().put("jq", false).put("product", productByBookId); }