File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -18,16 +18,15 @@ let updateTime = new Date().toISOString();
18
18
19
19
// 调用路径
20
20
const url =
21
- "https://apps.game.qq.com/cmc/zmMcnTargetContentList?r0=jsonp&page=1&num=16&target=24&source=web_pc&r1=jQuery191002324053053181463_1687855508930&_=1687855508933 " ;
21
+ "https://apps.game.qq.com/cmc/zmMcnTargetContentList?r0=jsonp&page=1&num=16&target=24&source=web_pc" ;
22
22
23
23
// 数据处理
24
24
const getData = ( data ) => {
25
25
if ( ! data ) return [ ] ;
26
26
const dataList = [ ] ;
27
27
try {
28
- const pattern = / j Q u e r y 1 9 1 0 0 2 3 2 4 0 5 3 0 5 3 1 8 1 4 6 3 _ 1 6 8 7 8 5 5 5 0 8 9 3 0 \( ( .* ?) \) / s;
29
- const matchResult = data . match ( pattern ) ;
30
- const jsonObject = JSON . parse ( matchResult [ 1 ] ) [ "data" ] . result ;
28
+ const match = data . match ( / c a l l b a c k \( ( .* ) \) / ) ;
29
+ const jsonObject = JSON . parse ( match [ 1 ] ) . data . result ;
31
30
jsonObject . forEach ( ( v ) => {
32
31
dataList . push ( {
33
32
title : v . sTitle ,
You can’t perform that action at this time.
0 commit comments