|
|
@ -60,17 +60,15 @@ class SourceDebug(private val webBook: WebBook, callback: Callback) { |
|
|
|
fun startDebug(key: String) { |
|
|
|
fun startDebug(key: String) { |
|
|
|
cancelDebug() |
|
|
|
cancelDebug() |
|
|
|
startTime = System.currentTimeMillis() |
|
|
|
startTime = System.currentTimeMillis() |
|
|
|
with(webBook) { |
|
|
|
if (key.isAbsUrl()) { |
|
|
|
if (key.isAbsUrl()) { |
|
|
|
val book = Book() |
|
|
|
val book = Book() |
|
|
|
book.origin = webBook.sourceUrl |
|
|
|
book.origin = sourceUrl |
|
|
|
book.bookUrl = key |
|
|
|
book.bookUrl = key |
|
|
|
printLog(webBook.sourceUrl, 1, "开始访问$key") |
|
|
|
printLog(sourceUrl, 1, "开始访问$key") |
|
|
|
infoDebug(book) |
|
|
|
infoDebug(book) |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
printLog(webBook.sourceUrl, 1, "开始搜索关键字$key") |
|
|
|
printLog(sourceUrl, 1, "开始搜索关键字$key") |
|
|
|
searchDebug(key) |
|
|
|
searchDebug(key) |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|