pull/48/head
kunfei 5 years ago
parent c7d858c1d7
commit 5ef3635d86
  1. 4
      app/src/main/java/io/legado/app/model/analyzeRule/AnalyzeRule.kt

@ -292,7 +292,7 @@ class AnalyzeRule(var book: BaseBook? = null) {
private fun putRule(map: Map<String, String>) { private fun putRule(map: Map<String, String>) {
for ((key, value) in map) { for ((key, value) in map) {
getString(value)?.let { getString(value)?.let {
book?.putVariable(key, it) put(key, it)
} }
} }
} }
@ -573,7 +573,7 @@ class AnalyzeRule(var book: BaseBook? = null) {
return value return value
} }
operator fun get(key: String): String { fun get(key: String): String {
return chapter?.variableMap?.get(key) return chapter?.variableMap?.get(key)
?: book?.variableMap?.get(key) ?: book?.variableMap?.get(key)
?: "" ?: ""

Loading…
Cancel
Save