Compare commits

...

2 Commits

Author SHA1 Message Date
yyds 4bb053bfb3 1 2022-03-18 07:33:07 +08:00
yyds 460f07a710 del 2022-03-18 07:23:06 +08:00
15 changed files with 540 additions and 1252 deletions

178
jd_speed_10_4.js 100644

File diff suppressed because one or more lines are too long

178
jd_speed_19_6.js 100644

File diff suppressed because one or more lines are too long

178
jd_speed_29_8.js 100644

File diff suppressed because one or more lines are too long

View File

@ -4,14 +4,14 @@
============Quantumultx===============
[task_local]
#极速版抢卷
58 59 6,9,14,17,20 * * * jd_speedcoupon.js, tag=极速版抢卷, enabled=true
58 59 6,9,14,17,20 * * * https://raw.githubusercontent.com/KingRan/KR/main/jd_5_2.js, tag=极速版抢卷, enabled=true
================Loon==============
[Script]
cron "58 59 6,9,14,17,20 * * *" script-path=jd_speedcoupon.js,tag=极速版抢卷
cron "58 59 6,9,14,17,20 * * *" script-path=https://raw.githubusercontent.com/KingRan/KR/main/jd_5_2.js,tag=极速版抢卷
===============Surge=================
极速版抢卷 = type=cron,cronexp="58 59 6,9,14,17,20 * * *",wake-system=1,timeout=3600,script-path=jd_speedcoupon.js
极速版抢卷 = type=cron,cronexp="58 59 6,9,14,17,20 * * *",wake-system=1,timeout=3600,script-path=https://raw.githubusercontent.com/KingRan/KR/main/jd_5_2.js
============小火箭=========
极速版抢卷 = type=cron,script-path=jd_speedcoupon.js, cronexpr="58 59 6,9,14,17,20 * * *", timeout=3600, enable=true
极速版抢卷 = type=cron,script-path=https://raw.githubusercontent.com/KingRan/KR/main/jd_5_2.js, cronexpr="58 59 6,9,14,17,20 * * *", timeout=3600, enable=true
*/
const $ = new Env('抢极速版全品卷5-2');
const moment = require('moment');
@ -41,7 +41,7 @@ let wait = ms => new Promise(resolve => setTimeout(resolve, ms));
}
await wait(100)
for (let j = 0; j < randomCount; ++j)
for (let i = 0; i < 1; i++) {
for (let i = 0; i < 7; i++) {
if (cookiesArr[i]) {
cookie = cookiesArr[i];
$.UserName = decodeURIComponent(cookie.match(/pt_pin=([^; ]+)(?=;?)/) && cookie.match(/pt_pin=([^; ]+)(?=;?)/)[1])
@ -103,7 +103,7 @@ function taskUrl(function_id, body = {}) {
"Cookie": cookie,
"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"),
},
body: "body=%7B%22activityId%22%3A%223H885vA4sQj6ctYzzPVix4iiYN2P%22%2C%22scene%22%3A%221%22%2C%22args%22%3A%22key%3DC1DEFD3C0396EDFC8215ACBF751C4620F0395465605CF9442326408CFB8A4F9825E83CD6C2B86F8929CB2F1095FB610F_bingo%2CroleId%3D23E2CB5340B5C6BEDF23627C434572F9_bingo%2CstrengthenKey%3D7234093DC9375F51DDB7D38147D7AD82EAEB0938B43AC37CCC32084DCB1D132207FDC1750C14EF7DD076988CA8C71BC4_bingo%22%2C%22platform%22%3A%221%22%2C%22orgType%22%3A%222%22%2C%22openId%22%3A%22-1%22%2C%22pageClickKey%22%3A%22-1%22%2C%22eid%22%3A%22EI7EMAW4ZLYP7BA2NPR3ZRDMA62D4SQSQ4OOFANS47F4GEBK2DN3LPSAVISERLPHUS75YZCZUXNDFNIQKRL6PXLHCE%22%2C%22fp%22%3A%220d25c19cc7ce1c852ad50183553c7cfe%22%2C%22shshshfp%22%3A%223622d575f3839e6ba16b0239c83567c5%22%2C%22shshshfpa%22%3A%22f62b6f85-ed1a-19a9-a983-5386fd853f3e-1633620784%22%2C%22shshshfpb%22%3A%22s5ANXcvD4c4lgaATnZ%2Fdzaw%3D%3D%22%2C%22childActivityUrl%22%3A%22https%253A%252F%252Fprodev.m.jd.com%252Fjdlite%252Factive%252F3H885vA4sQj6ctYzzPVix4iiYN2P%252Findex.html%253Flng%253D106.476367%2526lat%253D29.502914%2526sid%253Dfbc43764317f538b90e0f9ab43c8285w%2526un_area%253D4_50952_106_0%22%2C%22userArea%22%3A%22-1%22%2C%22client%22%3A%22-1%22%2C%22clientVersion%22%3A%22-1%22%2C%22uuid%22%3A%22-1%22%2C%22osVersion%22%3A%22-1%22%2C%22brand%22%3A%22-1%22%2C%22model%22%3A%22-1%22%2C%22networkType%22%3A%22-1%22%2C%22jda%22%3A%22122270672.16425253116601960425755.1642525311.1644803500.1644803556.160%22%2C%22sdkToken%22%3A%22%22%2C%22token%22%3A%22NP7KXWSKCPPCSE2KMRATB42RKR3PT3B5WW5MWJXE2JPJPKJMCGTQFGM6UVN6VY2XTLJAMOHMWQRFC%22%2C%22jstub%22%3A%22UZ625TL7NA35Q5AUO6YVSLI4SBF7UJQLFNQJFDA7G6BRNRZPD2HUPLOO65HNMSHXX7YNA62PFDEULVB7UMV7SM76HXORSWUGNJMA3IA%22%2C%22pageClick%22%3A%22Babel_Coupon%22%2C%22couponSource%22%3A%22manual%22%2C%22couponSourceDetail%22%3A%22-100%22%2C%22channel%22%3A%22%E9%80%9A%E5%A4%A9%E5%A1%94%E4%BC%9A%E5%9C%BA%22%2C%22headArea%22%3A%22605715ec560d6508f7403b91b677d79c%22%2C%22sceId%22%3A%22TTTh5%22%2C%22rstr%22%3A%2229463958%22%2C%22sstr%22%3A%221644804028555~1fR7teXPatEMDF4TnlzdzAxMQ%3D%3D.SXhNR09IeklCRk1%2BTw0HS3grQCIJBTMbCUliTl9BVH8HQQlJMApGNjYWGgUzTC1NHxAZDy0dLVcqAxIARXMH.32bbefe8~6%2C1~DE99009AC329C084289942FF81223D8AFE3987BC~1n1vrke~C~SBtGWxYPbWkdEUdXXxQObhRQAB4GbB5yehkCbGcfRhVGFBgXUgEcCnIVdnIYAAFzHQMdCQMDGEEUGBNXBBQLdxhxchgECgAVAhgEBAMYRRFuFRBRRlsUDgcfEUpBFA4XBwIFBwsJBgYGBAECBQYBDQoUGBdBUVURCRtGQkBBQlJEVREVEEFRVBQOE1VVTUZCQEBXFh0RQ11cFA5uBQQdCwQAHgcMGQEYAB8GZB4UXl8UDgIfEVpBFA4XBgUEC1FcBQ9QBwQDBAEHClFQUgIHAAMBVQEAVVYCAFATHxFXQhQOF19kWVxdXBAaFkEUDgAFBw0KBgAFBAwEBgYVEFxfFwwWUBEfG1RGVhcMFkIGcndqVUJxAlcFX1RYc2JabxlQS1JEBA8UGBdYQhMJEXhCRlhQFndeXkNMRlNGGRZ9X1AdGx4UWlRAFgsRAggDBxYZFEdSQREDaQEHAxoAAAduFRBEWxcMbxNaY1FdWFENGgYTHxFQfWUWGRQFBR0LGx4UBxsOGgMRHxsDBwUEFBgTUlEAVFANDQcEBVBSCFYGUQwAAgJVVggAVAMFA1dQAwcJU1AGBwBRUhEfG1MUaRkUXV5SEQMQUFJTUFJXR0cbHhRVXxQOE0YRFRBVXRcMFkYAHQ0cBRYZFFdXbEUbCBQEBBQYE1FXGwgURlRYUF5eDgsLAgIGDwEJER8bX1wWD20FAh8DFQJrGBdUWF5UEQMQVxYZFFlCVBEDEFcWSA%3D%3D~0a73lnr%22%2C%22mitemAddrId%22%3A%22%22%2C%22geo%22%3A%7B%22lng%22%3A%22106.476367%22%2C%22lat%22%3A%2229.502914%22%7D%2C%22addressId%22%3A%22%22%2C%22posLng%22%3A%22%22%2C%22posLat%22%3A%22%22%2C%22focus%22%3A%22%22%2C%22innerAnchor%22%3A%22%22%2C%22cv%22%3A%222.0%22%7D&screen=1242*2016&client=wh5&clientVersion=1.0.0&sid=fbc43764317f538b90e0f9ab43c8285w&uuid=16425253116601960425755.56.1644804021838&area=4_50952_106_0"
body: "body=%7B%22activityId%22%3A%223H885vA4sQj6ctYzzPVix4iiYN2P%22%2C%22scene%22%3A%221%22%2C%22args%22%3A%22key%3D82955FF5B19B4873DD7044D75B44AD907C1A9FECE3BD974B2E35492750271EA91192D5362104AA91EDD08FFB7EFA944C_bingo%2CroleId%3D04BCD352B47E5A8B92C7D4ED398FBE33_bingo%2CstrengthenKey%3DB95D6A81ACB1760E33CCD3461D64D27E5446F252C845E06C8CA0282A6B890B8633E6D3F3DA7B9E4184103EF5ECD45DDB_bingo%22%2C%22platform%22%3A%221%22%2C%22orgType%22%3A%222%22%2C%22openId%22%3A%22-1%22%2C%22pageClickKey%22%3A%22-1%22%2C%22eid%22%3A%22I3Q65STURLZJUNF3MG743ZFJE5XYQDFHRZSCQ5YDS6T4CSPC6RA6MMZMP2IXIYWSNNO6WA5FIY4RIB42XNRSUMMRTU%22%2C%22fp%22%3A%22a82cb7997e7c879cb36b06f5e0574691%22%2C%22shshshfp%22%3A%2232568b7604006026de6f4754706c832e%22%2C%22shshshfpa%22%3A%22f585c87a-29b9-5140-8d32-4534dde58fb9-1609327675%22%2C%22shshshfpb%22%3A%22b0EElfCWaahraD7QwIlrPdQ%22%2C%22childActivityUrl%22%3A%22https%253A%252F%252Fprodev.m.jd.com%252Fjdlite%252Factive%252F3H885vA4sQj6ctYzzPVix4iiYN2P%252Findex.html%253Fsid%253Dff03fc0d68d4ca7443ab37714b04131w%2526un_area%253D4_50952_106_0%22%2C%22userArea%22%3A%22-1%22%2C%22client%22%3A%22-1%22%2C%22clientVersion%22%3A%22-1%22%2C%22uuid%22%3A%22-1%22%2C%22osVersion%22%3A%22-1%22%2C%22brand%22%3A%22-1%22%2C%22model%22%3A%22-1%22%2C%22networkType%22%3A%22-1%22%2C%22jda%22%3A%22123122771.1637222757035542254276.1637222757.1646064174.1646117985.608%22%2C%22sdkToken%22%3A%22%22%2C%22token%22%3A%226ZIWOHGENB6BTQXTEJGZBDLY7MBHBBWZY57SZZCKGLYBXRIUOIZHJ4ZTEAJ3FTZWIC5R2AN2FATZG%22%2C%22jstub%22%3A%22DAAP6BRCQ74QJKGZ6FZ4ECXWDXYP5TM7P4B3DGCISN6NZGXIAQL6ZXUK37FXHLKCIBNCFI7KSSPCTSWKMCHBSIPLOS252WK5XTQWY6Y%22%2C%22pageClick%22%3A%22Babel_Coupon%22%2C%22couponSource%22%3A%22manual%22%2C%22couponSourceDetail%22%3A%22-100%22%2C%22channel%22%3A%22%E9%80%9A%E5%A4%A9%E5%A1%94%E4%BC%9A%E5%9C%BA%22%2C%22headArea%22%3A%22605715ec560d6508f7403b91b677d79c%22%2C%22sceId%22%3A%22TTTh5%22%2C%22rstr%22%3A%2286233562%22%2C%22sstr%22%3A%221646118012785~1CrvO1aLzPBMDFYQlRjSDAxMQ%3D%3D.aXRgVXlpemRTfWhzZB07b3syCQtoFgFbNmluY09%2BdHMqUTZpPDZTDR0uMiAfOSM8ESkcdQUUATQwBAcZJg%3D%3D.d0f8b630~6%2C1~FE1942E399680CE55B3C0763CE155F6D34457B61~1v2z2hn~C~TxpGXxUKaRRVARkMdB51ah4DYQ8YChwGBAAeQhMbFlwEHwIBHgFpGwIMex4FHgYFARtAGm8eFURcWxMNbxpWAxoGBhoJZBgPAnkbRR5CExsWXAcfAWAeAXcbDXwHHgUeAQUBG0AaHhBTBx8AYRsDfh4Lc3YeBB8EBwgeRhVtHhRWRVoaCAMbEkFFEw0WCQQGAQEDDgEHBQ4CBQABBQYTGxZPV1YVChBCRUNATFRHURIeFEZSVRoIEFFWRkJFQ0FZEB4VQFZYEw1vCwYeAwUAAx0GDBQDBBsBHgNsGxZSWBANAR4UUkQWAhALUVIHVwQCVwgHBVZSU1VXAwEABgsGBQtVVVFSC1BTUhIeFF9HFgIQfl5eR04RVlVKUVoBBBAaE0MWAgMEAwYDBwkHBQoFCgIcEFxaFQ4aHx8BVAQBUFQMWgsBAAZQVVQPFhQQVEdSEAwTVQR9d15Rc2VXUF9GWXYFZkd7WkNnUGkQHhVeRBQLFXNXXVVbVRJ%2FX1QaGh4QWVFEFAsVBgoFBBUcEEVSRRYCaQoHAB4FBwdpFBBAWBIIbRN0cGEfc3kJAhQdFVVWVkBYWVYUHRUFCBAeFQMcDh8GBhoeEAUCBQATGxYOAQYBBgEBAgYCCwQKBAIEGwgEBwsFAQEDAAACAQEOCgEVHBAHE2oYGltdVhIIFFdRUl5UVENEEBoTVl4aCBBCEh4UUl4WAhBFBB4GGAIVGBpRVGhGEAwTBwUaHhBVVBAME0VVVlZdWg0KAAMEBw0EABUcEFtbFQ5jAwcbAx4EbBsWWl5dUBIIFFAVGBpfQVASCBRQFUk%3D~0g61ehn%22%2C%22mitemAddrId%22%3A%22%22%2C%22geo%22%3A%7B%22lng%22%3A%22%22%2C%22lat%22%3A%22%22%7D%2C%22addressId%22%3A%223909001077%22%2C%22posLng%22%3A%22106.476904%22%2C%22posLat%22%3A%2229.502927%22%2C%22focus%22%3A%22%22%2C%22innerAnchor%22%3A%22%22%2C%22cv%22%3A%222.0%22%7D&screen=1080*2145&client=wh5&clientVersion=1.0.0&sid=ff03fc0d68d4ca7443ab37714b04131w&uuid=1637222757035542254276.2314.1646118012292&area=4_50952_106_0"
}
}

