From d93a7f36f490aa7961a132e6acb622083b68fe69 Mon Sep 17 00:00:00 2001 From: src48597962 <48597962@qq.com> Date: Fri, 21 Jun 2024 21:53:08 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20'SrcJyData.js'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- SrcJyData.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/SrcJyData.js b/SrcJyData.js index bdd6868a..ecb73755 100644 --- a/SrcJyData.js +++ b/SrcJyData.js @@ -620,10 +620,11 @@ function getSsData(name, jkdata, page) { return []; } function getHtmlCode(ssurl, headers) { - let html = request(ssurl);//, { headers: headers, timeout: timeout } - log(html); + let html = request(ssurl, { headers: headers, timeout: timeout }); try { - if (html.indexOf('检测中') != -1) { + if (html.indexOf('cf-wrapper') != -1) { + html = fetchCodeByWebView(ssurl, { headers: headers, 'blockRules': ['.png', '.jpg'], timeout: timeout }); + }else if (html.indexOf('检测中') != -1) { html = request(ssurl + '&btwaf' + html.match(/btwaf(.*?)\"/)[1], { headers: headers, timeout: timeout }); } else if (/页面已拦截/.test(html)) { html = fetchCodeByWebView(ssurl, { headers: headers, 'blockRules': ['.png', '.jpg', '.gif', '.mp3', '.mp4'], timeout: timeout });