From 5ef3635d865cf637c1669e0c7ba3a40e0100ac31 Mon Sep 17 00:00:00 2001 From: kunfei Date: Tue, 12 Nov 2019 15:55:16 +0800 Subject: [PATCH] up --- .../main/java/io/legado/app/model/analyzeRule/AnalyzeRule.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/io/legado/app/model/analyzeRule/AnalyzeRule.kt b/app/src/main/java/io/legado/app/model/analyzeRule/AnalyzeRule.kt index 20804006f..54c579d3f 100644 --- a/app/src/main/java/io/legado/app/model/analyzeRule/AnalyzeRule.kt +++ b/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) { for ((key, value) in map) { getString(value)?.let { - book?.putVariable(key, it) + put(key, it) } } } @@ -573,7 +573,7 @@ class AnalyzeRule(var book: BaseBook? = null) { return value } - operator fun get(key: String): String { + fun get(key: String): String { return chapter?.variableMap?.get(key) ?: book?.variableMap?.get(key) ?: ""