@ -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()