From df2cd9ae2b257d017f11919b75fc825266661dc4 Mon Sep 17 00:00:00 2001 From: fengyuecanzhu <1021300691@qq.com> Date: Fri, 21 Jan 2022 17:24:29 +0800 Subject: [PATCH] fix bug --- .../main/java/xyz/fycz/myreader/webapi/Third3SourceApi.kt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/app/src/main/java/xyz/fycz/myreader/webapi/Third3SourceApi.kt b/app/src/main/java/xyz/fycz/myreader/webapi/Third3SourceApi.kt index 8522a11..efb411a 100644 --- a/app/src/main/java/xyz/fycz/myreader/webapi/Third3SourceApi.kt +++ b/app/src/main/java/xyz/fycz/myreader/webapi/Third3SourceApi.kt @@ -8,6 +8,7 @@ import xyz.fycz.myreader.entity.SearchBookBean import xyz.fycz.myreader.greendao.entity.Book import xyz.fycz.myreader.greendao.entity.Chapter import xyz.fycz.myreader.model.mulvalmap.ConMVMap +import xyz.fycz.myreader.model.third3.NoStackTraceException import xyz.fycz.myreader.model.third3.webBook.WebBook import xyz.fycz.myreader.webapi.crawler.source.Third3Crawler import xyz.fycz.myreader.webapi.crawler.source.find.Third3FindCrawler @@ -95,6 +96,10 @@ object Third3SourceApi : AndroidViewModel(App.getApplication()) { fun findBook(url: String, fc: Third3FindCrawler, page: Int): Observable> { return Observable.create { emitter -> + if (!url.contains("{{page}}") && page > 1){ + emitter.onError(NoStackTraceException("没有下一页")) + return@create + } WebBook.exploreBook( scope, fc.source,