api获取不到目录时自动刷新目录

pull/1123/head^2
gedoor 3 years ago
parent 5a7c9e0e9c
commit ee18d19cfe
  1. 3
      app/src/main/java/io/legado/app/api/controller/BookController.kt

@ -108,6 +108,9 @@ object BookController {
return returnData.setErrorMsg("参数url不能为空,请指定书籍地址")
}
val chapterList = appDb.bookChapterDao.getChapterList(bookUrl)
if (chapterList.isEmpty()) {
return refreshToc(parameters)
}
return returnData.setData(chapterList)
}

Loading…
Cancel
Save