mirror of
https://github.com/shufflewzc/faker2.git
synced 2025-04-23 02:48:44 +08:00
update
This commit is contained in:
parent
3ef4ec1b39
commit
e6c673d390
337
jd_618cj.js
Normal file
337
jd_618cj.js
Normal file
File diff suppressed because one or more lines are too long
21
jd_dpqd.js
21
jd_dpqd.js
@ -25,33 +25,34 @@ let vender=''
|
||||
let num=0
|
||||
let shopname=''
|
||||
const token = [
|
||||
"183F4F645F31082153CDD0DEE824DF3A",
|
||||
"4BE1B58FE1360409A5967CAD1127B5A8",
|
||||
"34864F266AFC02DDB7EEAD5A2AF9B4F7",
|
||||
"87DC11A01AE814025159ECE32F5EECBF",
|
||||
"30FB5875B47D353278D22C6FBED0F137",
|
||||
"3BA9AEE39889419A46E8784C982C7280",
|
||||
"09947018BD0B4AC7E218519F81551296",
|
||||
"8622A6A8C1ECB4B2D45F07AE43397BFD",
|
||||
"18FB7E1DE514D5E40D880585D4145DEC",
|
||||
"DB00412CD5F5853526FB3A3B1662A7F3",
|
||||
"CACEC89AD3A20309748FEC03B0B0C50C",
|
||||
"D881655EDC90A9B4387ACFE495CA3F18",
|
||||
"35F3ED7E5BDFCE58F95E01695927EC24",
|
||||
"38D442F3EDAF8377B3F948055E69B225",
|
||||
"D40F4D162DD53F2CE9F1C48176461634",
|
||||
"3AF4B68A4BB3BD09D371B766E6A1B721",
|
||||
"273EC9E9CA27DFDD85478972A1A0ED6F",
|
||||
"183F4F645F31082153CDD0DEE824DF3A",
|
||||
"DB67ED9F116CFA3CBB75055C61ED3364",
|
||||
"A5BD60451DC9BCB10EB6009C18679D70",
|
||||
"3B27B2B9E70249C339D66F27B7E133F0",
|
||||
"99B695DFEF69DD31BB78B58D61B9C6A2",
|
||||
"6CB820BAC6C0CD8D1F90C342F0EA1018",
|
||||
"ADF510FDA71E07151B8F8AD4964A5D90",
|
||||
"37F05E334A3F6D36E54E13892CE379A9",
|
||||
"4375902FB60094A3A2F5B8BCC7B2CD01",
|
||||
"A5BD60451DC9BCB10EB6009C18679D70",
|
||||
"71DC699CFECAD1BBA618F412D8B54943",
|
||||
"038B83D1D0D374F58821C7EDC4F3B5AE",
|
||||
"0EED5C32E8002D6EF892D3995A0A9AA5",
|
||||
"D5A12069E47F17718EF7E7381444A5FE",
|
||||
"CFE4E21426A3E633238CBA33DEBE693E",
|
||||
"7516691B34E89137D3C911BBF7D86ACD",
|
||||
"7AA6DA26074CAA56A04B4C4A25AA694B",
|
||||
"7FF322D4E43DE76490EE05DBB79BF2C5"
|
||||
"501933E61B74CEE450856EDD10AAF7CB",
|
||||
"9F64084BD36FE0EBCDE1EDC956656501",
|
||||
"7516691B34E89137D3C911BBF7D86ACD"
|
||||
]
|
||||
|
||||
if ($.isNode()) {
|
||||
|
141
jd_live.js
141
jd_live.js
@ -3,31 +3,21 @@
|
||||
活动结束时间未知
|
||||
活动入口:京东APP首页-京东直播
|
||||
地址:https://h5.m.jd.com/babelDiy/Zeus/2zwQnu4WHRNfqMSdv69UPgpZMnE2/index.html/
|
||||
已支持IOS双京东账号,Node.js支持N个京东账号
|
||||
脚本兼容: QuantumultX, Surge, Loon, JSBox, Node.js
|
||||
============Quantumultx===============
|
||||
[task_local]
|
||||
#京东直播
|
||||
50 12-14 * * * https://raw.githubusercontent.com/Aaron-lv/sync/jd_scripts/jd_live.js, tag=京东直播, img-url=https://raw.githubusercontent.com/Orz-3/mini/master/Color/jd.png, enabled=true
|
||||
|
||||
================Loon==============
|
||||
[Script]
|
||||
cron "50 12-14 * * *" script-path=https://raw.githubusercontent.com/Aaron-lv/sync/jd_scripts/jd_live.js,tag=京东直播
|
||||
|
||||
===============Surge=================
|
||||
京东直播 = type=cron,cronexp="50 12-14 * * *",wake-system=1,timeout=3600,script-path=https://raw.githubusercontent.com/Aaron-lv/sync/jd_scripts/jd_live.js
|
||||
|
||||
============小火箭=========
|
||||
京东直播 = type=cron,script-path=https://raw.githubusercontent.com/Aaron-lv/sync/jd_scripts/jd_live.js, cronexpr="50 12-14 * * *", timeout=3600, enable=true
|
||||
随机定时跑一次 或者自行定时
|
||||
5 12
|
||||
*/
|
||||
|
||||
const $ = new Env('京东直播');
|
||||
const notify = $.isNode() ? require('./sendNotify') : '';
|
||||
//Node.js用户请在jdCookie.js处填写京东ck;
|
||||
|
||||
const jdCookieNode = $.isNode() ? require('./jdCookie.js') : '';
|
||||
let jdNotify = true;//是否关闭通知,false打开通知推送,true关闭通知推送
|
||||
//IOS等用户直接用NobyDa的jd cookie
|
||||
|
||||
let cookiesArr = [], cookie = '', message;
|
||||
let uuid
|
||||
let jdPandaToken = '';
|
||||
jdPandaToken = $.isNode() ? (process.env.PandaToken ? process.env.PandaToken : `${jdPandaToken}`) : ($.getdata('PandaToken') ? $.getdata('PandaToken') : `${jdPandaToken}`);
|
||||
|
||||
if ($.isNode()) {
|
||||
Object.keys(jdCookieNode).forEach((item) => {
|
||||
cookiesArr.push(jdCookieNode[item])
|
||||
@ -42,6 +32,10 @@ const JD_API_HOST = 'https://api.m.jd.com/api';
|
||||
$.msg($.name, '【提示】请先获取京东账号一cookie\n直接使用NobyDa的京东签到获取', 'https://bean.m.jd.com/bean/signIndex.action', {"open-url": "https://bean.m.jd.com/bean/signIndex.action"});
|
||||
return;
|
||||
}
|
||||
if (!jdPandaToken) {
|
||||
console.log('请填写Panda获取的Token,变量是PandaToken');
|
||||
return;
|
||||
}
|
||||
for (let i = 0; i < cookiesArr.length; i++) {
|
||||
if (cookiesArr[i]) {
|
||||
cookie = cookiesArr[i];
|
||||
@ -50,18 +44,11 @@ const JD_API_HOST = 'https://api.m.jd.com/api';
|
||||
$.isLogin = true;
|
||||
$.nickName = '';
|
||||
message = '';
|
||||
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
|
||||
}
|
||||
uuid = randomString(40)
|
||||
|
||||
console.log(`\n******开始【京东账号${$.index}】${$.nickName || $.UserName}*********\n`);
|
||||
await jdHealth()
|
||||
await $.wait(15000)
|
||||
}
|
||||
}
|
||||
})()
|
||||
@ -117,10 +104,14 @@ function getTaskList() {
|
||||
}
|
||||
console.log(`去做分享直播间任务`)
|
||||
await shareTask()
|
||||
await $.wait(1500);
|
||||
await awardTask()
|
||||
await $.wait(1500);
|
||||
console.log(`去做浏览直播间任务`)
|
||||
await viewTask()
|
||||
await $.wait(1500);
|
||||
await awardTask("commonViewTask")
|
||||
await $.wait(1500);
|
||||
}
|
||||
}
|
||||
} catch (e) {
|
||||
@ -134,10 +125,13 @@ function getTaskList() {
|
||||
|
||||
async function getauthorId(liveId) {
|
||||
let functionId = `liveDetailV910`
|
||||
let body = {"liveId":liveId,"fromId":"","liveList":[],"sku":"","source":"17","d":"","direction":"","isNeedVideo":1}
|
||||
let sign = await getSign(functionId, body)
|
||||
let body = encodeURIComponent(JSON.stringify({"liveId":liveId,"fromId":"","liveList":[],"sku":"","source":"17","d":"","direction":"","isNeedVideo":1}))
|
||||
let uuid = randomString(16)
|
||||
// let sign = await getSign(functionId, decodeURIComponent(body), uuid)
|
||||
let sign = await getSignfromPanda(functionId, body)
|
||||
let url = `https://api.m.jd.com/client.action?functionId=${functionId}&build=167774&client=apple&clientVersion=10.1.0&uuid=${uuid}&${sign}`
|
||||
return new Promise(resolve => {
|
||||
$.post(taskPostUrl(functionId, sign), async (err, resp, data) => {
|
||||
$.post(taskPostUrl(functionId, body, url), async (err, resp, data) => {
|
||||
try {
|
||||
if (err) {
|
||||
console.log(`${JSON.stringify(err)}`)
|
||||
@ -158,10 +152,13 @@ async function getauthorId(liveId) {
|
||||
|
||||
async function superTask(liveId, authorId) {
|
||||
let functionId = `liveChannelReportDataV912`
|
||||
let body = {"liveId":liveId,"type":"viewTask","authorId":authorId,"extra":{"time":60}}
|
||||
let sign = await getSign(functionId, body)
|
||||
let body = encodeURIComponent(JSON.stringify({"liveId":liveId,"type":"viewTask","authorId":authorId,"extra":{"time":60}}))
|
||||
let uuid = randomString(16)
|
||||
// let sign = await getSign(functionId, decodeURIComponent(body), uuid)
|
||||
let sign = await getSignfromPanda(functionId, body)
|
||||
let url = `https://api.m.jd.com/client.action?functionId=${functionId}&build=167774&client=apple&clientVersion=10.1.0&uuid=${uuid}&${sign}`
|
||||
return new Promise(resolve => {
|
||||
$.post(taskPostUrl(functionId, sign), async (err, resp, data) => {
|
||||
$.post(taskPostUrl(functionId, body, url), async (err, resp, data) => {
|
||||
try {
|
||||
if (err) {
|
||||
console.log(`${JSON.stringify(err)}`)
|
||||
@ -250,6 +247,7 @@ function awardTask(type="shareTask", liveId = '2942545') {
|
||||
})
|
||||
})
|
||||
}
|
||||
|
||||
function sign() {
|
||||
return new Promise(resolve => {
|
||||
$.get(taskUrl("getChannelTaskRewardToM", {"type":"signTask","itemId":"1"}), async (err, resp, data) => {
|
||||
@ -278,16 +276,22 @@ function sign() {
|
||||
})
|
||||
}
|
||||
|
||||
function getSign(functionId, body) {
|
||||
function getSign(functionid, body, uuid) {
|
||||
return new Promise(async resolve => {
|
||||
let data = {
|
||||
functionId,
|
||||
body: JSON.stringify(body),
|
||||
client: "apple",
|
||||
clientVersion: "10.3.0"
|
||||
"functionId":functionid,
|
||||
"body":body,
|
||||
"uuid":uuid,
|
||||
"client":"apple",
|
||||
"clientVersion":"10.1.0"
|
||||
}
|
||||
let Host = ""
|
||||
let HostArr = ['jdsign.cf', 'signer.nz.lu']
|
||||
let Host = HostArr[Math.floor((Math.random() * HostArr.length))]
|
||||
if (process.env.SIGN_URL) {
|
||||
Host = process.env.SIGN_URL
|
||||
} else {
|
||||
Host = HostArr[Math.floor((Math.random() * HostArr.length))]
|
||||
}
|
||||
let options = {
|
||||
url: `https://cdn.nz.lu/ddo`,
|
||||
body: JSON.stringify(data),
|
||||
@ -295,7 +299,7 @@ function getSign(functionId, body) {
|
||||
Host,
|
||||
"User-Agent": "Mozilla/5.0 (iPhone; CPU iPhone OS 13_2_3 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.0.3 Mobile/15E148 Safari/604.1 Edg/87.0.4280.88"
|
||||
},
|
||||
timeout: 30 * 1000
|
||||
timeout: 15000
|
||||
}
|
||||
$.post(options, (err, resp, data) => {
|
||||
try {
|
||||
@ -314,10 +318,12 @@ function getSign(functionId, body) {
|
||||
})
|
||||
}
|
||||
|
||||
function taskPostUrl(function_id, body = "") {
|
||||
function taskPostUrl(function_id, body = {}, url=null) {
|
||||
if (url && (function_id === "liveChannelReportDataV912" || function_id === "liveDetailV910")) body = `body=${body}`
|
||||
if(!url) url = `https://api.m.jd.com/client.action?functionId=${function_id}`
|
||||
return {
|
||||
url: `https://api.m.jd.com/client.action?functionId=${function_id}`,
|
||||
body,
|
||||
url: url,
|
||||
body: body,
|
||||
headers: {
|
||||
"Host": "api.m.jd.com",
|
||||
"Content-Type": "application/x-www-form-urlencoded",
|
||||
@ -325,7 +331,8 @@ function taskPostUrl(function_id, body = "") {
|
||||
"Referer": "",
|
||||
"Cookie": cookie,
|
||||
"Origin": "https://h5.m.jd.com",
|
||||
"Content-Type": 'application/x-www-form-urlencoded',
|
||||
'Content-Type': 'application/x-www-form-urlencoded',
|
||||
"Content-Length": "996",
|
||||
"User-Agent": "JD4iPhone/167774 (iPhone; iOS 14.7.1; Scale/3.00)",
|
||||
"Accept-Language": "zh-Hans-CN;q=1",
|
||||
"Accept-Encoding": "gzip, deflate, br"
|
||||
@ -360,50 +367,6 @@ function randomString(e) {
|
||||
return n
|
||||
}
|
||||
|
||||
function TotalBean() {
|
||||
return new Promise(async resolve => {
|
||||
const options = {
|
||||
"url": `https://wq.jd.com/user/info/QueryJDUserInfo?sceneval=2`,
|
||||
"headers": {
|
||||
"Accept": "application/json,text/plain, */*",
|
||||
"Content-Type": "application/x-www-form-urlencoded",
|
||||
"Accept-Encoding": "gzip, deflate, br",
|
||||
"Accept-Language": "zh-cn",
|
||||
"Connection": "keep-alive",
|
||||
"Cookie": cookie,
|
||||
"Referer": "https://wqs.jd.com/my/jingdou/my.shtml?sceneval=2",
|
||||
"User-Agent": $.isNode() ? (process.env.JD_USER_AGENT ? process.env.JD_USER_AGENT : (require('./USER_AGENTS').USER_AGENT)) : ($.getdata('JDUA') ? $.getdata('JDUA') : "jdapp;iPhone;9.4.4;14.3;network/4g;Mozilla/5.0 (iPhone; CPU iPhone OS 14_3 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148;supportJDSHWK/1")
|
||||
}
|
||||
}
|
||||
$.post(options, (err, resp, data) => {
|
||||
try {
|
||||
if (err) {
|
||||
console.log(`${JSON.stringify(err)}`)
|
||||
console.log(`${$.name} API请求失败,请检查网路重试`)
|
||||
} else {
|
||||
if (data) {
|
||||
data = JSON.parse(data);
|
||||
if (data['retcode'] === 13) {
|
||||
$.isLogin = false; //cookie过期
|
||||
return
|
||||
}
|
||||
if (data['retcode'] === 0) {
|
||||
$.nickName = (data['base'] && data['base'].nickname) || $.UserName;
|
||||
} else {
|
||||
$.nickName = $.UserName
|
||||
}
|
||||
} else {
|
||||
console.log(`京东服务器返回空数据`)
|
||||
}
|
||||
}
|
||||
} catch (e) {
|
||||
$.logErr(e, resp)
|
||||
} finally {
|
||||
resolve();
|
||||
}
|
||||
})
|
||||
})
|
||||
}
|
||||
function safeGet(data) {
|
||||
try {
|
||||
if (typeof JSON.parse(data) == "object") {
|
||||
|
@ -29,7 +29,9 @@ let successNum = 0
|
||||
let errorNum = 0
|
||||
let JD_API_HOST = 'https://sendbeans.jd.com'
|
||||
const turnTableId = [
|
||||
{ "name": "翻牌", "id": 1401, "shopid": 1000283022, "url": "https://sendbeans.jd.com/jump/index/" },
|
||||
{ "name": "翻牌", "id": 1082, "shopid": 1000004123, "url": "https://sendbeans.jd.com/jump/index/" },
|
||||
{ "name": "翻牌", "id": 1338, "shopid": 1000085823, "url": "https://sendbeans.jd.com/jump/index/" },
|
||||
{ "name": "翻牌", "id": 1419, "shopid": 1000007205, "url": "https://sendbeans.jd.com/jump/index/" },
|
||||
]
|
||||
|
||||
!(async () => {
|
||||
|
363
jd_superBrand.js
Normal file
363
jd_superBrand.js
Normal file
File diff suppressed because one or more lines are too long
@ -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='';
|
||||
|
@ -1,7 +1,7 @@
|
||||
/**
|
||||
特务之明星送好礼
|
||||
一次性脚本。请禁用!
|
||||
cron 36 22 * * * jd_superBrandStar.js
|
||||
cron 36 2,19 * * * jd_superBrandStar.js
|
||||
*/
|
||||
const $ = new Env('特务之明星送好礼');
|
||||
const notify = $.isNode() ? require('./sendNotify') : '';
|
||||
@ -10,6 +10,7 @@ let cookiesArr = [];
|
||||
let UA = ``;
|
||||
$.allInvite = [];
|
||||
let useInfo = {};
|
||||
$.flag = false
|
||||
if ($.isNode()) {
|
||||
Object.keys(jdCookieNode).forEach((item) => { cookiesArr.push(jdCookieNode[item]) });
|
||||
if (process.env.JD_DEBUG && process.env.JD_DEBUG === 'false') console.log = () => { };
|
||||
@ -22,6 +23,7 @@ if ($.isNode()) {
|
||||
return;
|
||||
}
|
||||
for (let i = 0; i < cookiesArr.length; i++) {
|
||||
|
||||
UA = `jdapp;iPhone;10.0.8;14.6;${randomWord(false, 40, 40)};network/wifi;JDEbook/openapp.jdreader;model/iPhone9,2;addressid/2214222493;appBuild/168841;jdSupportDarkMode/0;Mozilla/5.0 (iPhone; CPU iPhone OS 14_6 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/16E158;supportJDSHWK/1`;
|
||||
$.index = i + 1;
|
||||
$.cookie = cookiesArr[i];
|
||||
@ -39,6 +41,7 @@ if ($.isNode()) {
|
||||
continue
|
||||
}
|
||||
await main();
|
||||
if ($.flag) return;
|
||||
}
|
||||
|
||||
})().catch((e) => { $.log('', `❌ ${$.name}, 失败! 原因: ${e}!`, '') }).finally(() => { $.done(); })
|
||||
@ -48,7 +51,8 @@ async function main() {
|
||||
$.activityInfo = {};
|
||||
await takeRequest('showStarGiftInfo');
|
||||
if (JSON.stringify($.activityInfo) === '{}') {
|
||||
console.log(`获取活动详情失败`);
|
||||
console.log(`本期活动结束,等待下期。。。`);
|
||||
$.flag = true
|
||||
return;
|
||||
}
|
||||
console.log(`获取活动详情成功`);
|
||||
@ -62,6 +66,7 @@ async function main() {
|
||||
await $.wait(1000);
|
||||
await doTask();
|
||||
await $.wait(500)
|
||||
console.log('开始抽奖:')
|
||||
await await takeRequest('superBrandTaskLottery')
|
||||
|
||||
}
|
||||
@ -186,7 +191,7 @@ function dealReturn(type, data) {
|
||||
$.runFlag = false;
|
||||
console.log(`抽奖失败`);
|
||||
}
|
||||
console.log(JSON.stringify(data));
|
||||
//console.log(JSON.stringify(data));
|
||||
break;
|
||||
default:
|
||||
console.log(JSON.stringify(data));
|
||||
|
@ -7,14 +7,14 @@
|
||||
==============Quantumult X===========
|
||||
[task_local]
|
||||
#取关所有主播
|
||||
55 6 * * * jd_unsubscriLive.js, tag=取关所有主播, img-url=https://raw.githubusercontent.com/Orz-3/mini/master/Color/jd.png, enabled=true
|
||||
55 22 * * * jd_unsubscriLive.js, tag=取关所有主播, img-url=https://raw.githubusercontent.com/Orz-3/mini/master/Color/jd.png, enabled=true
|
||||
===========Loon============
|
||||
[Script]
|
||||
cron "55 6 * * *" script-path=jd_unsubscriLive.js,tag=取关所有主播
|
||||
cron "55 22 * * *" script-path=jd_unsubscriLive.js,tag=取关所有主播
|
||||
============Surge=============
|
||||
取关所有主播 = type=cron,cronexp="55 6 * * *",wake-system=1,timeout=3600,script-path=jd_unsubscriLive.js
|
||||
取关所有主播 = type=cron,cronexp="55 22 * * *",wake-system=1,timeout=3600,script-path=jd_unsubscriLive.js
|
||||
===========小火箭========
|
||||
取关所有主播 = type=cron,script-path=jd_unsubscriLive.js, cronexpr="55 6 * * *", timeout=3600, enable=true
|
||||
取关所有主播 = type=cron,script-path=jd_unsubscriLive.js, cronexpr="55 22 * * *", timeout=3600, enable=true
|
||||
*/
|
||||
const $ = new Env('取关所有主播');
|
||||
//Node.js用户请在jdCookie.js处填写京东ck;
|
||||
@ -136,7 +136,7 @@ function unsubscribeCartsFun(author) {
|
||||
$.result = true;
|
||||
console.log(`取关主播【${$.userName}】成功\n`)
|
||||
} else {
|
||||
console.log(`取关主播【${$.userName}】失败:` + data + `\n`)
|
||||
console.log(`取关主播【${$.userName}】失败\n`)
|
||||
}
|
||||
resolve(data);
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user