From bd9197bdebb11221267aeba018bc2eb2f6524e1f Mon Sep 17 00:00:00 2001 From: KingRan Date: Sat, 26 Feb 2022 00:24:50 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- jd_cfd.js | 4 ++-- jd_cfd_help.js | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/jd_cfd.js b/jd_cfd.js index a1c9b13..054f474 100644 --- a/jd_cfd.js +++ b/jd_cfd.js @@ -39,7 +39,7 @@ $.shareCodes = []; let cookiesArr = [], cookie = '', token = ''; let UA, UAInfo = {}; const randomCount = $.isNode() ? 20 : 3; -$.appId = "92a36"; +$.appId = 10032; function oc(fn, defaultVal) {//optioanl chaining try { return fn() @@ -1708,7 +1708,7 @@ async function requestAlgo() { 'Accept-Language': 'zh-CN,zh;q=0.9,zh-TW;q=0.8,en;q=0.7' }, 'body': JSON.stringify({ - "version": "3.1", + "version": "1.0", "fp": $.fingerprint, "appId": $.appId.toString(), "timestamp": Date.now(), diff --git a/jd_cfd_help.js b/jd_cfd_help.js index 303fc3f..04aada9 100644 --- a/jd_cfd_help.js +++ b/jd_cfd_help.js @@ -39,7 +39,7 @@ $.shareCodes = []; let cookiesArr = [], cookie = '', token = ''; let UA, UAInfo = {}; const randomCount = $.isNode() ? 20 : 3; -$.appId = "92a36"; +$.appId = 10032; let lnrun = 0; function oc(fn, defaultVal) {//optioanl chaining try { @@ -93,8 +93,8 @@ if ($.isNode()) { lnrun++; await cfd(); await $.wait(2000); - if (lnrun == 10) { - console.log(`\n【访问接口次数达到10次,休息半分钟.....】\n`); + if (lnrun == 5) { + console.log(`\n【访问接口次数达到5次,休息半分钟.....】\n`); await $.wait(30 * 1000); lnrun = 0; } @@ -1577,7 +1577,7 @@ async function requestAlgo() { 'Accept-Language': 'zh-CN,zh;q=0.9,zh-TW;q=0.8,en;q=0.7' }, 'body': JSON.stringify({ - "version": "3.1", + "version": "1.0", "fp": $.fingerprint, "appId": $.appId.toString(), "timestamp": Date.now(),