update TestFlight

This commit is contained in:
king
2025-09-21 01:35:32 +08:00
parent 13be4ca34b
commit df2efbf29a
3 changed files with 140 additions and 10 deletions

View File

@ -1,5 +1,5 @@
#!name = 自动加入TestFlight #!name = 自动[加入/监控]TestFlight
#!desc = 使用前先获取账号令牌和应用ID,一旦有新的名额即刻加入 #!desc = 1、自动加入TF使用前先获取账号令牌和填写应用ID[自己手动添加主机名testflight.apple.com]一旦有新的名额即刻加入2、监控TF位置不需要令牌也无需MITM
#!openUrl = https://apps.apple.com/app/id899247664 #!openUrl = https://apps.apple.com/app/id899247664
#!author = 奶思[https://github.com/fmz200], DecoAri[https://github.com/DecoAri], xream[https://github.com/xream] #!author = 奶思[https://github.com/fmz200], DecoAri[https://github.com/DecoAri], xream[https://github.com/xream]
#!tag = 定时任务 #!tag = 定时任务
@ -11,13 +11,15 @@
#!raw-url=https://github.com/fmz200/wool_scripts/raw/main/Loon/plugin/Auto_Join_TF.plugin #!raw-url=https://github.com/fmz200/wool_scripts/raw/main/Loon/plugin/Auto_Join_TF.plugin
#!tg-group=https://t.me/lanjieguanggao #!tg-group=https://t.me/lanjieguanggao
#!input = fmz200_TF_APP_ID #!input = fmz200_TF_APP_ID
#!date = 2025-09-05 15:17:08 #!date = 2025-09-21 01:17:08
[Argument] [Argument]
CaptureAccountToken = switch, "false", "true", tag = 捕获账号令牌, desc = 此开关控制插件是否捕获账户令牌 CaptureAccountToken = switch, "false", "true", tag = 捕获账号令牌, desc = 此开关控制插件是否捕获账户令牌
CaptureAppID = switch, "false", "true", tag = 捕获应用ID, desc = 此开关控制插件是否捕获应用ID # CaptureAppID = switch, "false", "true", tag = 捕获应用ID, desc = 此开关控制插件是否捕获应用ID
RunTask = switch, "true", "false", tag = 运行自动加入TF, desc = 此开关控制是否启动定时任务 RunTask = switch, "false", "true", tag = 运行自动加入TF, desc = 此开关控制是否启动定时任务
TimingParameters = input, "0 0/3 * * * ?", tag = 定时参数, desc = 这里需要输入符合CRON表达式的参数 RunMonitor = switch, "true", "false", tag = 运行监控TF位置, desc = 此开关控制是否启动定时任务
TaskCron = input, "0 0/3 * * * ?", tag = 加入TF定时参数, desc = 这里需要输入符合CRON表达式的参数
TaskMonitor = input, "0 * * * * ?", tag = 监控TF定时参数, desc = 这里需要输入符合CRON表达式的参数
[Rule] [Rule]
DOMAIN, testflight.apple.com, PROXY DOMAIN, testflight.apple.com, PROXY
@ -25,9 +27,10 @@ DOMAIN, testflight.apple.com, PROXY
[Script] [Script]
http-request ^https?:\/\/testflight\.apple\.com\/v3\/accounts\/.*\/apps$ script-path = https://raw.githubusercontent.com/fmz200/wool_scripts/main/Scripts/TestFlight/AutoJoinTFKeys.js, tag = 获取账号令牌, enable = {CaptureAccountToken} http-request ^https?:\/\/testflight\.apple\.com\/v3\/accounts\/.*\/apps$ script-path = https://raw.githubusercontent.com/fmz200/wool_scripts/main/Scripts/TestFlight/AutoJoinTFKeys.js, tag = 获取账号令牌, enable = {CaptureAccountToken}
http-request ^https?:\/\/testflight\.apple\.com\/join\/(.*) script-path = https://raw.githubusercontent.com/fmz200/wool_scripts/main/Scripts/TestFlight/AutoJoinTFKeys.js, tag = 应用ID捕获(可能抓不到), enable = {CaptureAppID} # http-request ^https?:\/\/testflight\.apple\.com\/join\/(.*) script-path = https://raw.githubusercontent.com/fmz200/wool_scripts/main/Scripts/TestFlight/AutoJoinTFKeys.js, tag = 应用ID捕获(可能抓不到), enable = {CaptureAppID}
cron {TimingParameters} script-path = https://raw.githubusercontent.com/fmz200/wool_scripts/main/Scripts/TestFlight/AutoJoinTF.js, tag = 自动加入TF, timeout = 600, enable = {RunTask} cron {TaskCron} script-path = https://raw.githubusercontent.com/fmz200/wool_scripts/main/Scripts/TestFlight/AutoJoinTF.js, tag = 自动加入TF, timeout = 600, enable = {RunTask}
cron {TaskMonitor} script-path = https://raw.githubusercontent.com/fmz200/wool_scripts/main/Scripts/TestFlight/AutoMonitorTF.js, tag = 监控TF位置, timeout = 30, enable = {RunMonitor}
[MitM] # [MitM]
hostname = testflight.apple.com # hostname = testflight.apple.com

View File

@ -54,6 +54,7 @@ if (reg2.test($request.url)) {
$.msg($.name, `已添加APP_ID: ${id}`, `当前所有APPID: ${appId}`, ""); $.msg($.name, `已添加APP_ID: ${id}`, `当前所有APPID: ${appId}`, "");
$.done({}); $.done({});
} }
function unique(arr) { function unique(arr) {
return Array.from(new Set(arr)); return Array.from(new Set(arr));
} }

File diff suppressed because one or more lines are too long