|
|
@ -43,11 +43,11 @@ object BookContent { |
|
|
|
) |
|
|
|
) |
|
|
|
Debug.log(bookSource.bookSourceUrl, "≡获取成功:${baseUrl}") |
|
|
|
Debug.log(bookSource.bookSourceUrl, "≡获取成功:${baseUrl}") |
|
|
|
Debug.log(bookSource.bookSourceUrl, body, state = 40) |
|
|
|
Debug.log(bookSource.bookSourceUrl, body, state = 40) |
|
|
|
val mNextChapterUrl = if (!nextChapterUrl.isNullOrEmpty()) { |
|
|
|
val mNextChapterUrl = if (nextChapterUrl.isNullOrEmpty()) { |
|
|
|
nextChapterUrl |
|
|
|
|
|
|
|
} else { |
|
|
|
|
|
|
|
appDb.bookChapterDao.getChapter(book.bookUrl, bookChapter.index + 1)?.url |
|
|
|
appDb.bookChapterDao.getChapter(book.bookUrl, bookChapter.index + 1)?.url |
|
|
|
?: appDb.bookChapterDao.getChapter(book.bookUrl, 0)?.url |
|
|
|
?: appDb.bookChapterDao.getChapter(book.bookUrl, 0)?.url |
|
|
|
|
|
|
|
} else { |
|
|
|
|
|
|
|
nextChapterUrl |
|
|
|
} |
|
|
|
} |
|
|
|
val content = StringBuilder() |
|
|
|
val content = StringBuilder() |
|
|
|
val nextUrlList = arrayListOf(baseUrl) |
|
|
|
val nextUrlList = arrayListOf(baseUrl) |
|
|
|