Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
shufflewzc committed Nov 4, 2021
1 parent 6fe86f4 commit 9c5af0a
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions jd_joy_run.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ http-response ^https:\/\/draw\.jdfcloud\.com(\/mirror)?\/\/api\/user\/addUser\?c
http-request ^https:\/\/draw\.jdfcloud\.com(\/mirror)?\/\/api\/user\/user\/detail\?openId= script-path=https://raw.githubusercontent.com/Aaron-lv/sync/jd_scripts/jd_joy_run.js, timeout=3600, tag=宠汪汪助力获取Token
*/
const $ = new Env('宠汪汪赛跑');
const zooFaker = require('./utils/JDJRValidator_Pure');
const zooFaker = require('./JDJRValidator_Aaron');
$.get = zooFaker.injectToRequest2($.get.bind($));
$.post = zooFaker.injectToRequest2($.post.bind($));
//宠汪汪赛跑所需token,默认读取作者服务器的
Expand Down Expand Up @@ -129,7 +129,7 @@ async function main() {
for (let i = 0; i < cookiesArr.length; i++) {
if (cookiesArr[i]) {
$.validate = '';
// const zooFaker = require('./utils/JDJRValidator_Pure');
// const zooFaker = require('./JDJRValidator_Aaron');
// $.validate = await zooFaker.injectToRequest()
if ($.isNode()) {
if (process.env.JOY_RUN_HELP_MYSELF) {
Expand All @@ -145,7 +145,8 @@ async function main() {
Object.values(jdCookieNode).filter(item => item.match(/pt_pin=([^; ]+)(?=;?)/)).map(item => run_pins.push(decodeURIComponent(item.match(/pt_pin=([^; ]+)(?=;?)/)[1])))
run_pins = [...new Set(run_pins)];
let fixPins = run_pins.splice(run_pins.indexOf('zhaosen2580'), 1);
// fixPins.push(...run_pins.splice(run_pins.indexOf('jd_61f1269fd3236'), 1));
fixPins.push(...run_pins.splice(run_pins.indexOf('jd_gYZtkBfPpRVv'), 1));
fixPins.push(...run_pins.splice(run_pins.indexOf('jd_41df9b41af810'), 1));
const randomPins = getRandomArrayElements(run_pins, run_pins.length);
run_pins = [[...fixPins, ...randomPins].join(',')];
invite_pins = run_pins;
Expand Down

0 comments on commit 9c5af0a

Please sign in to comment.