From 63f8cfb627e1773b5a70d027cfcc56ccfcd87641 Mon Sep 17 00:00:00 2001 From: liudongqi Date: Fri, 27 Sep 2024 11:20:46 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8E=BB=E9=99=A4=E6=A0=A1=E9=AA=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- routes/Fp.js | 8 ++++---- routes/service/FpService.js | 1 + 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/routes/Fp.js b/routes/Fp.js index c570083..728d028 100644 --- a/routes/Fp.js +++ b/routes/Fp.js @@ -25,10 +25,10 @@ router.post('/getLos', async (req, res) => { try { // 执行 let los = await fpService.get_los(url, param, html, loginCookieStr, publicKey); - if (!los || los['hd'] === '') { - console.error(`${uuid}; 生成错误!请检查 html 或 cookie, los:${JSON.stringify(los)}`) - return res.status(500).send('生成错误!请检查 html 或 cookie') - } + // if (!los || los['hd'] === '') { + // console.error(`${uuid}; 生成错误!请检查 html 或 cookie, los:${JSON.stringify(los)}`) + // return res.status(500).send('生成错误!请检查 html 或 cookie') + // } return res.status(200).send(los); } catch (e) { console.error(e.stack) diff --git a/routes/service/FpService.js b/routes/service/FpService.js index a4cd5b1..aa2c2ef 100644 --- a/routes/service/FpService.js +++ b/routes/service/FpService.js @@ -62,6 +62,7 @@ class FpService { } // 处理 xhr 后缀 let handleSuffix = fpCrypt.handleSuffix(urlPath); + console.log(`处理 xhr 后缀 ${JSON.stringify(handleSuffix)}`) let los = window[window["_d_ts"]](handleSuffix, enParam); headers['lzkqow23819'] = los.hd