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 45667c83a..1e1b87915 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 @@ -262,10 +262,10 @@ class AnalyzeRule( /** * 获取Element */ - fun getElement(ruleStr: String, mContent: Any? = null): Any? { + fun getElement(ruleStr: String): Any? { if (TextUtils.isEmpty(ruleStr)) return null var result: Any? = null - val content = mContent ?: this.content + val content = this.content val ruleList = splitSourceRule(ruleStr, true) if (content != null && ruleList.isNotEmpty()) { result = content @@ -296,9 +296,9 @@ class AnalyzeRule( * 获取列表 */ @Suppress("UNCHECKED_CAST") - fun getElements(ruleStr: String, mContent: Any? = null): List { + fun getElements(ruleStr: String): List { var result: Any? = null - val content = mContent ?: this.content + val content = this.content val ruleList = splitSourceRule(ruleStr, true) if (content != null && ruleList.isNotEmpty()) { result = content