From dbe2c599f29f2a5d1f3aa85e3f16e909f97390bc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B0=98=E6=9B=B2?= Date: Sat, 11 Jun 2022 17:38:08 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20'jd=5Ftry.js'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- jd_try.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/jd_try.js b/jd_try.js index 6b058e0..7893242 100644 --- a/jd_try.js +++ b/jd_try.js @@ -291,12 +291,12 @@ let args_xh = { function requireConfig() { return new Promise(resolve => { console.log('开始获取配置文件\n') - $.notify = $.isNode() ? require('./sendNotify') : { sendNotify: async () => { } } + $.notify = $.isNode() ? require('../6dylan6_jdpro/sendNotify') : { sendNotify: async () => { } } //获取 Cookies $.cookiesArr = [] if ($.isNode()) { //Node.js用户请在jdCookie.js处填写京东ck; - const jdCookieNode = require('./jdCookie.js'); + const jdCookieNode = require('../6dylan6_jdpro/jdCookie.js'); Object.keys(jdCookieNode).forEach((item) => { if (jdCookieNode[item]) $.cookiesArr.push(jdCookieNode[item]) }) @@ -648,7 +648,7 @@ function totalBean() { "Connection": "keep-alive", "Cookie": $.cookie, "Referer": "https://wqs.jd.com/my/jingdou/my.shtml?sceneval=2", - "User-Agent": $.isNode() ? (process.env.JD_USER_AGENT ? process.env.JD_USER_AGENT : (require('./USER_AGENTS').USER_AGENT)) : ($.getdata('JDUA') ? $.getdata('JDUA') : "jdapp;iPhone;9.4.4;14.3;network/4g;Mozilla/5.0 (iPhone; CPU iPhone OS 14_3 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148;supportJDSHWK/1") + "User-Agent": $.isNode() ? (process.env.JD_USER_AGENT ? process.env.JD_USER_AGENT : (require('../6dylan6_jdpro/USER_AGENTS').USER_AGENT)) : ($.getdata('JDUA') ? $.getdata('JDUA') : "jdapp;iPhone;9.4.4;14.3;network/4g;Mozilla/5.0 (iPhone; CPU iPhone OS 14_3 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148;supportJDSHWK/1") }, "timeout": 10000, }