mirror of
https://github.com/sub-store-org/Sub-Store.git
synced 2026-11-29 07:50:33 +00:00
feat: ⚠️ BREAKING CHANGE 脚本中的 第三个参数 context 改为脚本共享的上下文, 可自由操作. 原本的 env 信息, 现在为 context.env
This commit is contained in:
4 files changed
+32
-10
No files matched your search
+3
-1
@@ -257,7 +257,9 @@ function operator(proxies = [], targetPlatform, context) {
|
||||
// 可参考:
|
||||
// 1. https://t.me/zhetengsha/948
|
||||
|
||||
// context 为传入的上下文
|
||||
// context 为传入的上下文, 可在多个脚本中共享使用
|
||||
// 其中 env 为 环境信息, 包含运行版本和其他后端信息
|
||||
|
||||
// 其中 source 为 订阅和组合订阅的数据, 有三种情况, 按需判断 (若只需要取订阅/组合订阅名称 直接用 `_subName` `_subDisplayName` `_collectionName` `_collectionDisplayName` 即可)
|
||||
|
||||
// 若存在 `source._collection` 且 `source._collection.subscriptions` 中的 key 在 `source` 上也存在, 说明输出结果为组合订阅, 但是脚本设置在单条订阅上
|
||||
|
||||
Reference in new issue
Block a user