mirror of
https://github.com/gedoor/legado.git
synced 2024-08-30 09:23:26 +08:00
Merge remote-tracking branch 'origin/master'
This commit is contained in:
commit
216de91ce0
@ -13,7 +13,6 @@ import io.legado.app.help.CacheManager
|
|||||||
import io.legado.app.help.ContentProcessor
|
import io.legado.app.help.ContentProcessor
|
||||||
import io.legado.app.help.glide.ImageLoader
|
import io.legado.app.help.glide.ImageLoader
|
||||||
import io.legado.app.model.BookCover
|
import io.legado.app.model.BookCover
|
||||||
import io.legado.app.model.ReadBook
|
|
||||||
import io.legado.app.model.localBook.LocalBook
|
import io.legado.app.model.localBook.LocalBook
|
||||||
import io.legado.app.model.webBook.WebBook
|
import io.legado.app.model.webBook.WebBook
|
||||||
import io.legado.app.ui.book.read.page.provider.ImageProvider
|
import io.legado.app.ui.book.read.page.provider.ImageProvider
|
||||||
@ -201,10 +200,6 @@ object BookController {
|
|||||||
GSON.fromJsonObject<Book>(postData).getOrNull()?.let { book ->
|
GSON.fromJsonObject<Book>(postData).getOrNull()?.let { book ->
|
||||||
book.save()
|
book.save()
|
||||||
AppWebDav.uploadBookProgress(book)
|
AppWebDav.uploadBookProgress(book)
|
||||||
if (ReadBook.book?.bookUrl == book.bookUrl) {
|
|
||||||
ReadBook.book = book
|
|
||||||
ReadBook.durChapterIndex = book.durChapterIndex
|
|
||||||
}
|
|
||||||
return returnData.setData("")
|
return returnData.setData("")
|
||||||
}
|
}
|
||||||
return returnData.setErrorMsg("格式不对")
|
return returnData.setErrorMsg("格式不对")
|
||||||
@ -225,10 +220,6 @@ object BookController {
|
|||||||
book.durChapterTime = bookProgress.durChapterTime
|
book.durChapterTime = bookProgress.durChapterTime
|
||||||
appDb.bookDao.update(book)
|
appDb.bookDao.update(book)
|
||||||
AppWebDav.uploadBookProgress(bookProgress)
|
AppWebDav.uploadBookProgress(bookProgress)
|
||||||
if (ReadBook.book?.bookUrl == book.bookUrl) {
|
|
||||||
ReadBook.book = book
|
|
||||||
ReadBook.durChapterIndex = book.durChapterIndex
|
|
||||||
}
|
|
||||||
return returnData.setData("")
|
return returnData.setData("")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user