mirror of
https://github.com/shufflewzc/faker3.git
synced 2026-04-04 08:54:08 +08:00
sync
This commit is contained in:
@@ -1,17 +1,15 @@
|
||||
/*
|
||||
特务集卡
|
||||
脚本没有自动开卡,会尝试领取开卡奖励
|
||||
cron:35 10,18,20 16 5 *
|
||||
第一个CK黑号会退出
|
||||
cron:2 10,18,20 * * *
|
||||
|
||||
2 10,18,20 * * * jd_superBrandJK.js
|
||||
*/
|
||||
|
||||
35 10,18,20 16 5 * jd_superBrand.js
|
||||
* */
|
||||
/*
|
||||
特务集卡
|
||||
脚本没有自动开卡,会尝试领取开卡奖励
|
||||
10 10,18,20 * * * https://github.com/6dylan6/jdpro/jd_twjk.js
|
||||
* */
|
||||
const $ = new Env('特务集卡');
|
||||
const jdCookieNode = $.isNode() ? require('./jdCookie.js') : '';
|
||||
const notify = $.isNode() ? require('./sendNotify') : '';
|
||||
let cookiesArr = [];
|
||||
if ($.isNode()) {
|
||||
Object.keys(jdCookieNode).forEach((item) => {
|
||||
@@ -27,6 +25,7 @@ if ($.isNode()) {
|
||||
}
|
||||
console.log('\n活动地址:首页下拉,需要开卡才能100%集齐,没有开卡的手动开,集齐晚上8点后瓜分\n')
|
||||
let shareList=[];
|
||||
$.flag = false
|
||||
!(async()=>{
|
||||
if(!cookiesArr[0]){
|
||||
$.msg($.name,'【提示】请先获取京东账号一cookie直接使用NobyDa的京东签到获取','https://bean.m.jd.com/bean/signIndex.action',{'open-url':'https://bean.m.jd.com/bean/signIndex.action'});
|
||||
@@ -47,7 +46,9 @@ let shareList=[];
|
||||
}
|
||||
continue;
|
||||
}try{
|
||||
|
||||
await main($.cookie);
|
||||
if (_0x44559b == 0 && $.flag) return;
|
||||
}catch(_0x282ca){
|
||||
console.log(JSON.stringify(_0x282ca));
|
||||
}
|
||||
@@ -88,7 +89,7 @@ let shareList=[];
|
||||
console.log('助力次数已用完');
|
||||
_0x4ce29d=false;
|
||||
}
|
||||
console.log('助力结果:'+JSON.stringify(_0x224f8e));
|
||||
console.log('助力结果:'+_0x224f8e.bizMsg);
|
||||
await $.wait(2000);
|
||||
}
|
||||
}
|
||||
@@ -101,7 +102,8 @@ async function main(_0x14f2ac){
|
||||
let _0xc6f9d4=decodeURIComponent(_0x14f2ac.match(/pt_pin=(.+?);/)&&_0x14f2ac.match(/pt_pin=(.+?);/)[1]);
|
||||
let _0x43a9de=await takeRequest(_0x14f2ac,'showSecondFloorCardInfo','{"source":"card"}');
|
||||
if(JSON.stringify(_0x43a9de)==='{}'||!_0x43a9de||!_0x43a9de.result||!_0x43a9de.result.activityBaseInfo){
|
||||
console.log(_0xc6f9d4+',获取活动详情失败1');
|
||||
console.log('本期活动结束,等待下期。。。');
|
||||
$.flag = true
|
||||
return;
|
||||
}
|
||||
let _0x215414=_0x43a9de.result.activityBaseInfo;
|
||||
@@ -122,7 +124,7 @@ async function main(_0x14f2ac){
|
||||
if((_0x34eeb3.divideTimeStatus===1)&&(_0x34eeb3.divideStatus===0)&&_0x34eeb3.cardStatus===1){
|
||||
console.log(_0xc6f9d4+',去瓜分');
|
||||
let _0x2a25b6=await takeRequest(_0x14f2ac,'superBrandTaskLottery','{"source":"card","activityId":'+_0x23add7+',"encryptProjectId":"'+_0x5add38+'","tag":"divide"}');
|
||||
console.log('结果:'+JSON.stringify(_0x2a25b6));
|
||||
console.log('瓜分结果:'+_0x2a25b6.result.userAwardInfo.beanNum+'豆\n');
|
||||
return;
|
||||
}else if(_0x34eeb3.divideTimeStatus===1&&_0x34eeb3.divideStatus===1&&(_0x34eeb3.cardStatus===1)){
|
||||
console.log(_0xc6f9d4+',已瓜分');
|
||||
@@ -138,38 +140,38 @@ async function main(_0x14f2ac){
|
||||
for(let _0x5d0f56=0;_0x5d0f56<_0x2ec90c;_0x5d0f56++){
|
||||
console.log('领取助力奖励');
|
||||
let _0x9b8d5a=await takeRequest(_0x14f2ac,'superBrandTaskLottery','{"source":"card","activityId":'+_0x23add7+',"encryptProjectId":"'+_0x5add38+'"}');
|
||||
console.log('结果:'+JSON.stringify(_0x9b8d5a));
|
||||
console.log('领取结果:'+_0x9b8d5a.bizMsg);
|
||||
await $.wait(3000);
|
||||
}
|
||||
}if(_0x4a424c.completionFlag){
|
||||
console.log('任务:'+_0x4a424c.assignmentName+',已完成');
|
||||
continue;
|
||||
}if(_0x4a424c.assignmentType===1){
|
||||
console.log('任务:'+_0x4a424c.assignmentName+',去执行,请稍稍');
|
||||
console.log('任务:'+_0x4a424c.assignmentName+',去执行');
|
||||
let _0x3c7f29=_0x4a424c.ext.shoppingActivity[0].itemId||'';
|
||||
if(!_0x3c7f29){
|
||||
console.log('任务:'+_0x4a424c.assignmentName+',信息异常');
|
||||
}
|
||||
let _0x2d2e7c=await takeRequest(_0x14f2ac,'superBrandDoTask','{"source":"card","activityId":'+_0x23add7+',"encryptProjectId":"'+_0x5add38+'","encryptAssignmentId":"'+_0x4a424c.encryptAssignmentId+'","assignmentType":'+_0x4a424c.assignmentType+',"itemId":"'+_0x3c7f29+'","actionType":0}');
|
||||
console.log('执行结果:'+JSON.stringify(_0x2d2e7c));
|
||||
console.log('执行结果:'+_0x2d2e7c.bizMsg);
|
||||
await $.wait(3000);
|
||||
}if(_0x4a424c.assignmentType===3){
|
||||
console.log('任务:'+_0x4a424c.assignmentName+',去执行,请稍稍');
|
||||
console.log('任务:'+_0x4a424c.assignmentName+',去执行');
|
||||
let _0x440f46=_0x4a424c.ext.followShop[0].itemId||'';
|
||||
if(!_0x440f46){
|
||||
console.log('任务:'+_0x4a424c.assignmentName+',信息异常');
|
||||
}
|
||||
let _0x2d2e7c=await takeRequest(_0x14f2ac,'superBrandDoTask','{"source":"card","activityId":'+_0x23add7+',"encryptProjectId":"'+_0x5add38+'","encryptAssignmentId":"'+_0x4a424c.encryptAssignmentId+'","assignmentType":'+_0x4a424c.assignmentType+',"itemId":"'+_0x440f46+'","actionType":0}');
|
||||
console.log('执行结果:'+JSON.stringify(_0x2d2e7c));
|
||||
console.log('执行结果:'+_0x2d2e7c.bizMsg);
|
||||
await $.wait(3000);
|
||||
}if(_0x4a424c.assignmentType===7){
|
||||
console.log('任务:'+_0x4a424c.assignmentName+',去执行,请稍稍');
|
||||
console.log('任务:'+_0x4a424c.assignmentName+',去执行');
|
||||
let _0x25a600=_0x4a424c.ext.brandMemberList[0].itemId||'';
|
||||
if(!_0x25a600){
|
||||
console.log('任务:'+_0x4a424c.assignmentName+',信息异常');
|
||||
}
|
||||
let _0x2d2e7c=await takeRequest(_0x14f2ac,'superBrandDoTask','{"source":"card","activityId":'+_0x23add7+',"encryptProjectId":"'+_0x5add38+'","encryptAssignmentId":"'+_0x4a424c.encryptAssignmentId+'","assignmentType":'+_0x4a424c.assignmentType+',"itemId":"'+_0x25a600+'","actionType":0}');
|
||||
console.log('执行结果:'+JSON.stringify(_0x2d2e7c));
|
||||
console.log('执行结果:'+_0x2d2e7c.bizMsg);
|
||||
await $.wait(3000);
|
||||
}if(_0x4a424c.assignmentType===5){
|
||||
let _0x1e4481=_0x4a424c.ext.sign2||[];
|
||||
@@ -178,23 +180,23 @@ async function main(_0x14f2ac){
|
||||
}if(_0x4a424c.assignmentName==='首页限时下拉'){
|
||||
for(let _0x5d0f56=0;_0x5d0f56<_0x1e4481.length;_0x5d0f56++){
|
||||
if(_0x1e4481[_0x5d0f56].status===1){
|
||||
console.log('任务:'+_0x4a424c.assignmentName+',去执行,请稍稍');
|
||||
console.log('任务:'+_0x4a424c.assignmentName+',去执行');
|
||||
let _0x25a600=_0x1e4481[_0x5d0f56].itemId;
|
||||
let _0x2d2e7c=await takeRequest(_0x14f2ac,'superBrandDoTask','{"source":"card","activityId":'+_0x23add7+',"encryptProjectId":"'+_0x5add38+'","encryptAssignmentId":"'+_0x4a424c.encryptAssignmentId+'","assignmentType":'+_0x4a424c.assignmentType+',"itemId":"'+_0x25a600+'","actionType":0,"dropDownChannel":1}');
|
||||
console.log('执行结果:'+JSON.stringify(_0x2d2e7c));
|
||||
console.log('执行结果:'+_0x2d2e7c.bizMsg);
|
||||
await $.wait(3000);
|
||||
}
|
||||
}
|
||||
}else if(_0x4a424c.assignmentName.indexOf('小游戏')!==-1){
|
||||
for(let _0x5d0f56=0;_0x5d0f56<_0x1e4481.length;_0x5d0f56++){
|
||||
if(_0x1e4481[_0x5d0f56].status===1){
|
||||
console.log('任务:'+_0x4a424c.assignmentName+',去执行,请稍稍');
|
||||
console.log('任务:'+_0x4a424c.assignmentName+',去执行');
|
||||
let _0x5e4237=await takeRequest(_0x14f2ac,'showSecondFloorGameInfo','{"source":"card"}');
|
||||
let _0x5bc621=_0x5e4237.result.activityGameInfo.gameCurrentRewardInfo.secCode;
|
||||
let _0x4e6eb7=_0x5e4237.result.activityGameInfo.gameCurrentRewardInfo.encryptAssignmentId;
|
||||
await $.wait(3000);
|
||||
let _0x2d2e7c=await takeRequest(_0x14f2ac,'superBrandTaskLottery','{"source":"card","activityId":'+_0x23add7+',"encryptProjectId":"'+_0x5add38+'","encryptAssignmentId":"'+_0x4e6eb7+'","secCode":"'+_0x5bc621+'"}');
|
||||
console.log('执行结果:'+JSON.stringify(_0x2d2e7c));
|
||||
console.log('执行结果:'+_0x2d2e7c.bizMsg);
|
||||
await $.wait(3000);
|
||||
}
|
||||
}
|
||||
@@ -207,6 +209,25 @@ async function main(_0x14f2ac){
|
||||
shareList.push({'user':_0xc6f9d4,'activityId':_0x23add7,'encryptProjectId':_0x5add38,'encryptAssignmentId':_0x4a424c.encryptAssignmentId,'itemId':_0x282818,'max':false});
|
||||
}
|
||||
}
|
||||
await $.wait(2000);
|
||||
let myaward = await takeRequest(_0x14f2ac,'superBrandShowMyAward','{"source":"card","activityId":'+_0x23add7+'}');
|
||||
let rewardList = myaward.result.rewardList;
|
||||
let y='';
|
||||
let x='';
|
||||
for(let i=0; i< rewardList.length; i++){
|
||||
if(rewardList[i]['rewardType']===3){
|
||||
x+=rewardList[i].rewardValue+'\n';
|
||||
}else if(rewardList[i]['rewardType']===7){
|
||||
x+=rewardList[i].rewardName+' '+rewardList[i].useRange+'\n';
|
||||
}else{
|
||||
x+=rewardList[i].rewardValue+'\n';
|
||||
y+=(rewardList[i].rewardValue+';');
|
||||
}
|
||||
}if(x){
|
||||
console.log('\n已获得奖励:\n'+x);
|
||||
}if(y){
|
||||
await notify.sendNotify('特务集卡','京东账号'+_0xc6f9d4+'可能获得实物奖励\n'+y);
|
||||
}
|
||||
}
|
||||
async function takeRequest(_0x419790,_0x5a318a,_0x10cedb){
|
||||
let _0x436779='';
|
||||
|
||||
Reference in New Issue
Block a user