From 579012632571c7cbd99aa60ca9764c90832cf0f3 Mon Sep 17 00:00:00 2001 From: kunfei Date: Fri, 2 Aug 2019 12:02:03 +0800 Subject: [PATCH] up --- app/src/main/java/io/legado/app/model/webbook/SourceDebug.kt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/src/main/java/io/legado/app/model/webbook/SourceDebug.kt b/app/src/main/java/io/legado/app/model/webbook/SourceDebug.kt index 7767fe73d..511b499bf 100644 --- a/app/src/main/java/io/legado/app/model/webbook/SourceDebug.kt +++ b/app/src/main/java/io/legado/app/model/webbook/SourceDebug.kt @@ -80,6 +80,8 @@ class SourceDebug(private val webBook: WebBook, callback: Callback) { if (searchBooks.isNotEmpty()) { printLog(debugSource, 1, "", showTime = false) infoDebug(BookHelp.toBook(searchBooks[0])) + } else { + printLog(debugSource, -1, "未获取到书籍") } } } @@ -110,6 +112,8 @@ class SourceDebug(private val webBook: WebBook, callback: Callback) { if (it.isNotEmpty()) { printLog(debugSource, 1, "", showTime = false) contentDebug(book, it[0]) + } else { + printLog(debugSource, -1, "目录列表为空") } } }