优化规则解析

pull/423/head
gedoor 4 years ago
parent 9b1c700ab5
commit f5c919302d
  1. 7
      app/src/main/java/io/legado/app/model/analyzeRule/AnalyzeByJSonPath.kt

@ -13,10 +13,9 @@ class AnalyzeByJSonPath {
private lateinit var ctx: ReadContext
fun parse(json: Any): AnalyzeByJSonPath {
ctx = if (json is String) {
JsonPath.parse(json)
} else {
JsonPath.parse(json)
ctx = when (json) {
is String -> JsonPath.parse(json)
else -> JsonPath.parse(json)
}
return this
}

Loading…
Cancel
Save