mirror of
https://github.com/201206030/novel.git
synced 2025-04-27 07:30:50 +00:00
屏蔽app广告
This commit is contained in:
parent
569642df4a
commit
619d0530fb
@ -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);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user