书源校验:更新逻辑

This commit is contained in:
Xwite
2022-02-02 21:33:07 +08:00
parent eee0cf1f1b
commit a66bf6f436
@@ -143,8 +143,12 @@ class CheckSourceService : BaseService() {
break
}
}
if (source.hasGroup("搜索失效") && url.isNullOrBlank()) {
throw NoStackTraceException("搜索内容为空并且没有发现")
if (url.isNullOrBlank()) {
if (source.hasGroup("搜索失效")) {
throw NoStackTraceException("搜索内容为空并且没有发现")
} else {
throw NoStackTraceException("没有发现")
}
}
books = WebBook.exploreBookAwait(this, source, url)
if (books.isEmpty()) {