File tree Expand file tree Collapse file tree 2 files changed +20
-4
lines changed
Expand file tree Collapse file tree 2 files changed +20
-4
lines changed Original file line number Diff line number Diff line change @@ -923,6 +923,7 @@ if (binaryInfo != null && binaryInfo.length > 0) {
923923 proto,
924924 size,
925925 timeout : '60' ,
926+ jsarg,
926927 ori : x ,
927928 num : y ,
928929 } )
@@ -961,6 +962,7 @@ if (binaryInfo != null && binaryInfo.length > 0) {
961962 jsptn : '' ,
962963 cronexp,
963964 jsurl,
965+ jsarg,
964966 wakesys : '1' ,
965967 timeout : '120' ,
966968 ori : x ,
@@ -974,7 +976,7 @@ if (binaryInfo != null && binaryInfo.length > 0) {
974976 getMockInfo ( x , mark , y )
975977 }
976978 } //for await循环结束
977-
979+ $ . log ( $ . toStr ( jsBox ) )
978980 //去重
979981 let obj = { }
980982
@@ -1287,7 +1289,13 @@ if (binaryInfo != null && binaryInfo.length > 0) {
12871289
12881290 for ( let i = 0 ; i < rwbodyBox . length ; i ++ ) {
12891291 const { type, regex, value } = rwbodyBox [ i ]
1290- BodyRewrite . push ( `${ type } ${ regex } ${ value } ` )
1292+ if ( isSurgeiOS || isShadowrocket ) {
1293+ BodyRewrite . push ( `${ type } ${ regex } ${ value } ` )
1294+ } else if ( isLooniOS ) {
1295+ let type2 = / r e q u e s t / . test ( type ) ? 'request-body-json-jq' : 'response-body-json-jq' ;
1296+ URLRewrite . push ( `${ regex } ${ type2 } ${ value } ` )
1297+ }
1298+
12911299 }
12921300
12931301 //headerRewrite输出
Original file line number Diff line number Diff line change @@ -923,6 +923,7 @@ if (binaryInfo != null && binaryInfo.length > 0) {
923923 proto,
924924 size,
925925 timeout : '60' ,
926+ jsarg,
926927 ori : x ,
927928 num : y ,
928929 } )
@@ -961,6 +962,7 @@ if (binaryInfo != null && binaryInfo.length > 0) {
961962 jsptn : '' ,
962963 cronexp,
963964 jsurl,
965+ jsarg,
964966 wakesys : '1' ,
965967 timeout : '120' ,
966968 ori : x ,
@@ -974,7 +976,7 @@ if (binaryInfo != null && binaryInfo.length > 0) {
974976 getMockInfo ( x , mark , y )
975977 }
976978 } //for await循环结束
977-
979+ $ . log ( $ . toStr ( jsBox ) )
978980 //去重
979981 let obj = { }
980982
@@ -1287,7 +1289,13 @@ if (binaryInfo != null && binaryInfo.length > 0) {
12871289
12881290 for ( let i = 0 ; i < rwbodyBox . length ; i ++ ) {
12891291 const { type, regex, value } = rwbodyBox [ i ]
1290- BodyRewrite . push ( `${ type } ${ regex } ${ value } ` )
1292+ if ( isSurgeiOS || isShadowrocket ) {
1293+ BodyRewrite . push ( `${ type } ${ regex } ${ value } ` )
1294+ } else if ( isLooniOS ) {
1295+ let type2 = / r e q u e s t / . test ( type ) ? 'request-body-json-jq' : 'response-body-json-jq' ;
1296+ URLRewrite . push ( `${ regex } ${ type2 } ${ value } ` )
1297+ }
1298+
12911299 }
12921300
12931301 //headerRewrite输出
You can’t perform that action at this time.
0 commit comments