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,