diff --git a/app/src/main/java/io/legado/app/ui/book/read/page/provider/ImageProvider.kt b/app/src/main/java/io/legado/app/ui/book/read/page/provider/ImageProvider.kt index c5407cb1b..0084bfc5f 100644 --- a/app/src/main/java/io/legado/app/ui/book/read/page/provider/ImageProvider.kt +++ b/app/src/main/java/io/legado/app/ui/book/read/page/provider/ImageProvider.kt @@ -31,7 +31,7 @@ object ImageProvider { indexCache[src] = bitmap } - fun getImage(book: Book, chapterIndex: Int, src: String, onUi: Boolean = false): Bitmap? { + fun getImage(book: Book, chapterIndex: Int, src: String, baseUrl: String, onUi: Boolean = false): Bitmap? { getCache(chapterIndex, src)?.let { return it } @@ -49,7 +49,7 @@ object ImageProvider { out.close() } } else if (!onUi) { - HttpHelper.getBytes(src, src)?.let { + HttpHelper.getBytes(src, baseUrl)?.let { FileUtils.createFileIfNotExist(vFile.absolutePath).writeBytes(it) } }