优化
Some checks failed
Test Build / prepare (push) Has been cancelled
Test Build / build (app, release) (push) Has been cancelled
Test Build / build (app, releaseA) (push) Has been cancelled
Test Build / prerelease (push) Has been cancelled
Test Build / lanzou (push) Has been cancelled
Test Build / test_Branch (push) Has been cancelled
Test Build / telegram (push) Has been cancelled
update fork / build (push) Has been cancelled
Update Cronet / build (push) Has been cancelled
closeStaleIssue / stale (push) Has been cancelled

This commit is contained in:
Horis
2025-04-20 12:09:00 +08:00
parent e6966463bd
commit c5947aba68
4 changed files with 4 additions and 9 deletions

View File

@@ -17,6 +17,8 @@
> `JavaScript Code` 直接填写JavaScript片段
> `{"example":"https://www.example.com/js/example.js", ...}` 自动复用已经下载的js文件
> 注意此处定义的函数可能会被多个线程同时调用,在函数里的全局变量内容将会共享使用,对其进行修改可能会出现竞争问题
* 并发率
> 并发限制单位ms可填写两种格式

View File

@@ -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

View File

@@ -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

View File

@@ -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>,