Horis 3 tahun lalu
induk
melakukan
73edd68233
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  1. 1 1
      app/src/main/java/io/legado/app/help/book/BookHelp.kt

+ 1 - 1
app/src/main/java/io/legado/app/help/book/BookHelp.kt

@@ -171,7 +171,7 @@ object BookHelp {
             ImageUtils.decode(
             ImageUtils.decode(
                 src, bytes, isCover = false, bookSource, book
                 src, bytes, isCover = false, bookSource, book
             )?.let {
             )?.let {
-                if (!checkImage(bytes)) {
+                if (!checkImage(it)) {
                     throw NoStackTraceException("数据异常")
                     throw NoStackTraceException("数据异常")
                 }
                 }
                 FileUtils.createFileIfNotExist(
                 FileUtils.createFileIfNotExist(