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); }