@@ -236,10 +236,7 @@ class Go {
236
236
}
237
237
_makeFuncWrapper ( funcId ) {
238
238
const self = this ;
239
- console . log ( "正在绑定函数id:" , funcId ) ;
240
239
return function ( ) {
241
- console . log ( "执行函数id:" , funcId ) ;
242
- console . log ( "函数参数:" , Array . from ( arguments ) ) ;
243
240
const event = {
244
241
id : funcId ,
245
242
this : this ,
@@ -248,7 +245,6 @@ class Go {
248
245
self . _pendingEvent = event ;
249
246
self . _resume ( ) ;
250
247
const result = event . result ;
251
- console . log ( "函数结果:" , result ) ;
252
248
return result ;
253
249
} ;
254
250
}
@@ -319,11 +315,8 @@ const decryptor = (() => {
319
315
return bytesToString ( result ) ;
320
316
} ;
321
317
const decryptStream = async ( data , mid , key , url ) => {
322
- const indexMa = url . split ( '/' ) . at ( - 1 ) ;
323
- if ( ! indexMa ) return url ;
324
- const index = indexMa [ 1 ] ;
325
- const istr = `${ index } +gazes_v-@_info` ;
326
- console . log ( istr ) ;
318
+ if ( ! url . includes ( "gazes_v-@_info" ) ) return url ;
319
+ const istr = url . split ( "/" ) . at ( - 1 ) ;
327
320
const ungzipped = pako . ungzip ( data , {
328
321
to : "string" ,
329
322
} ) ;
@@ -581,21 +574,18 @@ var rule = {
581
574
const resp = await axios . get ( `${ this . host } /filter` , {
582
575
headers : this . headers ,
583
576
} ) ;
584
-
585
577
// cookie 处理
586
578
const headers = resp . headers ;
587
579
const cookies = headers [ "set-cookie" ] ;
588
580
const cookie = cookies . map ( ( item ) => item . split ( ";" ) [ 0 ] ) . join ( "; " ) ;
589
581
this . headers . Cookie = cookie ;
590
-
591
582
// 请求头处理
592
583
const html = resp . data ;
593
584
const kv_macth = html . match ( / ' h e a d e r s ' : ( { [ ^ { } ] * } ) / ) [ 1 ] ;
594
585
const kv_headers = new Function ( `return ${ kv_macth } ` ) ( ) ;
595
586
for ( const key in kv_headers ) {
596
587
this . headers [ key ] = kv_headers [ key ] ;
597
588
}
598
-
599
589
console . warn ( "headers" , this . headers ) ;
600
590
} ,
601
591
} ;
0 commit comments