|
|
@ -972,14 +972,18 @@ class ReadBookActivity : BaseReadBookActivity(), |
|
|
|
throw NoStackTraceException("no pay action") |
|
|
|
throw NoStackTraceException("no pay action") |
|
|
|
} |
|
|
|
} |
|
|
|
JsUtils.evalJs(payAction) { |
|
|
|
JsUtils.evalJs(payAction) { |
|
|
|
|
|
|
|
it["java"] = source |
|
|
|
|
|
|
|
it["source"] = source |
|
|
|
it["book"] = book |
|
|
|
it["book"] = book |
|
|
|
it["chapter"] = chapter |
|
|
|
it["chapter"] = chapter |
|
|
|
} |
|
|
|
} |
|
|
|
}.onSuccess { |
|
|
|
}.onSuccess { |
|
|
|
startActivity<WebViewActivity> { |
|
|
|
if (it.isNotBlank()) { |
|
|
|
putExtra("title", getString(R.string.chapter_pay)) |
|
|
|
startActivity<WebViewActivity> { |
|
|
|
putExtra("url", it) |
|
|
|
putExtra("title", getString(R.string.chapter_pay)) |
|
|
|
IntentData.put(it, ReadBook.bookSource?.getHeaderMap(true)) |
|
|
|
putExtra("url", it) |
|
|
|
|
|
|
|
IntentData.put(it, ReadBook.bookSource?.getHeaderMap(true)) |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
}.onError { |
|
|
|
}.onError { |
|
|
|
toastOnUi(it.localizedMessage) |
|
|
|
toastOnUi(it.localizedMessage) |
|
|
@ -1261,4 +1265,4 @@ class ReadBookActivity : BaseReadBookActivity(), |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|