$options._res.headers 大体跟单条订阅逻辑一致之前有问题的 可以试试现在好了没(比如给订阅设置了代理的)
感谢 @xchacha20 的反馈
来自群友的需求 仅做流量加法
旧版是拉取订阅的时候 去写入流量信息 所以可能是下一次才会在客户端里看到新的流量信息
新版 后端 >= 2.20.69 是实时数据
- ❤️1
$options._res.headers 大体跟单条订阅逻辑一致#cacheKey=xxx (xxx 不要重复, 这是缓存的 key ) 填入 Sub-Store 开启乐观缓存功能 详见 https://t.me/zhetengsha/1417noFlow 不查询流量信息, 反正都焚了...类似这样 #cacheKey=xxx&noFlow#cacheTtl=31536000&headersCacheTtl=31536000 这样缓存为一年 就不会拉取了. 流量查询好像也没啥意义了, 直接设置不查 #cacheTtl=31536000&noFlowfunction operator(proxies, targetPlatform, context) {
if ($options) {
$options._res = {
headers: {
'subscription-userinfo': 'upload=97033729524; download=1357806112914; total=1782411427840; expire=; app_url=https%3A%2F%2Fa.com'
}
}
}
return proxies;
}
total=0, 无法得到总流量. 但是节点中返回了 预计可用:1963.00 GB 和 当前等级:企业
感谢疾速云赞助 查看 https://t.me/zhetengsha_group/685938」
感谢私房菜赞助 查看介绍 https://t.me/zhetengsha_group/687086」
https://raw.githubusercontent.com/xream/scripts/main/surge/modules/sub-store-scripts/sing-box/template.js#type=组合订阅&name=自建&outbound=🕳ℹ️^🇭🇰 HKG$🏷ℹ️港|hk|hongkong|kong kong|🇭🇰
https://raw.githubusercontent.com/xream/scripts/main/surge/modules/sub-store-scripts/sing-box/template.js#type=组合订阅&name=机场&outbound=🕳ℹ️^🇭🇰 HKG-R$🏷ℹ️港|hk|hongkong|kong kong|🇭🇰
detour: HKG-R. 没优化, 反正能用(config = JSON.parse($content ?? $files[0])
const relay = {
'🇭🇰 HKG': '🇭🇰 HKG-R',
// 其他的自己加
}
config.outbounds.map(outbound => {
const r = relay[outbound.tag]
if(r && Array.isArray(outbound.outbounds) && outbound.outbounds.length > 0){
outbound.outbounds.map(tag => {
config.outbounds.find(outbound => outbound.tag === tag).detour = r
})
}
})
$content = JSON.stringify(config, null, 2)
官网注册: Perfect Link
全新升级最先进的抗封锁加密协议,配合无日志政策,不受限制地访问全球内容,体验真正的在线自由。
复制 845620347 👍答開👍z hi怤保去搜索,.h o`ng.包相伴,愿君合家欢
showRemaining 参数, 此时将显示剩余流量而不是已用流量resetDayhttp://a.com?token=a#resetDay=19 为 每月19日重置流量startDate 和 重置周期(单位: 天) cycleDayshttp://a.com?token=1#cycleDays=31&startDate=2024-06-04 https://raw.githubusercontent.com/xream/scripts/main/surge/modules/sub-store-scripts/sub-info/node.js