This commit is contained in:
Faker
2022-03-23 15:49:10 +08:00
parent 715cb020be
commit d0d0d91591
10 changed files with 2291 additions and 552 deletions

View File

@@ -45,7 +45,7 @@ function SetShareCodesEnv(nameConfig = "", envName = "") {
let rawCodeConfig = {}
// 读取互助码
shareCodeLogPath = `${process.env.QL_DIR}/log/.ShareCode/${nameConfig}.log`
let shareCodeLogPath = `${process.env.QL_DIR}/log/.ShareCode/${nameConfig}.log`
let fs = require('fs')
if (fs.existsSync(shareCodeLogPath)) {
// 因为faker2目前没有自带ini改用已有的dotenv来解析
@@ -59,7 +59,7 @@ function SetShareCodesEnv(nameConfig = "", envName = "") {
}
// 解析每个用户的互助码
codes = {}
let codes = {}
Object.keys(rawCodeConfig).forEach(function (key) {
if (key.startsWith(`My${nameConfig}`)) {
codes[key] = rawCodeConfig[key]

File diff suppressed because one or more lines are too long

536
jd_lzdz1_customized3.js Normal file

File diff suppressed because one or more lines are too long

527
jd_lzdz1_customized5.js Normal file

File diff suppressed because one or more lines are too long

178
jd_speed_10_4.js Normal file

File diff suppressed because one or more lines are too long

178
jd_speed_19_6.js Normal file

File diff suppressed because one or more lines are too long

178
jd_speed_29_8.js Normal file

File diff suppressed because one or more lines are too long

178
jd_speed_5_2.js Normal file

File diff suppressed because one or more lines are too long

View File

@@ -25,8 +25,8 @@ let message = '', allMessage = '';
//IOS等用户直接用NobyDa的jd cookie
let cookiesArr = [], cookie = '';
const JD_API_HOST = 'https://api.m.jd.com/client.action';
let appIdArr = ['1EFRQwA','1FFVQyqw','1E1xZy6s'];
let appNameArr = ['疯狂砸金蛋','1111点心动','PLUS生活特权'];
let appIdArr = ['1EFdRwqyF','1EFZWxKqP','1FFVQyqw','1EFRQwA','1EFRWxKuG', '1E1xZy6s'];
let appNameArr = ['春尚','新品来袭','1111点心动','疯狂砸金蛋','许愿抽好礼', 'PLUS生活特权'];
let appId, appName;
$.shareCode = [];
if ($.isNode()) {

View File

@@ -201,10 +201,13 @@ async function main(help = true) {
// 查询信息
function signhb(type = 1) {
let body = '';
if ($.signhb_source === '5') body = `type=0&signhb_source=${$.signhb_source}&smp=&ispp=1&tk=`
let functionId = 'signhb/query', body = '';
if ($.signhb_source === '5') {
functionId = 'signhb/query_jxpp'
body = `type=0&signhb_source=${$.signhb_source}&smp=&ispp=1&tk=`
}
return new Promise((resolve) => {
$.get(taskUrl("signhb/query", body), async (err, resp, data) => {
$.get(taskUrl(functionId, body), async (err, resp, data) => {
try {
if (err) {
console.log(JSON.stringify(err));
@@ -285,8 +288,16 @@ function signhb(type = 1) {
// 签到 助力
function helpSignhb(smp = '') {
let functionId, body;
if ($.signhb_source === '5') {
functionId = 'signhb/query_jxpp'
body = `type=1&signhb_source=${$.signhb_source}&smp=&ispp=1&tk=`
} else {
functionId = 'signhb/query'
body = `type=1&signhb_source=${$.signhb_source}&smp=${smp}&ispp=0&tk=`
}
return new Promise((resolve) => {
$.get(taskUrl("signhb/query", `type=1&signhb_source=${$.signhb_source}&smp=${smp}&ispp=1&tk=`), async (err, resp, data) => {
$.get(taskUrl(functionId, body), async (err, resp, data) => {
try {
if (err) {
console.log(JSON.stringify(err))
@@ -319,14 +330,16 @@ function helpSignhb(smp = '') {
// 任务
function dotask(task) {
let body;
let functionId, body;
if ($.signhb_source === '5') {
functionId = 'signhb/dotask_jxpp'
body = `task=${task}&signhb_source=${$.signhb_source}&ispp=1&sqactive=${$.sqactive}&tk=`
} else {
body = `task=${task}&signhb_source=${$.signhb_source}&ispp=1&tk=`
functionId = 'signhb/dotask'
body = `task=${task}&signhb_source=${$.signhb_source}&ispp=0&sqactive=&tk=`
}
return new Promise((resolve) => {
$.get(taskUrl("signhb/dotask", body), async (err, resp, data) => {
$.get(taskUrl(functionId, body), async (err, resp, data) => {
try {
if (err) {
console.log(JSON.stringify(err));
@@ -357,7 +370,7 @@ function bxdraw() {
if ($.signhb_source === '5') {
body = `ispp=1&sqactive=${$.sqactive}&tk=`
} else {
body = `ispp=1&tk=`
body = `ispp=0&sqactive=&tk=`
}
return new Promise((resolve) => {
$.get(taskUrl("signhb/bxdraw", body), async (err, resp, data) => {