This commit is contained in:
Horis 2023-11-03 23:15:19 +08:00
parent a6a416b02c
commit 24f25f9b32

View File

@ -217,7 +217,7 @@ class ReadBookViewModel(application: Application) : BaseViewModel(application) {
AppWebDav.getBookProgress(book)
?: throw NoStackTraceException("没有进度")
}.onError {
AppLog.put("拉取阅读进度失败", it)
AppLog.put("拉取阅读进度失败${book.name}", it)
}.onSuccess { progress ->
if (progress.durChapterIndex < book.durChapterIndex ||
(progress.durChapterIndex == book.durChapterIndex
@ -226,7 +226,7 @@ class ReadBookViewModel(application: Application) : BaseViewModel(application) {
alertSync?.invoke(progress)
} else {
ReadBook.setProgress(progress)
AppLog.put("自动同步阅读进度成功")
AppLog.put("自动同步阅读进度成功${book.name}${progress.durChapterTitle}")
}
}