url参数添加一个webJs,在webView里执行获取内容,直到内容不为空

pull/1298/head
gedoor 3 years ago
parent 4691d250dc
commit 237ec3d404
  1. 2
      app/src/main/java/io/legado/app/model/analyzeRule/AnalyzeUrl.kt

@ -333,7 +333,7 @@ class AnalyzeUrl(
val params = AjaxWebView.AjaxParams(url) val params = AjaxWebView.AjaxParams(url)
params.headerMap = headerMap params.headerMap = headerMap
params.requestMethod = method params.requestMethod = method
params.javaScript = jsStr params.javaScript = webJs ?: jsStr
params.sourceRegex = sourceRegex params.sourceRegex = sourceRegex
params.postData = body?.toByteArray() params.postData = body?.toByteArray()
params.tag = source?.getStoreUrl() params.tag = source?.getStoreUrl()

Loading…
Cancel
Save