mirror of
https://github.com/shufflewzc/faker2.git
synced 2025-04-23 02:48:44 +08:00
update
This commit is contained in:
parent
30b7cbf084
commit
9ec554b434
File diff suppressed because one or more lines are too long
@ -1715,6 +1715,7 @@ function getUUID(x = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx", t = 0) {
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
function redPacket() {
|
||||
return new Promise(async resolve => {
|
||||
const options = {
|
||||
@ -1742,41 +1743,60 @@ function redPacket() {
|
||||
$.jsRed = 0,
|
||||
$.jdRed = 0,
|
||||
$.jdhRed = 0,
|
||||
$.jdwxRed = 0,
|
||||
$.jdGeneralRed = 0,
|
||||
$.jxRedExpire = 0,
|
||||
$.jsRedExpire = 0,
|
||||
$.jdRedExpire = 0,
|
||||
$.jdhRedExpire = 0;
|
||||
$.jdwxRedExpire = 0,
|
||||
$.jdGeneralRedExpire = 0
|
||||
|
||||
let t = new Date();
|
||||
t.setDate(t.getDate() + 1);
|
||||
t.setHours(0, 0, 0, 0);
|
||||
t = parseInt((t - 1) / 1000);
|
||||
//console.log(JSON.stringify(data.useRedInfo.redList))
|
||||
for (let vo of data.useRedInfo.redList || []) {
|
||||
if (vo.orgLimitStr && vo.orgLimitStr.includes("京喜")) {
|
||||
if (vo.limitStr && vo.limitStr.includes("京喜")) {
|
||||
$.jxRed += parseFloat(vo.balance)
|
||||
if (vo['endTime'] === t) {
|
||||
$.jxRedExpire += parseFloat(vo.balance)
|
||||
}
|
||||
} else if (vo.activityName.includes("极速版") || vo.activityName.includes("京东特价")) {
|
||||
} else if (vo.limitStr.includes("购物小程序")) {
|
||||
$.jdwxRed += parseFloat(vo.balance)
|
||||
if (vo['endTime'] === t) {
|
||||
$.jdwxRedExpire += parseFloat(vo.balance)
|
||||
}
|
||||
} else if (vo.limitStr.includes("京东商城")) {
|
||||
$.jdRed += parseFloat(vo.balance)
|
||||
if (vo['endTime'] === t) {
|
||||
$.jdRedExpire += parseFloat(vo.balance)
|
||||
}
|
||||
} else if (vo.limitStr.includes("极速版") || vo.limitStr.includes("京东特价")) {
|
||||
$.jsRed += parseFloat(vo.balance)
|
||||
if (vo['endTime'] === t) {
|
||||
$.jsRedExpire += parseFloat(vo.balance)
|
||||
}
|
||||
} else if (vo.orgLimitStr && vo.orgLimitStr.includes("京东健康")) {
|
||||
} else if (vo.limitStr && vo.limitStr.includes("京东健康")) {
|
||||
$.jdhRed += parseFloat(vo.balance)
|
||||
if (vo['endTime'] === t) {
|
||||
$.jdhRedExpire += parseFloat(vo.balance)
|
||||
}
|
||||
} else {
|
||||
$.jdRed += parseFloat(vo.balance)
|
||||
$.jdGeneralRed += parseFloat(vo.balance)
|
||||
if (vo['endTime'] === t) {
|
||||
$.jdRedExpire += parseFloat(vo.balance)
|
||||
$.jdGeneralRedExpire += parseFloat(vo.balance)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
$.jxRed = $.jxRed.toFixed(2);
|
||||
$.jsRed = $.jsRed.toFixed(2);
|
||||
$.jdRed = $.jdRed.toFixed(2);
|
||||
$.jdhRed = $.jdhRed.toFixed(2);
|
||||
$.jdwxRed = $.jdwxRed.toFixed(2);
|
||||
$.jdGeneralRed = $.jdGeneralRed.toFixed(2);
|
||||
$.balance = data.balance;
|
||||
$.expiredBalance = ($.jxRedExpire + $.jsRedExpire + $.jdRedExpire).toFixed(2);
|
||||
$.message += `【红包总额】${$.balance}(总过期${$.expiredBalance})元 \n`;
|
||||
@ -1788,6 +1808,10 @@ function redPacket() {
|
||||
$.message += `【京东红包】${$.jdRed}(将过期${$.jdRedExpire.toFixed(2)})元 \n`;
|
||||
if ($.jdhRed > 0)
|
||||
$.message += `【健康红包】${$.jdhRed}(将过期${$.jdhRedExpire.toFixed(2)})元 \n`;
|
||||
if ($.jdwxRed > 0)
|
||||
$.message += `【微信小程序】${$.jdwxRed}(将过期${$.jdwxRedExpire.toFixed(2)})元 \n`;
|
||||
if ($.jdGeneralRed > 0)
|
||||
$.message += `【全平台通用】${$.jdGeneralRed}(将过期${$.jdGeneralRedExpire.toFixed(2)})元 \n`;
|
||||
} else {
|
||||
console.log(`京东服务器返回空数据`)
|
||||
}
|
||||
@ -1873,7 +1897,7 @@ function getCoupon() {
|
||||
}
|
||||
|
||||
}
|
||||
if (useable[i].couponTitle.indexOf('极速版APP活动') > -1 && useable[i].limitStr=='仅可购买活动商品') {
|
||||
if (useable[i].couponTitle.indexOf('特价版APP活动') > -1 && useable[i].limitStr=='仅可购买活动商品') {
|
||||
$.beginTime = useable[i].beginTime;
|
||||
if ($.beginTime < new Date().getTime() && useable[i].coupontype === 1) {
|
||||
if (useable[i].platFormInfo)
|
||||
@ -1881,7 +1905,7 @@ function getCoupon() {
|
||||
var decquota=parseFloat(useable[i].quota).toFixed(2);
|
||||
var decdisc= parseFloat(useable[i].discount).toFixed(2);
|
||||
|
||||
$.message += `【极速版券】满${decquota}减${decdisc}元`;
|
||||
$.message += `【特价版券】满${decquota}减${decdisc}元`;
|
||||
|
||||
if (useable[i].endTime < $.todayEndTime) {
|
||||
$.message += `(今日过期,${$.platFormInfo})\n`;
|
||||
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -9,7 +9,7 @@
|
||||
DYJSHAREID = 'xxx&xxx&xxx'
|
||||
10 10 10 10 * https://raw.githubusercontent.com/6dylan6/jdpro/main/jd_makemoneyshop.js
|
||||
By: https://github.com/6dylan6/jdpro
|
||||
updatetime: 2022/11/13 修复已知bug
|
||||
updatetime: 2022/11/13 不过滤黑号了,直接助力
|
||||
*/
|
||||
|
||||
const $ = new Env('特价版大赢家');
|
||||
@ -40,33 +40,33 @@ let helpinfo = {};
|
||||
return;
|
||||
}
|
||||
console.log('\n运行一遍可以看到助力码,然后设置需要助力的!')
|
||||
console.log('\n运行流程:设置助力码--过滤黑号--助力--领取任务奖励!!!\n')
|
||||
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;
|
||||
$.isLogin = true;
|
||||
$.nickName = '';
|
||||
$.canUseCoinAmount = 0;
|
||||
helpinfo[$.UserName] = {};
|
||||
UA = require('./USER_AGENTS').UARAM();
|
||||
helpinfo[$.UserName].ua = UA;
|
||||
await TotalBean();
|
||||
console.log(`\n******开始【京东账号${$.index}】${$.nickName || $.UserName}*********\n`);
|
||||
if (!$.isLogin) {
|
||||
$.msg($.name, `【提示】cookie已失效`, `京东账号${$.index} ${$.nickName || $.UserName}\n请重新登录获取\nhttps://bean.m.jd.com/bean/signIndex.action`, { "open-url": "https://bean.m.jd.com/bean/signIndex.action" });
|
||||
if ($.isNode()) {
|
||||
await notify.sendNotify(`${$.name}cookie已失效 - ${$.UserName}`, `京东账号${$.index} ${$.UserName}\n请重新登录获取cookie`);
|
||||
}
|
||||
continue
|
||||
}
|
||||
console.log('\n运行流程:助力--领取任务奖励!!!\n')
|
||||
// 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;
|
||||
// $.isLogin = true;
|
||||
// $.nickName = '';
|
||||
// $.canUseCoinAmount = 0;
|
||||
// helpinfo[$.UserName] = {};
|
||||
// UA = require('./USER_AGENTS').UARAM();
|
||||
// helpinfo[$.UserName].ua = UA;
|
||||
// await TotalBean();
|
||||
// console.log(`\n******开始【京东账号${$.index}】${$.nickName || $.UserName}*********\n`);
|
||||
// if (!$.isLogin) {
|
||||
// $.msg($.name, `【提示】cookie已失效`, `京东账号${$.index} ${$.nickName || $.UserName}\n请重新登录获取\nhttps://bean.m.jd.com/bean/signIndex.action`, { "open-url": "https://bean.m.jd.com/bean/signIndex.action" });
|
||||
// if ($.isNode()) {
|
||||
// await notify.sendNotify(`${$.name}cookie已失效 - ${$.UserName}`, `京东账号${$.index} ${$.UserName}\n请重新登录获取cookie`);
|
||||
// }
|
||||
// continue
|
||||
// }
|
||||
|
||||
await getinfo(1);
|
||||
await $.wait(1000);
|
||||
}
|
||||
// await getinfo(1);
|
||||
// await $.wait(1000);
|
||||
// }
|
||||
|
||||
}
|
||||
// }
|
||||
if (shareId.length > 0) {
|
||||
console.log('\n\n开始助力...')
|
||||
$.index = 1;
|
||||
@ -84,7 +84,9 @@ let helpinfo = {};
|
||||
cookie = cookiesArr[i];
|
||||
$.UserName = decodeURIComponent(cookie.match(/pt_pin=([^; ]+)(?=;?)/) && cookie.match(/pt_pin=([^; ]+)(?=;?)/)[1]);
|
||||
$.index = i + 1;
|
||||
UA = helpinfo[$.UserName].ua;
|
||||
helpinfo[$.UserName] = {};
|
||||
UA = require('./USER_AGENTS').UARAM();
|
||||
helpinfo[$.UserName].ua = UA;
|
||||
console.log(`\n开始【账号${$.index}】${$.nickName || $.UserName}`);
|
||||
if (helpinfo[$.UserName].nohelp) { console.log('已无助力次数了'); continue };
|
||||
if (helpinfo[$.UserName].hot) { console.log('可能黑了,跳过!'); continue };
|
||||
@ -105,9 +107,16 @@ let helpinfo = {};
|
||||
cookie = cookiesArr[i];
|
||||
$.UserName = decodeURIComponent(cookie.match(/pt_pin=([^; ]+)(?=;?)/) && cookie.match(/pt_pin=([^; ]+)(?=;?)/)[1])
|
||||
$.index = i + 1;
|
||||
$.canUseCoinAmount = 0;
|
||||
try {
|
||||
UA = helpinfo[$.UserName].ua;
|
||||
} catch (e) {
|
||||
UA = require('./USER_AGENTS').UARAM();
|
||||
}
|
||||
console.log(`\n开始【账号${$.index}】${$.UserName}`);
|
||||
if (helpinfo[$.UserName].hot) continue;
|
||||
//if (helpinfo[$.UserName].hot) continue;
|
||||
await getinfo(1);
|
||||
await $.wait(200);
|
||||
await gettask();
|
||||
await $.wait(500);
|
||||
for (let item of $.tasklist) {
|
||||
@ -148,9 +157,10 @@ function getinfo(xc) {
|
||||
console.log('助力码:' + sId);
|
||||
console.log('当前营业金:' + data.data.canUseCoinAmount);
|
||||
}
|
||||
} else if (data.msg.indexOf('火爆') > -1) {
|
||||
console.log('此CK可能黑了!');
|
||||
} else {
|
||||
console.log(data.msg);
|
||||
$.hotflag = true;
|
||||
helpinfo[$.UserName].hot = 1;
|
||||
}
|
||||
}
|
||||
@ -238,6 +248,8 @@ function help(shareid) {
|
||||
// $.qqq.push($.index);
|
||||
} else if (data.code === 1008) {
|
||||
console.log('今日无助力次数了!');
|
||||
} else if (data.msg.indexOf('火爆') > -1) {
|
||||
console.log('此CK助力可能黑了!');
|
||||
} else {
|
||||
console.log(data.msg);
|
||||
}
|
||||
|
File diff suppressed because one or more lines are too long
293
jd_subject.js
Normal file
293
jd_subject.js
Normal file
File diff suppressed because one or more lines are too long
22
jd_wish.js
22
jd_wish.js
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user