优化
This commit is contained in:
1 parent
508a99eef1
commit
fe1bb8699f
1 file changed
+1
@@ -498,6 +498,7 @@ object ReadBook : CoroutineScope by MainScope() {
|
||||
fun upToc() {
|
||||
val bookSource = bookSource ?: return
|
||||
val book = book ?: return
|
||||
if (!book.canUpdate) return
|
||||
if (System.currentTimeMillis() - book.lastCheckTime < 600000) return
|
||||
book.lastCheckTime = System.currentTimeMillis()
|
||||
WebBook.getChapterList(this, bookSource, book).onSuccess(IO) { cList ->
|
||||
|
||||
Reference in new issue
Block a user