|
|
@ -132,7 +132,7 @@ object BookController { |
|
|
|
val contentProcessor = ContentProcessor.get(book.name, book.origin) |
|
|
|
val contentProcessor = ContentProcessor.get(book.name, book.origin) |
|
|
|
saveBookReadIndex(book, index) |
|
|
|
saveBookReadIndex(book, index) |
|
|
|
return returnData.setData( |
|
|
|
return returnData.setData( |
|
|
|
contentProcessor.getContent(book, chapter, content) |
|
|
|
contentProcessor.getContent(book, chapter, content, includeTitle = false) |
|
|
|
.joinToString("\n") |
|
|
|
.joinToString("\n") |
|
|
|
) |
|
|
|
) |
|
|
|
} |
|
|
|
} |
|
|
@ -145,7 +145,8 @@ object BookController { |
|
|
|
val contentProcessor = ContentProcessor.get(book.name, book.origin) |
|
|
|
val contentProcessor = ContentProcessor.get(book.name, book.origin) |
|
|
|
saveBookReadIndex(book, index) |
|
|
|
saveBookReadIndex(book, index) |
|
|
|
returnData.setData( |
|
|
|
returnData.setData( |
|
|
|
contentProcessor.getContent(book, chapter, content).joinToString("\n") |
|
|
|
contentProcessor.getContent(book, chapter, content, includeTitle = false) |
|
|
|
|
|
|
|
.joinToString("\n") |
|
|
|
) |
|
|
|
) |
|
|
|
} catch (e: Exception) { |
|
|
|
} catch (e: Exception) { |
|
|
|
returnData.setErrorMsg(e.msg) |
|
|
|
returnData.setErrorMsg(e.msg) |
|
|
|