mirror of
https://github.com/shufflewzc/faker2.git
synced 2025-04-23 10:58:44 +08:00
Update jd_speed_sign.js
This commit is contained in:
parent
65c8236fe0
commit
1d0ab25bc5
@ -43,14 +43,14 @@ if (new Date(date.getFullYear(), date.getMonth() + 1, 0).getDate() == date.getDa
|
|||||||
for (let i = 0; i < cookiesArr.length; i++) {
|
for (let i = 0; i < cookiesArr.length; i++) {
|
||||||
if (cookiesArr[i]) {
|
if (cookiesArr[i]) {
|
||||||
var cookie = cookiesArr[i];
|
var cookie = cookiesArr[i];
|
||||||
var url_uuid = randomString(16);
|
var url_uuid = randomString(16);
|
||||||
|
|
||||||
message = '';
|
message = '';
|
||||||
TaskList.push(jdGlobal(cookie,url_uuid));
|
TaskList.push(jdGlobal(cookie,url_uuid));
|
||||||
if (i == (cookiesArr.length - 1) || TaskList.length == maxThread) {
|
if (i == (cookiesArr.length - 1) || TaskList.length == maxThread) {
|
||||||
await Promise.all(TaskList);
|
await Promise.all(TaskList);
|
||||||
if (!llAPIError){
|
if (!llAPIError){
|
||||||
if (TaskList.length == maxThread){
|
if (i != (cookiesArr.length - 1)){
|
||||||
console.log(`当前批量完成,等待30秒`);
|
console.log(`当前批量完成,等待30秒`);
|
||||||
await $.wait(30 * 1000);
|
await $.wait(30 * 1000);
|
||||||
}
|
}
|
||||||
@ -595,7 +595,7 @@ function apDoTask(taskType, taskId, channel, itemId, cookie) {
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
function taskUrl(functionId, cookie,url_uuid, body = {}) {
|
function taskUrl(functionId, cookie,url_uuid, body = {}) {
|
||||||
const struuid = url_uuid;
|
const struuid = url_uuid;
|
||||||
let nowTime = Date.now();
|
let nowTime = Date.now();
|
||||||
let _0x7683x5 = `${"lite-android&"}${JSON["stringify"](body)}${"&android&3.1.0&"}${functionId}&${nowTime}&${struuid}`;
|
let _0x7683x5 = `${"lite-android&"}${JSON["stringify"](body)}${"&android&3.1.0&"}${functionId}&${nowTime}&${struuid}`;
|
||||||
|
Loading…
Reference in New Issue
Block a user