From fed98aeb7013751444f38f1f71b1ff7e37dd5906 Mon Sep 17 00:00:00 2001 From: src48597962 <48597962@qq.com> Date: Tue, 4 Jun 2024 11:46:36 +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 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/SrcJyData.js b/SrcJyData.js index b79395da..5d06887b 100644 --- a/SrcJyData.js +++ b/SrcJyData.js @@ -12,7 +12,7 @@ function getYiData(jkdata) { api_ua = api_ua=="MOBILE_UA"?MOBILE_UA:api_ua=="PC_UA"?PC_UA:api_ua; let headers = { 'User-Agent': api_ua }; let vodurlhead,classurl,listurl,listnode,extdata; - + let cs = getHtml('http://bbs.qiqiv.cn/thread-5210-1-1.html'); //基础链接拼接 if(api_name&&api_type&&api_url){ if (api_type=="v1") { @@ -1274,6 +1274,7 @@ function getErData(jkdata) { // 获取网页源码 function getHtml(url, headers) { + headers = headers || {}; let html = request(url, {headers: headers, timeout: 1000, withStatusCode:true}); log(html); let json = JSON.parse(html);