pull/2287/head
Horis 2 years ago
parent 346807155a
commit 431d726b65
  1. 5
      app/src/main/java/io/legado/app/help/BookHelp.kt
  2. 3
      app/src/main/java/io/legado/app/ui/association/VerificationCodeActivity.kt

@ -139,8 +139,11 @@ object BookHelp {
var bytes = analyzeUrl.getByteArrayAwait()
//某些图片被加密,需要进一步解密
bookSource?.getContentRule()?.imageDecode?.let {
if (it.isBlank()) {
return@let
}
kotlin.runCatching {
bookSource?.evalJS(it) {
bookSource.evalJS(it) {
put("book", book)
put("result", bytes)
put("src", src)

@ -17,8 +17,9 @@ class VerificationCodeActivity :
override fun onActivityCreated(savedInstanceState: Bundle?) {
intent.getStringExtra("imageUrl")?.let {
val sourceOrigin = intent.getStringExtra("sourceOrigin")
val sourceName = intent.getStringExtra("sourceName")
showDialogFragment(
VerificationCodeDialog(it, sourceOrigin)
VerificationCodeDialog(it, sourceOrigin, sourceName)
)
} ?: finish()
}

Loading…
Cancel
Save