mirror of
https://github.com/shufflewzc/faker2.git
synced 2025-04-23 02:48:44 +08:00
update
This commit is contained in:
parent
2c218987b4
commit
7c34d0431e
20
jd_dpqd.js
20
jd_dpqd.js
@ -1,16 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
店铺签到,各类店铺签到,有新的店铺直接添加token即可
|
店铺签到
|
||||||
============Quantumultx===============
|
15 2,14 * * * jd_dpqd.js
|
||||||
[task_local]
|
|
||||||
#店铺签到
|
|
||||||
15 2,14 * * * https://raw.githubusercontent.com/shufflewzc/faker2/main/jd_shop_sign.js, tag=店铺签到, enabled=true
|
|
||||||
===========Loon============
|
|
||||||
[Script]
|
|
||||||
cron "15 2,14 * * *" script-path=https://raw.githubusercontent.com/shufflewzc/faker2/main/jd_shop_sign.js,tag=店铺签到
|
|
||||||
============Surge=============
|
|
||||||
店铺签到 = type=cron,cronexp="15 2,14 * * *",wake-system=1,timeout=3600,script-path=https://raw.githubusercontent.com/shufflewzc/faker2/main/jd_shop_sign.js
|
|
||||||
===========小火箭========
|
|
||||||
店铺签到 = type=cron,script-path=https://raw.githubusercontent.com/shufflewzc/faker2/main/jd_shop_sign.jss, cronexpr="15 2,14 * * *", timeout=3600, enable=true
|
|
||||||
*/
|
*/
|
||||||
const $ = new Env('店铺签到');
|
const $ = new Env('店铺签到');
|
||||||
const notify = $.isNode() ? require('./sendNotify') : '';
|
const notify = $.isNode() ? require('./sendNotify') : '';
|
||||||
@ -31,7 +21,7 @@ const token = [
|
|||||||
"C387DE3A3F4381FB3E451F0C40069FE6",
|
"C387DE3A3F4381FB3E451F0C40069FE6",
|
||||||
"05451231AF1DE95AC10FC3A56C3F8A73",
|
"05451231AF1DE95AC10FC3A56C3F8A73",
|
||||||
"A92269DC92DDD73CC5EB38B3BACF51E3",
|
"A92269DC92DDD73CC5EB38B3BACF51E3",
|
||||||
"62CED31ECD51A5D51A2BBB9FB793393A",
|
"94C7B64A6137E339AAA79DC3A6465C1B",
|
||||||
"2ED2F283E4640130BA5128E8BBDC3DDA",
|
"2ED2F283E4640130BA5128E8BBDC3DDA",
|
||||||
"1DD46671387EAC6FDC14B753E01D5E30",
|
"1DD46671387EAC6FDC14B753E01D5E30",
|
||||||
"BD0D2682B13A75E0AAF7D8E78844F07C",
|
"BD0D2682B13A75E0AAF7D8E78844F07C",
|
||||||
@ -42,7 +32,7 @@ const token = [
|
|||||||
"582EA3EA048A3D49961766498A136F9C",
|
"582EA3EA048A3D49961766498A136F9C",
|
||||||
"2B9B07D1D14E821744F7BA63F94CD6F2",
|
"2B9B07D1D14E821744F7BA63F94CD6F2",
|
||||||
"67D2D5824D043A5C2EA9C53B900B932C",
|
"67D2D5824D043A5C2EA9C53B900B932C",
|
||||||
"43FE9201AB1206649B74BE1487A4BB3C",
|
"2C8CBED431A4A275155387ABDF958427",
|
||||||
"833CE1B5158A097598C07D4B2B5B314E",
|
"833CE1B5158A097598C07D4B2B5B314E",
|
||||||
"37D0FAA99892A9E613A1B46E5A55973B",
|
"37D0FAA99892A9E613A1B46E5A55973B",
|
||||||
"205E1E703925C48276C0DEBF16C6CBAD",
|
"205E1E703925C48276C0DEBF16C6CBAD",
|
||||||
@ -83,7 +73,7 @@ if ($.isNode()) {
|
|||||||
$.isLogin = true;
|
$.isLogin = true;
|
||||||
$.nickName = '';
|
$.nickName = '';
|
||||||
message = '';
|
message = '';
|
||||||
//await TotalBean();
|
await TotalBean();
|
||||||
console.log(`\n******开始【京东账号${$.index}】${$.nickName || $.UserName}*********\n`);
|
console.log(`\n******开始【京东账号${$.index}】${$.nickName || $.UserName}*********\n`);
|
||||||
if (!$.isLogin) {
|
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"});
|
$.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"});
|
||||||
|
8
jd_jingBeanReceive.js
Normal file
8
jd_jingBeanReceive.js
Normal file
File diff suppressed because one or more lines are too long
894
jd_opencard0718.js
Normal file
894
jd_opencard0718.js
Normal file
File diff suppressed because one or more lines are too long
894
jd_opencard0718_1.js
Normal file
894
jd_opencard0718_1.js
Normal file
File diff suppressed because one or more lines are too long
598
jd_plantBean.js
598
jd_plantBean.js
File diff suppressed because one or more lines are too long
152
jd_superBrand.js
152
jd_superBrand.js
File diff suppressed because one or more lines are too long
@ -1,17 +1,16 @@
|
|||||||
/**
|
/**
|
||||||
*
|
特务之明星送好礼
|
||||||
|
一次性脚本。请禁用!
|
||||||
|
cron 36 2,19 * * * jd_superBrandStar.js
|
||||||
*/
|
*/
|
||||||
/*
|
const $ = new Env('特务之明星送好礼');
|
||||||
明星送好礼
|
|
||||||
cron:30 16 14 7 *
|
|
||||||
*/
|
|
||||||
const $ = new Env('明星送好礼');
|
|
||||||
const notify = $.isNode() ? require('./sendNotify') : '';
|
const notify = $.isNode() ? require('./sendNotify') : '';
|
||||||
const jdCookieNode = $.isNode() ? require('./jdCookie.js') : '';
|
const jdCookieNode = $.isNode() ? require('./jdCookie.js') : '';
|
||||||
let cookiesArr = [];
|
let cookiesArr = [];
|
||||||
let UA = ``;
|
let UA = ``;
|
||||||
$.allInvite = [];
|
$.allInvite = [];
|
||||||
let useInfo = {};
|
let useInfo = {};
|
||||||
|
$.flag = false
|
||||||
if ($.isNode()) {
|
if ($.isNode()) {
|
||||||
Object.keys(jdCookieNode).forEach((item) => { cookiesArr.push(jdCookieNode[item]) });
|
Object.keys(jdCookieNode).forEach((item) => { cookiesArr.push(jdCookieNode[item]) });
|
||||||
if (process.env.JD_DEBUG && process.env.JD_DEBUG === 'false') console.log = () => { };
|
if (process.env.JD_DEBUG && process.env.JD_DEBUG === 'false') console.log = () => { };
|
||||||
@ -24,13 +23,14 @@ if ($.isNode()) {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
for (let i = 0; i < cookiesArr.length; i++) {
|
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`;
|
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;
|
$.index = i + 1;
|
||||||
$.cookie = cookiesArr[i];
|
$.cookie = cookiesArr[i];
|
||||||
$.isLogin = true;
|
$.isLogin = true;
|
||||||
$.nickName = '';
|
$.nickName = '';
|
||||||
$.UserName = decodeURIComponent($.cookie.match(/pt_pin=([^; ]+)(?=;?)/) && $.cookie.match(/pt_pin=([^; ]+)(?=;?)/)[1]);
|
$.UserName = decodeURIComponent($.cookie.match(/pt_pin=([^; ]+)(?=;?)/) && $.cookie.match(/pt_pin=([^; ]+)(?=;?)/)[1]);
|
||||||
await TotalBean();
|
//await TotalBean();
|
||||||
console.log(`\n*****开始【京东账号${$.index}】${$.nickName || $.UserName}*****\n`);
|
console.log(`\n*****开始【京东账号${$.index}】${$.nickName || $.UserName}*****\n`);
|
||||||
if (!$.isLogin) {
|
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" });
|
$.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" });
|
||||||
@ -41,6 +41,7 @@ if ($.isNode()) {
|
|||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
await main();
|
await main();
|
||||||
|
//if (i == 0 && $.flag) return;
|
||||||
}
|
}
|
||||||
|
|
||||||
})().catch((e) => { $.log('', `❌ ${$.name}, 失败! 原因: ${e}!`, '') }).finally(() => { $.done(); })
|
})().catch((e) => { $.log('', `❌ ${$.name}, 失败! 原因: ${e}!`, '') }).finally(() => { $.done(); })
|
||||||
@ -50,7 +51,8 @@ async function main() {
|
|||||||
$.activityInfo = {};
|
$.activityInfo = {};
|
||||||
await takeRequest('showStarGiftInfo');
|
await takeRequest('showStarGiftInfo');
|
||||||
if (JSON.stringify($.activityInfo) === '{}') {
|
if (JSON.stringify($.activityInfo) === '{}') {
|
||||||
console.log(`获取活动详情失败`);
|
console.log(`本期活动结束,等待下期。。。`);
|
||||||
|
$.flag = true
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
console.log(`获取活动详情成功`);
|
console.log(`获取活动详情成功`);
|
||||||
@ -64,6 +66,7 @@ async function main() {
|
|||||||
await $.wait(1000);
|
await $.wait(1000);
|
||||||
await doTask();
|
await doTask();
|
||||||
await $.wait(500)
|
await $.wait(500)
|
||||||
|
console.log('开始抽奖:')
|
||||||
await await takeRequest('superBrandTaskLottery')
|
await await takeRequest('superBrandTaskLottery')
|
||||||
|
|
||||||
}
|
}
|
||||||
@ -188,10 +191,10 @@ function dealReturn(type, data) {
|
|||||||
$.runFlag = false;
|
$.runFlag = false;
|
||||||
console.log(`抽奖失败`);
|
console.log(`抽奖失败`);
|
||||||
}
|
}
|
||||||
// console.log(JSON.stringify(data));
|
//console.log(JSON.stringify(data));
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
// console.log(JSON.stringify(data));
|
console.log(JSON.stringify(data));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -201,7 +204,7 @@ function getRequest(url) {
|
|||||||
'Cookie': $.cookie,
|
'Cookie': $.cookie,
|
||||||
'Connection': `keep-alive`,
|
'Connection': `keep-alive`,
|
||||||
'Accept': `application/json, text/plain, */*`,
|
'Accept': `application/json, text/plain, */*`,
|
||||||
'Referer': `https://prodev.m.jd.com/mall/active/3XbzM8XrNaiKRVuD9jHZhj9vYG8d/index.html`,
|
'Referer': `https://prodev.m.jd.com/mall/active/31GFSKyRbD3ehsHih2rQKArxfb8c/index.html`,
|
||||||
'Host': `api.m.jd.com`,
|
'Host': `api.m.jd.com`,
|
||||||
'User-Agent': UA,
|
'User-Agent': UA,
|
||||||
'Accept-Language': `zh-cn`,
|
'Accept-Language': `zh-cn`,
|
||||||
|
387
jd_superBrandTeam.js
Normal file
387
jd_superBrandTeam.js
Normal file
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user