mirror of
https://github.com/shufflewzc/faker2.git
synced 2025-04-23 02:48:44 +08:00
update
This commit is contained in:
parent
e475b3a55b
commit
53750d1494
@ -2,10 +2,14 @@
|
|||||||
/*
|
/*
|
||||||
京东特价APP首页-赚钱大赢家
|
京东特价APP首页-赚钱大赢家
|
||||||
进APP看看,能不能进去,基本都黑的!!!
|
进APP看看,能不能进去,基本都黑的!!!
|
||||||
默认定时不跑!只打扫和助力
|
有的能进去,助力确是黑的!!
|
||||||
|
默认定时不跑!助力和领取任务奖励
|
||||||
|
运行流程:设置助力码--过滤黑号--助力--领取任务奖励!!!
|
||||||
助理吗变量:多个用&号隔开
|
助理吗变量:多个用&号隔开
|
||||||
DYJSHAREID = 'xxx&xxx&xxx'
|
DYJSHAREID = 'xxx&xxx&xxx'
|
||||||
10 10 10 10 * https://raw.githubusercontent.com/6dylan6/jdpro/main/jd_makemoneyshop.js
|
10 10 10 10 * https://raw.githubusercontent.com/6dylan6/jdpro/main/jd_makemoneyshop.js
|
||||||
|
By: https://github.com/6dylan6/jdpro
|
||||||
|
updatetime: 2022/11/3 自动领取邀请奖励,其他优化
|
||||||
*/
|
*/
|
||||||
|
|
||||||
const $ = new Env('特价版大赢家');
|
const $ = new Env('特价版大赢家');
|
||||||
@ -25,6 +29,8 @@ if ($.isNode()) {
|
|||||||
if (process.env.DYJSHAREID) {
|
if (process.env.DYJSHAREID) {
|
||||||
if (process.env.DYJSHAREID.indexOf('&') > -1) {
|
if (process.env.DYJSHAREID.indexOf('&') > -1) {
|
||||||
shareId = process.env.DYJSHAREID.split('&');
|
shareId = process.env.DYJSHAREID.split('&');
|
||||||
|
} else {
|
||||||
|
shareId = [process.env.DYJSHAREID];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
let helpinfo = {};
|
let helpinfo = {};
|
||||||
@ -33,7 +39,8 @@ let helpinfo = {};
|
|||||||
$.msg($.name, '【提示】请先获取京东账号一cookie\n直接使用NobyDa的京东签到获取', 'https://bean.m.jd.com/bean/signIndex.action', { "open-url": "https://bean.m.jd.com/bean/signIndex.action" });
|
$.msg($.name, '【提示】请先获取京东账号一cookie\n直接使用NobyDa的京东签到获取', 'https://bean.m.jd.com/bean/signIndex.action', { "open-url": "https://bean.m.jd.com/bean/signIndex.action" });
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
console.log('\n运行一遍可以看到助力码,然后设置需要助力的!基本都是黑的!!\n')
|
console.log('\n运行一遍可以看到助力码,然后设置需要助力的!')
|
||||||
|
console.log('\n运行流程:设置助力码--过滤黑号--助力--领取任务奖励!!!\n')
|
||||||
for (let i = 0; i < cookiesArr.length; i++) {
|
for (let i = 0; i < cookiesArr.length; i++) {
|
||||||
if (cookiesArr[i]) {
|
if (cookiesArr[i]) {
|
||||||
cookie = cookiesArr[i];
|
cookie = cookiesArr[i];
|
||||||
@ -44,6 +51,7 @@ let helpinfo = {};
|
|||||||
$.canUseCoinAmount = 0;
|
$.canUseCoinAmount = 0;
|
||||||
helpinfo[$.UserName] = {};
|
helpinfo[$.UserName] = {};
|
||||||
UA = require('./USER_AGENTS').UARAM();
|
UA = require('./USER_AGENTS').UARAM();
|
||||||
|
helpinfo[$.UserName].ua = UA;
|
||||||
await TotalBean();
|
await TotalBean();
|
||||||
console.log(`\n******开始【京东账号${$.index}】${$.nickName || $.UserName}*********\n`);
|
console.log(`\n******开始【京东账号${$.index}】${$.nickName || $.UserName}*********\n`);
|
||||||
if (!$.isLogin) {
|
if (!$.isLogin) {
|
||||||
@ -55,13 +63,7 @@ let helpinfo = {};
|
|||||||
}
|
}
|
||||||
|
|
||||||
await getinfo(1);
|
await getinfo(1);
|
||||||
if (helpinfo[$.UserName].hot) continue;
|
await $.wait(1000);
|
||||||
await $.wait(500);
|
|
||||||
await gettask();
|
|
||||||
await $.wait(500);
|
|
||||||
if ($.taskstate !==1) await Award();
|
|
||||||
await $.wait(2000);
|
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (shareId.length > 0) {
|
if (shareId.length > 0) {
|
||||||
@ -73,17 +75,43 @@ let helpinfo = {};
|
|||||||
cookie = cookiesArr[i];
|
cookie = cookiesArr[i];
|
||||||
$.UserName = decodeURIComponent(cookie.match(/pt_pin=([^; ]+)(?=;?)/) && cookie.match(/pt_pin=([^; ]+)(?=;?)/)[1]);
|
$.UserName = decodeURIComponent(cookie.match(/pt_pin=([^; ]+)(?=;?)/) && cookie.match(/pt_pin=([^; ]+)(?=;?)/)[1]);
|
||||||
$.index = i + 1;
|
$.index = i + 1;
|
||||||
|
UA = helpinfo[$.UserName].ua;
|
||||||
console.log(`\n开始【账号${$.index}】${$.nickName || $.UserName}`);
|
console.log(`\n开始【账号${$.index}】${$.nickName || $.UserName}`);
|
||||||
if (helpinfo[$.UserName].nohelp) { console.log('已无助力次数了'); continue };
|
if (helpinfo[$.UserName].nohelp) { console.log('已无助力次数了'); continue };
|
||||||
if (helpinfo[$.UserName].hot) { console.log('可能黑了,跳过!'); continue };
|
if (helpinfo[$.UserName].hot) { console.log('可能黑了,跳过!'); continue };
|
||||||
await help(shareId[j]);
|
await help(shareId[j]);
|
||||||
await $.wait(1000);
|
console.log('随机等待2-5秒');
|
||||||
|
await $.wait(parseInt(Math.random() * 3000 + 2000, 10))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
console.log('无助立马请设置!!')
|
console.log('无助立马请设置!!\n')
|
||||||
}
|
}
|
||||||
|
|
||||||
|
console.log('开始领取任务奖励...')
|
||||||
|
|
||||||
|
for (let i = 0; i < cookiesArr.length; i++) {
|
||||||
|
if (cookiesArr[i]) {
|
||||||
|
cookie = cookiesArr[i];
|
||||||
|
$.UserName = decodeURIComponent(cookie.match(/pt_pin=([^; ]+)(?=;?)/) && cookie.match(/pt_pin=([^; ]+)(?=;?)/)[1])
|
||||||
|
$.index = i + 1;
|
||||||
|
UA = helpinfo[$.UserName].ua;
|
||||||
|
console.log(`\n开始【账号${$.index}】${$.UserName}`);
|
||||||
|
if (helpinfo[$.UserName].hot) continue;
|
||||||
|
await gettask();
|
||||||
|
await $.wait(500);
|
||||||
|
for (let item of $.tasklist) {
|
||||||
|
if (item.completedTimes < item.realCompletedTimes) {
|
||||||
|
console.log(`去领取${item.taskName}奖励`);
|
||||||
|
await Award(item.taskId);
|
||||||
|
await $.wait(500);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
await $.wait(1000);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
})()
|
})()
|
||||||
.catch((e) => {
|
.catch((e) => {
|
||||||
$.log('', `❌ ${$.name}, 失败! 原因: ${e}!`, '')
|
$.log('', `❌ ${$.name}, 失败! 原因: ${e}!`, '')
|
||||||
@ -105,6 +133,7 @@ function getinfo(xc) {
|
|||||||
if (data.code == 0) {
|
if (data.code == 0) {
|
||||||
if (xc) {
|
if (xc) {
|
||||||
let sId = data.data.shareId;
|
let sId = data.data.shareId;
|
||||||
|
helpinfo[$.UserName].sId = `${sId}`;
|
||||||
console.log('助力码:' + sId);
|
console.log('助力码:' + sId);
|
||||||
console.log('当前营业金:' + data.data.canUseCoinAmount);
|
console.log('当前营业金:' + data.data.canUseCoinAmount);
|
||||||
}
|
}
|
||||||
@ -134,7 +163,7 @@ function gettask() {
|
|||||||
let tostr = data.match(/\((\{.*?\})\n\)/)[1];
|
let tostr = data.match(/\((\{.*?\})\n\)/)[1];
|
||||||
data = eval('(' + tostr + ')');
|
data = eval('(' + tostr + ')');
|
||||||
if (data.ret == 0) {
|
if (data.ret == 0) {
|
||||||
$.taskstate = data.data.userTaskStatusList[0].awardStatus;
|
$.tasklist = data.data.userTaskStatusList;
|
||||||
} else {
|
} else {
|
||||||
console.log(data.msg);
|
console.log(data.msg);
|
||||||
}
|
}
|
||||||
@ -147,9 +176,9 @@ function gettask() {
|
|||||||
})
|
})
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
function Award() {
|
function Award(id) {
|
||||||
return new Promise(async (resolve) => {
|
return new Promise(async (resolve) => {
|
||||||
$.get(taskUrl('newtasksys/newtasksys_front/Award', `__t=${Date.now()}&source=makemoneyshop&taskId=3532&bizCode=makemoneyshop`), async (err, resp, data) => {
|
$.get(taskUrl('newtasksys/newtasksys_front/Award', `__t=${Date.now()}&source=makemoneyshop&taskId=${id}&bizCode=makemoneyshop`), async (err, resp, data) => {
|
||||||
try {
|
try {
|
||||||
if (err) {
|
if (err) {
|
||||||
console.log(`${JSON.stringify(err)}`)
|
console.log(`${JSON.stringify(err)}`)
|
||||||
@ -158,7 +187,7 @@ function Award() {
|
|||||||
let tostr = data.match(/\((\{.*?\})\n\)/)[1];
|
let tostr = data.match(/\((\{.*?\})\n\)/)[1];
|
||||||
data = eval('(' + tostr + ')');
|
data = eval('(' + tostr + ')');
|
||||||
if (data.ret == 0) {
|
if (data.ret == 0) {
|
||||||
console.log('打扫成功,获得:' + data.data.prizeInfo + '分');
|
console.log('获得营业金:' + (data.data.prizeInfo / 100) + '元');
|
||||||
} else {
|
} else {
|
||||||
console.log(data.msg);
|
console.log(data.msg);
|
||||||
}
|
}
|
||||||
|
File diff suppressed because one or more lines are too long
537
jd_mpdz_car.js
537
jd_mpdz_car.js
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user