Merge pull request #1 from chinnkarahoi/master

update
This commit is contained in:
vvechan 2021-06-01 11:16:14 +08:00 committed by GitHub
commit 76c3f72ef1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
9 changed files with 231 additions and 210 deletions

View File

@ -1,24 +1,24 @@
## 特别声明:
## Special statement:
* 本仓库发布的Script项目中涉及的任何解锁和解密分析脚本仅用于测试和学习研究禁止用于商业用途不能保证其合法性准确性完整性和有效性请根据情况自行判断.
* Any unlocking and decryption analysis scripts involved in the Script project released by this warehouse are only used for testing, learning and research, and are forbidden to be used for commercial purposes. Their legality, accuracy, completeness and effectiveness cannot be guaranteed. Please make your own judgment based on the situation. .
* 本项目内所有资源文件,禁止任何公众号、自媒体进行任何形式的转载、发布。
* All resource files in this project are forbidden to be reproduced or published in any form by any official account or self-media.
* 本仓库对任何脚本问题概不负责,包括但不限于由任何脚本错误导致的任何损失或损害.
* This warehouse is not responsible for any script problems, including but not limited to any loss or damage caused by any script errors.
* 间接使用脚本的任何用户包括但不限于建立VPS或在某些行为违反国家/地区法律或相关法规的情况下进行传播, 本仓库 对于由此引起的任何隐私泄漏或其他后果概不负责.
* Any user who indirectly uses the script, including but not limited to establishing a VPS or disseminating it when certain actions violate national/regional laws or related regulations, this warehouse is not responsible for any privacy leakage or other consequences caused by this.
* 请勿将Script项目的任何内容用于商业或非法目的否则后果自负.
* Do not use any content of the Script project for commercial or illegal purposes, otherwise you will be responsible for the consequences.
* 如果任何单位或个人认为该项目的脚本可能涉嫌侵犯其权利,则应及时通知并提供身份证明,所有权证明,我们将在收到认证文件后删除相关脚本.
* If any unit or individual believes that the script of the project may be suspected of infringing on their rights, they should promptly notify and provide proof of identity and ownership. We will delete the relevant script after receiving the certification document.
* 任何以任何方式查看此项目的人或直接或间接使用该Script项目的任何脚本的使用者都应仔细阅读此声明。本仓库 保留随时更改或补充此免责声明的权利。一旦使用并复制了任何相关脚本或Script项目的规则则视为您已接受此免责声明.
* Anyone who views this item in any way or directly or indirectly uses any script of the Script item should read this statement carefully. This warehouse reserves the right to change or supplement this disclaimer at any time. Once you have used and copied any relevant scripts or rules of the Script project, you are deemed to have accepted this disclaimer.
**您必须在下载后的24小时内从计算机或手机中完全删除以上内容.** </br>
> ***您使用或者复制了本仓库且本人制作的任何脚本,则视为`已接受`此声明,请仔细阅读***
**You must completely delete the above content from your computer or mobile phone within 24 hours after downloading.** </br>
> ***You have used or copied any script made by yourself in this warehouse, it is deemed to have accepted this statement, please read it carefully***
## 特别感谢(排名不分先后)
## Special thanks to:
* [@NobyDa](https://github.com/NobyDa)

View File

@ -25,13 +25,11 @@
#家电星推官 活动时间2021年5月27日 00:00:00-2021年6月18日 23:59:59
0 0 * * * node /scripts/jd_xtg.js >> /scripts/logs/jd_xtg.log 2>&1
#家电星推官 活动时间2021年5月27日 00:00:00-2021年6月18日 23:59:59
#家电星推官好友互助 活动时间2021年5月27日 00:00:00-2021年6月18日 23:59:59
0 0 * * * node /scripts/jd_xtg_help.js >> /scripts/logs/jd_xtg_help.log 2>&1
#金榜创造营 活动时间2021-05-21至2021-12-31
0 1,22 * * * node /scripts/jd_gold_creator.js >> /scripts/logs/jd_gold_creator.log 2>&1
#京东沸腾之夜(5.31日有效)
0 15-19/1 * * * node /scripts/jd_party_night.js >> /scripts/logs/jd_party_night.log 2>&1
##############长期活动##############
# 签到
7 0,17 * * * cd /scripts && node jd_bean_sign.js >> /scripts/logs/jd_bean_sign.log 2>&1

View File

@ -37,8 +37,8 @@ if ($.isNode()) {
}
const JD_API_HOST = 'https://api.m.jd.com/client.action';
let inviteCodes = [
'xBd-HlYMlLUzqSkuz0qzAzuayqOG3FfAIeOTGLowr29_KbnH2bV4EX4@RtGKzr_wSAn2eIKZRdRm07jvOMS2zVH-g8ri6aOIZPDcI8v7CA@RtGKzr-gRAmmdoaZQdcz30FEv6dt0Mio6a5hyr9dt0vq1P8G0g@RtGKz-WhSAjyL4GfFtY2gs1_v5yhlLelj5Ko2YGb24YTen5vjA',
'xBd-HlYMlLUzqSkuz0qzAzuayqOG3FfAIeOTGLowr29_KbnH2bV4EX4@RtGKzr_wSAn2eIKZRdRm07jvOMS2zVH-g8ri6aOIZPDcI8v7CA@RtGKzr-gRAmmdoaZQdcz30FEv6dt0Mio6a5hyr9dt0vq1P8G0g@RtGKz-WhSAjyL4GfFtY2gs1_v5yhlLelj5Ko2YGb24YTen5vjA'
'xBd-HlYMlLUzqSkuz0qzAzuayqOG3FfAIeOTGLowr29_KbnH2bV4EX4@RtGKzr_wSAn2eIKZRdRm07jvOMS2zVH-g8ri6aOIZPDcI8v7CA@RtGKzr-gRAmmdoaZQdcz30FEv6dt0Mio6a5hyr9dt0vq1P8G0g@RtGKz-ygEAj2e9aYH4U10HcN_2_yeoSSOH50A7CItcn6lB6jwQ',
'RtGKz-ygEAj2e9aYH4U10HcN_2_yeoSSOH50A7CItcn6lB6jwQ'
]
!(async () => {
if (!cookiesArr[0]) {

View File

@ -18,7 +18,7 @@ Object.keys(jdCookieNode).forEach((item) => {
if (process.env.JD_DEBUG && process.env.JD_DEBUG === 'false') console.log = () => {};
if (JSON.stringify(process.env).indexOf('GITHUB') > -1) process.exit(0);
const appIdArr = ['1EFRRxA','1EFRQwA','1EFRYxQ','1EFRXxg','1EFVRwA','1EFVRxw','1EFRZwA','1EFRZwQ','1EFRYwA'];
const appIdArr = ['1EFRRxA','1EFRQwA','1EFVRxQ','1EFRXxg','1EFVRwA','1EFVRxw','1EFRZwA','1EFRZwQ','1EFRYwA'];
const homeDataFunPrefixArr = ['interact_template','interact_template','harmony_template','','','','','','','','','','','','','','','interact_template','interact_template'];
const collectScoreFunPrefixArr = ['','','','','','','','','','','','','','','','','','interact_template','interact_template'];
$.allShareId = {};

View File

@ -64,7 +64,7 @@ if ($.isNode()) {
continue
}
try {
await jdMh('https://h5.m.jd.com/babelDiy/Zeus/3eeruLXVbXge6CexVq8XkBbBvAfy/index.html')
//await jdMh('https://h5.m.jd.com/babelDiy/Zeus/3eeruLXVbXge6CexVq8XkBbBvAfy/index.html')
await jdMh('https://h5.m.jd.com/babelDiy/Zeus/2k7Tx67WzLHDtdDNB2KPnqWEwavX/index.html')
// await jdMh('https://anmp.jd.com/babelDiy/Zeus/yiNQjMxQvs3R3SdS4nwa2MFk1FE/index.html?wxAppName=jd')
} catch (e) {

View File

@ -42,56 +42,70 @@ if ($.isNode()) {
$.msg($.name, '【提示】请先获取京东账号一cookie\n直接使用NobyDa的京东签到获取', 'https://bean.m.jd.com/bean/signIndex.action', {"open-url": "https://bean.m.jd.com/bean/signIndex.action"});
return;
}
for (let i = 0; i < cookiesArr.length; i++) {
$.index = i + 1;
$.cookie = cookiesArr[i];
$.UserName = decodeURIComponent($.cookie.match(/pt_pin=([^; ]+)(?=;?)/) && $.cookie.match(/pt_pin=([^; ]+)(?=;?)/)[1]);
console.log(`\n*****开始【京东账号${$.index}${$.nickName || $.UserName}*****\n`);
await partyNight();
await $.wait(3000);
}
//助力-------------------------
for (let i = 0; i < cookiesArr.length; i++) {
$.index = i + 1;
$.cookie = cookiesArr[i];
$.UserName = decodeURIComponent($.cookie.match(/pt_pin=([^; ]+)(?=;?)/) && $.cookie.match(/pt_pin=([^; ]+)(?=;?)/)[1]);
console.log(`\n*****开始【京东账号${$.index}${$.nickName || $.UserName}*****\n`);
$.canHelp = true;
for (let j = 0; j < $.inviteCodeList.length && $.canHelp; j++) {
await $.wait(2000);
$.oneInviteInfo = $.inviteCodeList[j];
if($.oneInviteInfo.use === $.UserName){
continue;
for (let i = 0; i < 5; i++) {
console.log(`开始第${i+1}次抽奖`);
for (let i = 0; i < cookiesArr.length; i++) {
$.index = i + 1;
$.cookie = cookiesArr[i];
$.UserName = decodeURIComponent($.cookie.match(/pt_pin=([^; ]+)(?=;?)/) && $.cookie.match(/pt_pin=([^; ]+)(?=;?)/)[1]);
console.log(`\n*****开始【京东账号${$.index}${$.nickName || $.UserName}*****\n`);
await partyNight();
if(cookiesArr.length>5){
await $.wait(1500);
}else{
await $.wait(5000);
}
if($.oneInviteInfo.max){
continue;
}
$.inviteCode = $.oneInviteInfo.inviteCode;
console.log(`${$.UserName}去助力${$.oneInviteInfo.use},助力码:${$.inviteCode}`)
await takePostRequest('partyTonight_assist');
}
//await $.wait(3000);
}
// //助力-------------------------
// for (let i = 0; i < cookiesArr.length; i++) {
// $.index = i + 1;
// $.cookie = cookiesArr[i];
// $.UserName = decodeURIComponent($.cookie.match(/pt_pin=([^; ]+)(?=;?)/) && $.cookie.match(/pt_pin=([^; ]+)(?=;?)/)[1]);
// console.log(`\n*****开始【京东账号${$.index}】${$.nickName || $.UserName}*****\n`);
// $.canHelp = true;
// for (let j = 0; j < $.inviteCodeList.length && $.canHelp; j++) {
// await $.wait(2000);
// $.oneInviteInfo = $.inviteCodeList[j];
// if($.oneInviteInfo.use === $.UserName){
// continue;
// }
// if($.oneInviteInfo.max){
// continue;
// }
// $.inviteCode = $.oneInviteInfo.inviteCode;
// console.log(`${$.UserName}去助力${$.oneInviteInfo.use},助力码:${$.inviteCode}`)
// await takePostRequest('partyTonight_assist');
// }
// //await $.wait(3000);
// }
})()
.catch((e) => {
$.log('', `${$.name}, 失败! 原因: ${e}!`, '')
})
.finally(() => {
$.done();
})
.catch((e) => {
$.log('', `${$.name}, 失败! 原因: ${e}!`, '')
})
.finally(() => {
$.done();
})
async function partyNight(){
$.mainInfo = {};
await takePostRequest('partyTonight_init');
if(JSON.stringify($.mainInfo) === '{}'){
return ;
}else {
console.log('获取活动信息成功');
}
//预约
await $.wait(2000);
await takePostRequest('partyTonight_remind');
// $.mainInfo = {};
// await takePostRequest('partyTonight_init');
// if(JSON.stringify($.mainInfo) === '{}'){
// return ;
// }else {
// console.log('获取活动信息成功');
// }
$.runFlag = true;
//for (let i = 0; i < 10 && $.runFlag; i++) {
await takePostRequest('partyTonight_lottery');
//await $.wait(5000);
//}
//预约
//await $.wait(2000);
//await takePostRequest('partyTonight_remind');
}
async function takePostRequest(type) {
@ -110,6 +124,10 @@ async function takePostRequest(type) {
body = `functionId=partyTonight_assist&body={"inviteCode":"${$.inviteCode}"}&client=wh5&clientVersion=1.0.0&uuid=`;
myRequest = getPostRequest(`partyTonight_assist`, body);
break;
case 'partyTonight_lottery':
body = `functionId=partyTonight_lottery&body={}&client=wh5&clientVersion=1.0.0&uuid=`;
myRequest = getPostRequest(`partyTonight_lottery`, body);
break;
default:
console.log(`错误${type}`);
}
@ -143,11 +161,11 @@ function dealReturn(type, data) {
console.log(`助力已满`);
}else{
$.inviteCodeList.push(
{
'inviteCode':$.inviteCode,
'use':$.UserName,
'max':false
}
{
'inviteCode':$.inviteCode,
'use':$.UserName,
'max':false
}
)
}
}else{
@ -171,8 +189,24 @@ function dealReturn(type, data) {
}
console.log(JSON.stringify(data));
break;
case 'partyTonight_lottery':
if (data.code === 0 && data.data && data.data.bizCode === 0) {
let result = data.data.result;
if(result.type === 1){
console.log(`获得红包:${result.hongbaoValue}`);
}else if(result.type === 2){
console.log(`获得优惠券:`);
}else if(result.type === 3){
console.log(`获得京豆:${result.beanCount}`);
}else{
console.log(JSON.stringify(data));
}
}else {
$.runFlag = false;
console.log(JSON.stringify(data));
}
break;
default:
console.log(`未判断的异常${type}`);
}
}

View File

@ -1,7 +1,7 @@
/*
京东极速版红包
自动提现微信现金
更新时间2021-5-228
更新时间2021-5-31
活动时间2021-4-6至2021-5-30
活动地址https://prodev.m.jd.com/jdlite/active/31U4T6S4PbcK83HyLPioeCWrD63j/index.html
活动入口京东极速版-领红包
@ -83,10 +83,11 @@ async function jsRedPacket() {
await sign();//极速版签到提现
await reward_query();
for (let i = 0; i < 3; ++i) {
await redPacket()
await redPacket();//开红包
await $.wait(500)
}
await getPacketList()
await getPacketList();//领红包提现
await signPrizeDetailList();
await showMsg()
} catch (e) {
$.logErr(e)
@ -238,6 +239,115 @@ function getPacketList() {
})
})
}
function signPrizeDetailList() {
return new Promise(resolve => {
const body = {"linkId":signLinkId,"serviceName":"dayDaySignGetRedEnvelopeSignService","business":1,"pageSize":20,"page":1};
const options = {
url: `https://api.m.jd.com`,
body: `functionId=signPrizeDetailList&body=${escape(JSON.stringify(body))}&_t=${+new Date()}&appid=activities_platform`,
headers: {
'Cookie': cookie,
"Host": "api.m.jd.com",
'Origin': 'https://daily-redpacket.jd.com',
"Content-Type": "application/x-www-form-urlencoded",
"Accept": "*/*",
"Connection": "keep-alive",
"User-Agent": "jdltapp;iPhone;3.3.2;14.5.1network/wifi;hasUPPay/0;pushNoticeIsOpen/1;lang/zh_CN;model/iPhone13,2;addressid/137923973;hasOCPay/0;appBuild/1047;supportBestPay/0;pv/467.11;apprpd/MyJD_Main;",
"Accept-Language": "zh-Hans-CN;q=1, en-CN;q=0.9, zh-Hant-CN;q=0.8",
'Referer': 'https://daily-redpacket.jd.com/?activityId=9WA12jYGulArzWS7vcrwhw',
"Accept-Encoding": "gzip, deflate, br"
}
}
$.post(options, async (err, resp, data) => {
try {
if (err) {
console.log(`${JSON.stringify(err)}`)
console.log(`${$.name} API请求失败请检查网路重试`)
} else {
if (safeGet(data)) {
data = $.toObj(data);
if (data.code === 0) {
if (data.data.code === 0) {
const list = (data.data.prizeDrawBaseVoPageBean.items || []).filter(vo => vo['prizeType'] === 4 && vo['prizeStatus'] === 0);
for (let code of list) {
console.log(`极速版签到提现,去提现${code['prizeValue']}现金\n`);
message += `极速版签到提现,去提现${code['prizeValue']}微信现金,`
await apCashWithDraw(code['id'], code['poolBaseId'], code['prizeGroupId'], code['prizeBaseId']);
}
} else {
console.log(`极速版签到查询奖品:失败:${JSON.stringify(data)}\n`);
}
} else {
console.log(`极速版签到查询奖品:异常:${JSON.stringify(data)}\n`);
}
}
}
} catch (e) {
$.logErr(e, resp)
} finally {
resolve(data);
}
})
})
}
function apCashWithDraw(id, poolBaseId, prizeGroupId, prizeBaseId) {
return new Promise(resolve => {
const body = {
"linkId": signLinkId,
"businessSource": "DAY_DAY_RED_PACKET_SIGN",
"base": {
"prizeType": 4,
"business": "dayDayRedPacket",
"id": id,
"poolBaseId": poolBaseId,
"prizeGroupId": prizeGroupId,
"prizeBaseId": prizeBaseId
}
}
const options = {
url: `https://api.m.jd.com`,
body: `functionId=apCashWithDraw&body=${escape(JSON.stringify(body))}&_t=${+new Date()}&appid=activities_platform`,
headers: {
'Cookie': cookie,
"Host": "api.m.jd.com",
'Origin': 'https://daily-redpacket.jd.com',
"Content-Type": "application/x-www-form-urlencoded",
"Accept": "*/*",
"Connection": "keep-alive",
"User-Agent": "jdltapp;iPhone;3.3.2;14.5.1network/wifi;hasUPPay/0;pushNoticeIsOpen/1;lang/zh_CN;model/iPhone13,2;addressid/137923973;hasOCPay/0;appBuild/1047;supportBestPay/0;pv/467.11;apprpd/MyJD_Main;",
"Accept-Language": "zh-Hans-CN;q=1, en-CN;q=0.9, zh-Hant-CN;q=0.8",
'Referer': 'https://daily-redpacket.jd.com/?activityId=9WA12jYGulArzWS7vcrwhw',
"Accept-Encoding": "gzip, deflate, br"
}
}
$.post(options, async (err, resp, data) => {
try {
if (err) {
console.log(`${JSON.stringify(err)}`)
console.log(`${$.name} API请求失败请检查网路重试`)
} else {
if (safeGet(data)) {
data = $.toObj(data);
if (data.code === 0) {
if (data.data.status === "310") {
console.log(`极速版签到提现现金成功!`)
message += `极速版签到提现现金成功!`;
} else {
console.log(`极速版签到提现现金:失败:${JSON.stringify(data)}\n`);
}
} else {
console.log(`极速版签到提现现金:异常:${JSON.stringify(data)}\n`);
}
}
}
} catch (e) {
$.logErr(e, resp)
} finally {
resolve(data);
}
})
})
}
function cashOut(id,poolBaseId,prizeGroupId,prizeBaseId,) {
let body = {
"businessSource": "SPRING_FESTIVAL_RED_ENVELOPE",
@ -265,7 +375,7 @@ function cashOut(id,poolBaseId,prizeGroupId,prizeBaseId,) {
if (data.code === 0) {
if (data['data']['status'] === "310") {
console.log(`提现成功!`)
message += `提现成功!`;
message += `提现成功!\n`;
} else {
console.log(`提现失败:${data['data']['message']}`);
message += `提现失败:${data['data']['message']}`;

151
jd_zoo.js

File diff suppressed because one or more lines are too long

View File

@ -64,12 +64,12 @@ inputs:
cronExpression: "0 15 */1 * * * *"
enable: true
argument: jd_superMarket&jd_syj&jd_city&jd_zoo
- timer: #京豆变动通知 #疯狂的joy #监控crazyJoy分红 #京东排行榜 #领京豆额外奖励 #京东保价 #闪购盲盒
- timer: #京豆变动通知 #疯狂的joy #监控crazyJoy分红 #京东排行榜 #领京豆额外奖励 #京东保价 #闪购盲盒 #京东沸腾之夜
parameters:
name: beanchange_crazyjoy_crazyjoybonus_rankingList_beanhome_price_sgmh
name: beanchange_crazyjoy_crazyjoybonus_rankingList_beanhome_price_sgmh_partynight
cronExpression: "0 30 7 * * * *"
enable: true
argument: jd_bean_change&jd_crazy_joy&jd_crazy_joy_bonus&jd_rankingList&jd_bean_home&jd_price&jd_sgmh
argument: jd_bean_change&jd_crazy_joy&jd_crazy_joy_bonus&jd_rankingList&jd_bean_home&jd_price&jd_sgmh&jd_party_nigth
- timer: #金融养猪 #京东快递 #京东赚赚 #京喜签到 #京东极速版红包 #领金贴
parameters:
name: pigPet_kd_jdzz_sign_speedredpocke_jintie