pull/2292/head 3.22.091613
kunfei 2 years ago
parent caa28a43a0
commit e7041d19df
  1. 6
      app/src/main/java/io/legado/app/ui/association/OnLineImportViewModel.kt

@ -8,7 +8,7 @@ import io.legado.app.help.http.newCallResponseBody
import io.legado.app.help.http.okHttpClient
import io.legado.app.help.http.text
import io.legado.app.utils.FileUtils
import io.legado.app.utils.externalFiles
import io.legado.app.utils.externalCache
import okhttp3.MediaType.Companion.toMediaType
import splitties.init.appCtx
@ -78,8 +78,8 @@ class OnLineImportViewModel(app: Application) : BaseAssociationViewModel(app) {
else -> {
val inputStream = rs.byteStream()
val file = FileUtils.createFileIfNotExist(
appCtx.externalFiles,
"book_cache",
appCtx.externalCache,
"download",
"scheme_import_cache.json"
)
file.outputStream().use { out ->

Loading…
Cancel
Save