优化
This commit is contained in:
@@ -70,13 +70,6 @@ object SharedJsScope {
|
||||
if (scope is ScriptableObject) {
|
||||
scope.sealObject()
|
||||
}
|
||||
if (scope is Map<*, *>) {
|
||||
scope.entries.forEach {
|
||||
if (it is ScriptableObject) {
|
||||
it.sealObject()
|
||||
}
|
||||
}
|
||||
}
|
||||
scopeMap[key] = WeakReference(scope)
|
||||
}
|
||||
return scope
|
||||
|
||||
@@ -97,7 +97,7 @@ class AnalyzeUrl(
|
||||
private set
|
||||
var type: String? = null
|
||||
private set
|
||||
val headerMap = HashMap<String, String>()
|
||||
val headerMap = LinkedHashMap<String, String>()
|
||||
private var urlNoQuery: String = ""
|
||||
private var encodedForm: String? = null
|
||||
private var encodedQuery: String? = null
|
||||
|
||||
@@ -189,7 +189,7 @@ object BookList {
|
||||
baseUrl: String,
|
||||
variable: String?,
|
||||
log: Boolean,
|
||||
filter: ((name: String, author: String) -> Boolean)? = null,
|
||||
filter: ((name: String, author: String) -> Boolean)?,
|
||||
ruleName: List<AnalyzeRule.SourceRule>,
|
||||
ruleBookUrl: List<AnalyzeRule.SourceRule>,
|
||||
ruleAuthor: List<AnalyzeRule.SourceRule>,
|
||||
|
||||
Reference in New Issue
Block a user