View File

@ -1,36 +0,0 @@
/*
此文件为Node.js专用其他用户请忽略
*/
//此处填写京东账号cookie。
let CookieJDs = [
''
]
// 判断环境变量里面是否有京东到家ck
if (process.env.JDDJ_COOKIE) {
if (process.env.JDDJ_COOKIE.indexOf('&') > -1) {
console.log(`您的cookie选择的是用&隔开\n`)
CookieJDs = process.env.JDDJ_COOKIE.split('&');
} else if (process.env.JDDJ_COOKIE.indexOf('\n') > -1) {
console.log(`您的cookie选择的是用换行隔开\n`)
CookieJDs = process.env.JDDJ_COOKIE.split('\n');
} else {
CookieJDs = [process.env.JDDJ_COOKIE];
}
}
if (JSON.stringify(process.env).indexOf('GITHUB') > -1) {
console.log(`请勿使用github action运行此脚本,无论你是从你自己的私库还是其他哪里拉取的源代码,都会导致我被封号\n`);
!(async () => {
await require('./sendNotify').sendNotify('提醒', `请勿使用github action、滥用github资源会封我仓库以及账号`)
await process.exit(0);
})()
}
CookieJDs = [...new Set(CookieJDs.filter(item => item !== "" && item !== null && item !== undefined))]
console.log(`\n====================共有${CookieJDs.length}个京东账号Cookie=========\n`);
console.log(`==================脚本执行- 北京时间(UTC+8)${new Date(new Date().getTime() + new Date().getTimezoneOffset() * 60 * 1000 + 8 * 60 * 60 * 1000).toLocaleString()}=====================\n`)
for (let i = 0; i < CookieJDs.length; i++) {
const index = (i + 1 === 1) ? '' : (i + 1);
exports['CookieJD' + index] = CookieJDs[i].trim();
}
//exports['CookieJDs'] = CookieJDs;

File diff suppressed because one or more lines are too long

View File

@ -1 +0,0 @@
{}

File diff suppressed because one or more lines are too long

View File

@ -1 +0,0 @@
{}

File diff suppressed because one or more lines are too long

View File

@ -1 +0,0 @@
{}

File diff suppressed because one or more lines are too long

View File

@ -1 +0,0 @@
{}

File diff suppressed because one or more lines are too long

View File

@ -1 +0,0 @@
{}