KingRan 2022-02-26 00:24:50 +08:00
parent ec9ad91ac3
commit bd9197bdeb
2 changed files with 6 additions and 6 deletions

View File

@ -39,7 +39,7 @@ $.shareCodes = [];
let cookiesArr = [], cookie = '', token = ''; let cookiesArr = [], cookie = '', token = '';
let UA, UAInfo = {}; let UA, UAInfo = {};
const randomCount = $.isNode() ? 20 : 3; const randomCount = $.isNode() ? 20 : 3;
$.appId = "92a36"; $.appId = 10032;
function oc(fn, defaultVal) {//optioanl chaining function oc(fn, defaultVal) {//optioanl chaining
try { try {
return fn() 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' 'Accept-Language': 'zh-CN,zh;q=0.9,zh-TW;q=0.8,en;q=0.7'
}, },
'body': JSON.stringify({ 'body': JSON.stringify({
"version": "3.1", "version": "1.0",
"fp": $.fingerprint, "fp": $.fingerprint,
"appId": $.appId.toString(), "appId": $.appId.toString(),
"timestamp": Date.now(), "timestamp": Date.now(),

View File

@ -39,7 +39,7 @@ $.shareCodes = [];
let cookiesArr = [], cookie = '', token = ''; let cookiesArr = [], cookie = '', token = '';
let UA, UAInfo = {}; let UA, UAInfo = {};
const randomCount = $.isNode() ? 20 : 3; const randomCount = $.isNode() ? 20 : 3;
$.appId = "92a36"; $.appId = 10032;
let lnrun = 0; let lnrun = 0;
function oc(fn, defaultVal) {//optioanl chaining function oc(fn, defaultVal) {//optioanl chaining
try { try {
@ -93,8 +93,8 @@ if ($.isNode()) {
lnrun++; lnrun++;
await cfd(); await cfd();
await $.wait(2000); await $.wait(2000);
if (lnrun == 10) { if (lnrun == 5) {
console.log(`\n【访问接口次数达到10次,休息半分钟.....】\n`); console.log(`\n【访问接口次数达到5次,休息半分钟.....】\n`);
await $.wait(30 * 1000); await $.wait(30 * 1000);
lnrun = 0; 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' 'Accept-Language': 'zh-CN,zh;q=0.9,zh-TW;q=0.8,en;q=0.7'
}, },
'body': JSON.stringify({ 'body': JSON.stringify({
"version": "3.1", "version": "1.0",
"fp": $.fingerprint, "fp": $.fingerprint,
"appId": $.appId.toString(), "appId": $.appId.toString(),
"timestamp": Date.now(), "timestamp": Date.now(),