mirror of
https://github.com/gedoor/legado.git
synced 2024-08-30 09:23:26 +08:00
优化
This commit is contained in:
parent
346807155a
commit
431d726b65
@ -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…
Reference in New Issue
Block a user