请教一下,为什么我hook不到jsonp?

About: iqiyi-player-switch
Hooker.hookJsonp(options => {
    console.dir(options);
    let url = options.url;
    if (/^http:\/\/ark\.letv\.com.+&j=([^&]+)/.test(url)) {
        //let res = RegExp.$1 + '({});';
        console.log(url);
        //options.success({});
        const fn = options.success;
        options.success = res => {
            let data = JSON.parse(res);
            data.vast.Ad = [];
            data = JSON.stringify(data);
            console.log('kill ad!');
            return fn(data);
        };
    }
    return !1;//从网络取得数据
});

Komentáre

Prihlásiť saaleboRegistrovať pre komentovanie.