File tree 2 files changed +10
-1
lines changed
2 files changed +10
-1
lines changed Original file line number Diff line number Diff line change 545
545
" tf_loop_count" ,
546
546
" tf_session_info" ,
547
547
" tf_joined_app_id" ,
548
+ " tf_storefront_id" ,
548
549
" tf_invalid_app_id" ,
549
550
" tf_check_account_id" ,
550
551
" tf_join_concurrency" ,
645
646
"placeholder" : " " ,
646
647
"autoGrow" : true ,
647
648
"desc" : " 选择一个账号专门用于检测TF是否可以加入,以保护主号"
649
+ },
650
+ {
651
+ "id" : " tf_storefront_id" ,
652
+ "name" : " 自定义storefrontId" ,
653
+ "val" : " 143441-19,29" ,
654
+ "type" : " input" ,
655
+ "desc" : " 自定义storefrontId,以解决国区账号TestFlight下载App受限问题"
648
656
}
649
657
],
650
658
"icons" : [
Original file line number Diff line number Diff line change @@ -6,6 +6,7 @@ const tfSessionInfoKey = "tf_session_info";
6
6
const tfCheckSessionTimeKey = "tf_check_session_time" ;
7
7
const tfCheckSessionTimeDiffKey = "tf_check_session_time_diff" ;
8
8
const tfAppUseAccountIdKey = "tf_app_use_account_id" ;
9
+ const tfStorefrontId = "tf_storefront_id" ;
9
10
const getSessionRegex = / ^ h t t p s : \/ \/ t e s t f l i g h t \. a p p l e \. c o m \/ v 3 \/ a c c o u n t s \/ ( \w { 8 } - \w { 4 } - \w { 4 } - \w { 4 } - \w { 12 } ) \/ a p p s $ / ;
10
11
const getFullAppIdRegex = / ^ h t t p s : \/ \/ t e s t f l i g h t \. a p p l e \. c o m \/ v 3 \/ a c c o u n t s \/ \w { 8 } - \w { 4 } - \w { 4 } - \w { 4 } - \w { 12 } \/ r u \/ ( [ a - z A - Z 0 - 9 ] { 8 } ) $ / ;
11
12
const modifyTFRequest = / ^ h t t p s : \/ \/ t e s t f l i g h t \. a p p l e \. c o m \/ v \d \/ a c c o u n t s \/ \w { 8 } - \w { 4 } - \w { 4 } - \w { 4 } - \w { 12 } \/ a p p s \/ \d + /
@@ -79,7 +80,7 @@ function modifyRequest() {
79
80
}
80
81
}
81
82
if ( / \/ i n s t a l l $ / . test ( $ . request . url ) && Object . keys ( body ) . length > 0 ) {
82
- body . storefrontId = "143441-19,29" ;
83
+ body . storefrontId = $ . data . read ( tfStorefrontId , "143441-19,29" ) ;
83
84
}
84
85
return [ url , headers , JSON . stringify ( body ) ] ;
85
86
}
You can’t perform that action at this time.
0 commit comments