mirror of
https://github.com/201206030/novel.git
synced 2025-06-24 08:06:39 +00:00
解决笔趣塔内容页规则改变导致章节分页的问题
This commit is contained in:
@ -142,11 +142,12 @@ public class BiquCrawlSource extends BaseHtmlCrawlSource {
|
||||
|
||||
|
||||
//查询章节内容
|
||||
String body3 = RestTemplateUtil.getBodyByUtf8(contentUrl);
|
||||
String body3 = RestTemplateUtil.getBodyByUtf8(contentUrl.replace("//m.","//www."));
|
||||
if (body3 != null) {
|
||||
String start = "『章节错误,点此举报』";
|
||||
String end = "『加入书签,方便阅读』";
|
||||
String content = body3.substring(body3.indexOf(start) + start.length(), body3.indexOf(end));
|
||||
String start = "id=\"content\">";
|
||||
String end = "<script>";
|
||||
String content = body3.substring(body3.indexOf(start) + start.length());
|
||||
content = "<div class=\"article-content font16\" id=\"ChapterBody\" data-class=\"font16\">"+content.substring(0,content.indexOf(end))+"</div>";
|
||||
//TODO插入章节目录和章节内容
|
||||
BookIndex bookIndex = new BookIndex();
|
||||
bookIndex.setIndexName(indexName);
|
||||
|
@ -434,8 +434,8 @@
|
||||
<div id="chaptercontent" class="Readarea ReadAjax_content screen_container"
|
||||
style="color: rgb(0, 0, 0); font-size: 25px;">
|
||||
<p style="width:100%;text-alight:center; overflow: auto;-webkit-overflow-scrolling:touch;" >
|
||||
<a
|
||||
href="javascript:void(0);" th:utext="${bookContent.content}"></a></p>
|
||||
<span
|
||||
th:utext="${bookContent.content}"></span></p>
|
||||
</div>
|
||||
<div class="indexDiv" style="height: 42px;line-height: 42px;text-align:center;background: #f2f2f2">
|
||||
|
||||
|
Reference in New Issue
Block a user