This commit is contained in:
Faker 2022-07-18 15:19:38 +08:00
parent 2c218987b4
commit 7c34d0431e
8 changed files with 2676 additions and 302 deletions

View File

@ -1,16 +1,6 @@
/*
店铺签到各类店铺签到有新的店铺直接添加token即可
============Quantumultx===============
[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
店铺签到
15 2,14 * * * jd_dpqd.js
*/
const $ = new Env('店铺签到');
const notify = $.isNode() ? require('./sendNotify') : '';
@ -31,7 +21,7 @@ const token = [
"C387DE3A3F4381FB3E451F0C40069FE6",
"05451231AF1DE95AC10FC3A56C3F8A73",
"A92269DC92DDD73CC5EB38B3BACF51E3",
"62CED31ECD51A5D51A2BBB9FB793393A",
"94C7B64A6137E339AAA79DC3A6465C1B",
"2ED2F283E4640130BA5128E8BBDC3DDA",
"1DD46671387EAC6FDC14B753E01D5E30",
"BD0D2682B13A75E0AAF7D8E78844F07C",
@ -42,7 +32,7 @@ const token = [
"582EA3EA048A3D49961766498A136F9C",
"2B9B07D1D14E821744F7BA63F94CD6F2",
"67D2D5824D043A5C2EA9C53B900B932C",
"43FE9201AB1206649B74BE1487A4BB3C",
"2C8CBED431A4A275155387ABDF958427",
"833CE1B5158A097598C07D4B2B5B314E",
"37D0FAA99892A9E613A1B46E5A55973B",
"205E1E703925C48276C0DEBF16C6CBAD",
@ -83,7 +73,7 @@ if ($.isNode()) {
$.isLogin = true;
$.nickName = '';
message = '';
//await TotalBean();
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"});

8
jd_jingBeanReceive.js Normal file

File diff suppressed because one or more lines are too long

894
jd_opencard0718.js Normal file

File diff suppressed because one or more lines are too long

894
jd_opencard0718_1.js Normal file

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -1,17 +1,16 @@
/**
*
特务之明星送好礼
一次性脚本请禁用
cron 36 2,19 * * * jd_superBrandStar.js
*/
/*
明星送好礼
cron:30 16 14 7 *
*/
const $ = new Env('明星送好礼');
const $ = new Env('特务之明星送好礼');
const notify = $.isNode() ? require('./sendNotify') : '';
const jdCookieNode = $.isNode() ? require('./jdCookie.js') : '';
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 = () => { };
@ -24,13 +23,14 @@ 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];
$.isLogin = true;
$.nickName = '';
$.UserName = decodeURIComponent($.cookie.match(/pt_pin=([^; ]+)(?=;?)/) && $.cookie.match(/pt_pin=([^; ]+)(?=;?)/)[1]);
await TotalBean();
//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" });
@ -41,6 +41,7 @@ if ($.isNode()) {
continue
}
await main();
//if (i == 0 && $.flag) return;
}
})().catch((e) => { $.log('', `${$.name}, 失败! 原因: ${e}!`, '') }).finally(() => { $.done(); })
@ -50,7 +51,8 @@ async function main() {
$.activityInfo = {};
await takeRequest('showStarGiftInfo');
if (JSON.stringify($.activityInfo) === '{}') {
console.log(`获取活动详情失败`);
console.log(`本期活动结束,等待下期。。。`);
$.flag = true
return;
}
console.log(`获取活动详情成功`);
@ -64,6 +66,7 @@ async function main() {
await $.wait(1000);
await doTask();
await $.wait(500)
console.log('开始抽奖:')
await await takeRequest('superBrandTaskLottery')
}
@ -188,10 +191,10 @@ 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));
console.log(JSON.stringify(data));
}
}
@ -201,7 +204,7 @@ function getRequest(url) {
'Cookie': $.cookie,
'Connection': `keep-alive`,
'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`,
'User-Agent': UA,
'Accept-Language': `zh-cn`,

387
jd_superBrandTeam.js Normal file

File diff suppressed because one or more lines are too long