|
|
@ -135,7 +135,6 @@ class CheckSourceService : BaseService() { |
|
|
|
} |
|
|
|
} |
|
|
|
//校验发现 |
|
|
|
//校验发现 |
|
|
|
if (CheckSource.checkDiscovery) { |
|
|
|
if (CheckSource.checkDiscovery) { |
|
|
|
if (books.isEmpty()) { |
|
|
|
|
|
|
|
val exs = source.exploreKinds |
|
|
|
val exs = source.exploreKinds |
|
|
|
var url: String? = null |
|
|
|
var url: String? = null |
|
|
|
for (ex in exs) { |
|
|
|
for (ex in exs) { |
|
|
@ -144,7 +143,7 @@ class CheckSourceService : BaseService() { |
|
|
|
break |
|
|
|
break |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
if (url.isNullOrBlank()) { |
|
|
|
if (source.hasGroup("搜索失效") && url.isNullOrBlank()) { |
|
|
|
throw NoStackTraceException("搜索内容为空并且没有发现") |
|
|
|
throw NoStackTraceException("搜索内容为空并且没有发现") |
|
|
|
} |
|
|
|
} |
|
|
|
books = WebBook.exploreBookAwait(this, source, url) |
|
|
|
books = WebBook.exploreBookAwait(this, source, url) |
|
|
@ -152,7 +151,6 @@ class CheckSourceService : BaseService() { |
|
|
|
throw NoStackTraceException("发现书籍为空") |
|
|
|
throw NoStackTraceException("发现书籍为空") |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
//校验详情 |
|
|
|
//校验详情 |
|
|
|
if (CheckSource.checkInfo) { |
|
|
|
if (CheckSource.checkInfo) { |
|
|
|
var book = books.first().toBook() |
|
|
|
var book = books.first().toBook() |
|
|
|