This commit is contained in:
Faker 2022-03-23 15:48:10 +08:00
parent 781560909a
commit 3c860ad90d
11 changed files with 2336 additions and 773 deletions

View File

@ -110,9 +110,9 @@ if ($.isNode()) {
await pasture(); await pasture();
await $.wait(2000); await $.wait(2000);
} }
$.res = await getAuthorShareCode('https://raw.githubusercontent.com/Aaron-lv/updateTeam/master/shareCodes/jxmc.json') $.res = await getAuthorShareCode('https://gitee.com/fatelight/Code/raw/master/jxmc.json')
if (!$.res) { if (!$.res) {
$.http.get({url: 'https://purge.jsdelivr.net/gh/Aaron-lv/updateTeam@master/shareCodes/jxmc.json'}).then((resp) => {}).catch((e) => console.log('刷新CDN异常', e)); $.http.get({url: 'https://gitee.com/fatelight/Code/raw/master/jxmc.json'}).then((resp) => {}).catch((e) => console.log('刷新CDN异常', e));
await $.wait(1000) await $.wait(1000)
$.res = await getAuthorShareCode('https://cdn.jsdelivr.net/gh/Aaron-lv/updateTeam@master/shareCodes/jxmc.json') $.res = await getAuthorShareCode('https://cdn.jsdelivr.net/gh/Aaron-lv/updateTeam@master/shareCodes/jxmc.json')
} }

536
jd_lzdz1_customized2.js Normal file

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

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

View File

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