屏蔽app广告

This commit is contained in:
xiongxiaoyang 2019-11-18 19:17:44 +08:00
parent 569642df4a
commit 619d0530fb

View File

@ -242,6 +242,7 @@ public class BookController {
List<Integer> preAndNextIndexNum = bookService.queryPreAndNextIndexNum(bookId, indexNum); List<Integer> preAndNextIndexNum = bookService.queryPreAndNextIndexNum(bookId, indexNum);
modelMap.put("nextIndexNum", preAndNextIndexNum.get(0)); modelMap.put("nextIndexNum", preAndNextIndexNum.get(0));
modelMap.put("preIndexNum", preAndNextIndexNum.get(1)); modelMap.put("preIndexNum", preAndNextIndexNum.get(1));
bookContent.setContent(bookContent.getContent().replaceAll("<div[^>]+app\\.html[^>]+>\\s*<div[^>]+>\\s*<div[^>]+>[^<]+</div>\\s*<div[^>]+>[^<]+<span[^>]+>>>[^<]+<<</span>\\s*</div>\\s*</div>\\s*</div>",""));
modelMap.put("bookContent", bookContent); modelMap.put("bookContent", bookContent);
modelMap.put("indexName", indexName); modelMap.put("indexName", indexName);
Book basicBook = bookService.queryBaseInfo(bookId); Book basicBook = bookService.queryBaseInfo(bookId);