From 83b120dd024f796a590e15da56e2c3dd5d29402a Mon Sep 17 00:00:00 2001 From: Xwite <1797350009@qq.com> Date: Thu, 3 Mar 2022 07:59:20 +0800 Subject: [PATCH] fix --- app/src/main/java/io/legado/app/api/controller/BookController.kt | 1 + 1 file changed, 1 insertion(+) diff --git a/app/src/main/java/io/legado/app/api/controller/BookController.kt b/app/src/main/java/io/legado/app/api/controller/BookController.kt index 320b56733..ef73cfe4c 100644 --- a/app/src/main/java/io/legado/app/api/controller/BookController.kt +++ b/app/src/main/java/io/legado/app/api/controller/BookController.kt @@ -75,6 +75,7 @@ object BookController { val book = appDb.bookDao.getBook(bookUrl) ?: return returnData.setErrorMsg("bookUrl不对:${bookUrl}") val src = parameters["path"]?.firstOrNull() + ?: return returnData.setErrorMsg("图片链接为空") val vFile = BookHelp.getImage(book, src) if (!vFile.exists()) { val bookSource = appDb.bookSourceDao.getBookSource(book.origin)