mirror of
https://github.com/chinnkarahoi/jd_scripts.git
synced 2024-06-05 19:32:47 +08:00
Merge branch 'chinnkarahoi:master' into master
This commit is contained in:
commit
09d1b71d93
@ -130,6 +130,9 @@ cron "0,30 0-23/1 * * *" script-path=https://gitee.com/lxk0301/jd_scripts/raw/ma
|
||||
# 幸运大转盘
|
||||
cron "4 10 * * *" script-path=https://gitee.com/lxk0301/jd_scripts/raw/master/jd_market_lottery.js,tag=幸运大转盘
|
||||
|
||||
# 5G超级盲盒
|
||||
cron "0 0,1-23/3 * * *" script-path=https://gitee.com/lxk0301/jd_scripts/raw/master/jd_mohe.js,tag=5G超级盲盒
|
||||
|
||||
# 京东摇钱树
|
||||
cron "3 0-23/2 * * *" script-path=https://gitee.com/lxk0301/jd_scripts/raw/master/jd_moneyTree.js,tag=京东摇钱树
|
||||
|
||||
@ -142,9 +145,6 @@ cron "10 0,20 * * *" script-path=https://gitee.com/lxk0301/jd_scripts/raw/master
|
||||
# 女装盲盒抽京豆
|
||||
cron "35 1,23 * * *" script-path=https://gitee.com/lxk0301/jd_scripts/raw/master/jd_nzmh.js,tag=女装盲盒
|
||||
|
||||
# 沸腾之夜
|
||||
cron "0 15-19/1 * * *" script-path=https://gitee.com/lxk0301/jd_scripts/raw/master/jd_party_night.js,tag=沸腾之夜
|
||||
|
||||
# 东东萌宠
|
||||
cron "15 6-18/6 * * *" script-path=https://gitee.com/lxk0301/jd_scripts/raw/master/jd_pet.js,tag=东东萌宠
|
||||
|
||||
@ -194,7 +194,10 @@ cron "0 0 0 * * *" script-path=https://gitee.com/lxk0301/jd_scripts/raw/master/j
|
||||
cron "0 0 0 * * *" script-path=https://gitee.com/lxk0301/jd_scripts/raw/master/jd_xtg_help.js,tag=家电星推官好友互助
|
||||
|
||||
# 618动物联萌
|
||||
cron "13 * * * *" script-path=https://gitee.com/lxk0301/jd_scripts/raw/master/jd_zoo.js, tag=618动物联萌
|
||||
cron "33 0,6-23/2 * * *" script-path=https://gitee.com/lxk0301/jd_scripts/raw/master/jd_zoo.js, tag=618动物联萌
|
||||
|
||||
# 618动物联萌收集金币
|
||||
cron "0-59/30 * * * *" script-path=https://gitee.com/lxk0301/jd_scripts/raw/master/jd_zooCollect.js,tag=618动物联萌收集金币
|
||||
|
||||
# 京喜签到
|
||||
cron "5 0 * * *" script-path=https://gitee.com/lxk0301/jd_scripts/raw/master/jx_sign.js,tag=京喜签到
|
||||
|
||||
@ -39,11 +39,11 @@
|
||||
{"config":"10-20/5 12 * * * https://gitee.com/lxk0301/jd_scripts/raw/master/jd_live.js, tag=京东直播, img-url=https://raw.githubusercontent.com/Orz-3/mini/master/Color/jd.png, enabled=true", "addons":"https://gitee.com/lxk0301/jd_scripts/raw/master/QuantumultX/lxk0301_cookies.conf"},
|
||||
{"config":"0,30 0-23/1 * * * https://gitee.com/lxk0301/jd_scripts/raw/master/jd_live_redrain.js, tag=超级直播间红包雨, img-url=https://raw.githubusercontent.com/Orz-3/mini/master/Color/jd.png, enabled=true", "addons":"https://gitee.com/lxk0301/jd_scripts/raw/master/QuantumultX/lxk0301_cookies.conf"},
|
||||
{"config":"4 10 * * * https://gitee.com/lxk0301/jd_scripts/raw/master/jd_market_lottery.js, tag=幸运大转盘, enabled=true", "addons":"https://gitee.com/lxk0301/jd_scripts/raw/master/QuantumultX/lxk0301_cookies.conf"},
|
||||
{"config":"0 0,1-23/3 * * * https://gitee.com/lxk0301/jd_scripts/raw/master/jd_mohe.js, tag=5G超级盲盒, img-url=https://raw.githubusercontent.com/Orz-3/mini/master/Color/jd.png, enabled=true", "addons":"https://gitee.com/lxk0301/jd_scripts/raw/master/QuantumultX/lxk0301_cookies.conf"},
|
||||
{"config":"3 0-23/2 * * * https://gitee.com/lxk0301/jd_scripts/raw/master/jd_moneyTree.js, tag=京东摇钱树, img-url=https://raw.githubusercontent.com/58xinian/icon/master/jdyqs.png, enabled=true", "addons":"https://gitee.com/lxk0301/jd_scripts/raw/master/QuantumultX/lxk0301_cookies.conf"},
|
||||
{"config":"10 7 * * * https://gitee.com/lxk0301/jd_scripts/raw/master/jd_ms.js, tag=京东秒秒币, img-url=https://raw.githubusercontent.com/yogayyy/Scripts/master/Icon/shylocks/jd_ms.jpg, enabled=true", "addons":"https://gitee.com/lxk0301/jd_scripts/raw/master/QuantumultX/lxk0301_cookies.conf"},
|
||||
{"config":"10 0,20 * * * https://gitee.com/lxk0301/jd_scripts/raw/master/jd_necklace.js, tag=点点券, img-url=https://raw.githubusercontent.com/Orz-3/mini/master/Color/jd.png, enabled=true", "addons":"https://gitee.com/lxk0301/jd_scripts/raw/master/QuantumultX/lxk0301_cookies.conf"},
|
||||
{"config":"35 1,23 * * * https://gitee.com/lxk0301/jd_scripts/raw/master/jd_nzmh.js, tag=女装盲盒, img-url=https://raw.githubusercontent.com/Orz-3/mini/master/Color/jd.png, enabled=true", "addons":"https://gitee.com/lxk0301/jd_scripts/raw/master/QuantumultX/lxk0301_cookies.conf"},
|
||||
{"config":"0 15-19/1 * * * https://gitee.com/lxk0301/jd_scripts/raw/master/jd_party_night.js, tag=沸腾之夜, img-url=https://raw.githubusercontent.com/Orz-3/mini/master/Color/jd.png, enabled=true", "addons":"https://gitee.com/lxk0301/jd_scripts/raw/master/QuantumultX/lxk0301_cookies.conf"},
|
||||
{"config":"15 6-18/6 * * * https://gitee.com/lxk0301/jd_scripts/raw/master/jd_pet.js, tag=东东萌宠, img-url=https://raw.githubusercontent.com/58xinian/icon/master/jdmc.png, enabled=true", "addons":"https://gitee.com/lxk0301/jd_scripts/raw/master/QuantumultX/lxk0301_cookies.conf"},
|
||||
{"config":"12 0-23/6 * * * https://gitee.com/lxk0301/jd_scripts/raw/master/jd_pigPet.js, tag=京东金融养猪猪, img-url=https://raw.githubusercontent.com/58xinian/icon/master/jdyz.png, enabled=true", "addons":"https://gitee.com/lxk0301/jd_scripts/raw/master/QuantumultX/lxk0301_cookies.conf"},
|
||||
{"config":"1 7-21/2 * * * https://gitee.com/lxk0301/jd_scripts/raw/master/jd_plantBean.js, tag=种豆得豆, img-url=https://raw.githubusercontent.com/58xinian/icon/master/jdzd.png, enabled=true", "addons":"https://gitee.com/lxk0301/jd_scripts/raw/master/QuantumultX/lxk0301_cookies.conf"},
|
||||
@ -60,7 +60,8 @@
|
||||
{"config":"55 23 * * * https://gitee.com/lxk0301/jd_scripts/raw/master/jd_unsubscribe.js, tag=取关京东店铺商品, img-url=https://raw.githubusercontent.com/Orz-3/mini/master/Color/jd.png, enabled=true", "addons":"https://gitee.com/lxk0301/jd_scripts/raw/master/QuantumultX/lxk0301_cookies.conf"},
|
||||
{"config":"0 0 0 * * * https://gitee.com/lxk0301/jd_scripts/raw/master/jd_xtg.js, tag=家电星推官, img-url=https://raw.githubusercontent.com/Orz-3/mini/master/Color/jd.png, enabled=true", "addons":"https://gitee.com/lxk0301/jd_scripts/raw/master/QuantumultX/lxk0301_cookies.conf"},
|
||||
{"config":"0 0 0 * * * https://gitee.com/lxk0301/jd_scripts/raw/master/jd_xtg_help.js, tag=家电星推官好友互助, img-url=https://raw.githubusercontent.com/Orz-3/mini/master/Color/jd.png, enabled=true", "addons":"https://gitee.com/lxk0301/jd_scripts/raw/master/QuantumultX/lxk0301_cookies.conf"},
|
||||
{"config":"13 * * * * https://gitee.com/lxk0301/jd_scripts/raw/master/jd_zoo.js, tag=618动物联萌, img-url=https://raw.githubusercontent.com/Orz-3/mini/master/Color/jd.png, enabled=true", "addons":"https://gitee.com/lxk0301/jd_scripts/raw/master/QuantumultX/lxk0301_cookies.conf"},
|
||||
{"config":"33 0,6-23/2 * * * https://gitee.com/lxk0301/jd_scripts/raw/master/jd_zoo.js, tag=618动物联萌, img-url=https://raw.githubusercontent.com/Orz-3/mini/master/Color/jd.png, enabled=true", "addons":"https://gitee.com/lxk0301/jd_scripts/raw/master/QuantumultX/lxk0301_cookies.conf"},
|
||||
{"config":"0-59/30 * * * * https://gitee.com/lxk0301/jd_scripts/raw/master/jd_zooCollect.js, tag=618动物联萌收集金币, img-url=https://raw.githubusercontent.com/Orz-3/mini/master/Color/jd.png, enabled=true", "addons":"https://gitee.com/lxk0301/jd_scripts/raw/master/QuantumultX/lxk0301_cookies.conf"},
|
||||
{"config":"5 0 * * * https://gitee.com/lxk0301/jd_scripts/raw/master/jx_sign.js, tag=京喜签到, img-url=https://raw.githubusercontent.com/Orz-3/mini/master/Color/jd.png, enabled=true", "addons":"https://gitee.com/lxk0301/jd_scripts/raw/master/QuantumultX/lxk0301_cookies.conf"},
|
||||
{"config":"15 17 * * * https://gitee.com/lxk0301/jd_scripts/raw/master/backUp/xmSports.js, tag=小米运动, img-url=https://raw.githubusercontent.com/58xinian/icon/master/xmyd.png, enabled=true", "addons":"https://gitee.com/lxk0301/jd_scripts/raw/master/QuantumultX/lxk0301_cookies.conf"}
|
||||
]
|
||||
|
||||
@ -49,11 +49,11 @@ crazyJoy挂机 = type=cron,cronexp="10 1,12 * * *",wake-system=1,timeout=20,scri
|
||||
京东直播 = type=cron,cronexp="10-20/5 12 * * *",wake-system=1,timeout=3600,script-path=https://gitee.com/lxk0301/jd_scripts/raw/master/jd_live.js
|
||||
超级直播间红包雨 = type=cron,cronexp="0,30 0-23/1 * * *",wake-system=1,timeout=3600,script-path=https://gitee.com/lxk0301/jd_scripts/raw/master/jd_live_redrain.js
|
||||
幸运大转盘 = type=cron,cronexp="4 10 * * *",wake-system=1,timeout=3600,script-path=https://gitee.com/lxk0301/jd_scripts/raw/master/jd_market_lottery.js
|
||||
5G超级盲盒 = type=cron,cronexp="0 0,1-23/3 * * *",wake-system=1,timeout=3600,script-path=https://gitee.com/lxk0301/jd_scripts/raw/master/jd_mohe.js
|
||||
京东摇钱树 = type=cron,cronexp="3 0-23/2 * * *",wake-system=1,timeout=3600,script-path=https://gitee.com/lxk0301/jd_scripts/raw/master/jd_moneyTree.js
|
||||
京东秒秒币 = type=cron,cronexp="10 7 * * *",wake-system=1,timeout=200,script-path=https://gitee.com/lxk0301/jd_scripts/raw/master/jd_ms.js
|
||||
点点券 = type=cron,cronexp="10 0,20 * * *",wake-system=1,timeout=3600,script-path=https://gitee.com/lxk0301/jd_scripts/raw/master/jd_necklace.js
|
||||
女装盲盒 = type=cron,cronexp="35 1,23 * * *",wake-system=1,timeout=3600,script-path=https://gitee.com/lxk0301/jd_scripts/raw/master/jd_nzmh.js
|
||||
沸腾之夜 = type=cron,cronexp="0 15-19/1 * * *",wake-system=1,timeout=3600,script-path=https://gitee.com/lxk0301/jd_scripts/raw/master/jd_party_night.js
|
||||
东东萌宠 = type=cron,cronexp="15 6-18/6 * * *",wake-system=1,timeout=3600,script-path=https://gitee.com/lxk0301/jd_scripts/raw/master/jd_pet.js
|
||||
京东金融养猪猪 = type=cron,cronexp="12 0-23/6 * * *",wake-system=1,timeout=3600,script-path=https://gitee.com/lxk0301/jd_scripts/raw/master/jd_pigPet.js
|
||||
京东种豆得豆 = type=cron,cronexp="1 7-21/2 * * *",wake-system=1,timeout=3600,script-path=https://gitee.com/lxk0301/jd_scripts/raw/master/jd_plantBean.js
|
||||
@ -70,7 +70,8 @@ crazyJoy挂机 = type=cron,cronexp="10 1,12 * * *",wake-system=1,timeout=20,scri
|
||||
取关京东店铺商品 = type=cron,cronexp="55 23 * * *",wake-system=1,timeout=3600,script-path=https://gitee.com/lxk0301/jd_scripts/raw/master/jd_unsubscribe.js
|
||||
家电星推官 = type=cron,cronexp="0 0 0 * * *",wake-system=1,timeout=3600,script-path=https://gitee.com/lxk0301/jd_scripts/raw/master/jd_xtg.js
|
||||
家电星推官好友互助 = type=cron,cronexp="0 0 0 * * *",wake-system=1,timeout=3600,script-path=https://gitee.com/lxk0301/jd_scripts/raw/master/jd_xtg_help.js
|
||||
618动物联萌 = type=cron,cronexp="13 * * * *",wake-system=1,timeout=3600,script-path=https://gitee.com/lxk0301/jd_scripts/raw/master/jd_zoo.js
|
||||
618动物联萌 = type=cron,cronexp="33 0,6-23/2 * * *",wake-system=1,timeout=3600,script-path=https://gitee.com/lxk0301/jd_scripts/raw/master/jd_zoo.js
|
||||
618动物联萌收集金币 = type=cron,cronexp="0-59/30 * * * *",wake-system=1,timeout=3600,script-path=https://gitee.com/lxk0301/jd_scripts/raw/master/jd_zooCollect.js
|
||||
京喜签到 = type=cron,cronexp="5 0 * * *",wake-system=1,timeout=3600,script-path=https://gitee.com/lxk0301/jd_scripts/raw/master/jx_sign.js
|
||||
小米运动 = type=cron,cronexp="15 17 * * *",wake-system=1,timeout=3600,script-path=https://gitee.com/lxk0301/jd_scripts/raw/master/backUp/xmSports.js
|
||||
小米运动获取Token = type=http-response,pattern=^https:\/\/account\.huami\.com\/v2\/client\/login, requires-body=1, max-size=0, script-path=https://gitee.com/lxk0301/jd_scripts/raw/master/backUp/xmSports.js
|
||||
|
||||
File diff suppressed because one or more lines are too long
@ -19,8 +19,8 @@ cron "0 15-19/1 * * *" script-path=https://gitee.com/lxk0301/jd_scripts/raw/mast
|
||||
沸腾之夜 = type=cron,script-path=https://gitee.com/lxk0301/jd_scripts/raw/master/jd_party_night.js, cronexpr="0 15-19/1 * * *", timeout=3600, enable=true
|
||||
*/
|
||||
const $ = new Env('沸腾之夜');
|
||||
const notify = $.isNode() ? require('./sendNotify') : '';
|
||||
const jdCookieNode = $.isNode() ? require('./jdCookie.js') : '';
|
||||
const notify = $.isNode() ? require('../sendNotify') : '';
|
||||
const jdCookieNode = $.isNode() ? require('../jdCookie.js') : '';
|
||||
$.inviteCodeList = [];
|
||||
let cookiesArr = [
|
||||
];
|
||||
@ -221,7 +221,7 @@ function getPostRequest(type, body) {
|
||||
'Content-Type' : `application/x-www-form-urlencoded`,
|
||||
'Host' : `api.m.jd.com`,
|
||||
'Connection' : `keep-alive`,
|
||||
'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"),
|
||||
'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"),
|
||||
'Referer' : `https://h5static.m.jd.com/babelDiy/Zeus/qEfNdq9oRsJfhYJ7XR1EahyLt9L/index.html`,
|
||||
'Accept-Language' : `zh-cn`
|
||||
};
|
||||
@ -21,15 +21,17 @@
|
||||
#手机狂欢城
|
||||
0 0,12,18,21 * * * node /scripts/jd_carnivalcity.js >> /scripts/logs/jd_carnivalcity.log 2>&1
|
||||
#618动物联萌
|
||||
33 * * * * node /scripts/jd_zoo.js >> /scripts/logs/jd_zoo.log 2>&1
|
||||
|
||||
33 0,6-23/2 * * * node /scripts/jd_zoo.js >> /scripts/logs/jd_zoo.log 2>&1
|
||||
#618动物联萌专门收集金币(每小时的第30分运行一次)
|
||||
0-59/30 * * * * node /scripts/jd_zooCollect.js >> /scripts/logs/jd_zooCollect.log 2>&1
|
||||
#家电星推官 活动时间:2021年5月27日 00:00:00-2021年6月18日 23:59:59
|
||||
0 0 * * * node /scripts/jd_xtg.js >> /scripts/logs/jd_xtg.log 2>&1
|
||||
#家电星推官好友互助 活动时间:2021年5月27日 00:00:00-2021年6月18日 23:59:59
|
||||
0 0 * * * node /scripts/jd_xtg_help.js >> /scripts/logs/jd_xtg_help.log 2>&1
|
||||
#金榜创造营 活动时间:2021-05-21至2021-12-31
|
||||
0 1,22 * * * node /scripts/jd_gold_creator.js >> /scripts/logs/jd_gold_creator.log 2>&1
|
||||
|
||||
#5G超级盲盒(活动时间:2021-06-2到2021-07-31)
|
||||
0 0-23/4 * * * node /scripts/jd_mohe.js >> /scripts/logs/jd_mohe.log 2>&1
|
||||
##############长期活动##############
|
||||
# 签到
|
||||
7 0,17 * * * cd /scripts && node jd_bean_sign.js >> /scripts/logs/jd_bean_sign.log 2>&1
|
||||
|
||||
@ -61,7 +61,7 @@ if ($.isNode()) {
|
||||
.catch((e) => $.logErr(e))
|
||||
.finally(() => $.done())
|
||||
async function execSign() {
|
||||
console.log(`\n开始执行脚本签到,请稍等`)
|
||||
console.log(`\n开始执行 ${$.name} 签到,请稍等...\n`);
|
||||
try {
|
||||
// if (notify.SCKEY || notify.BARK_PUSH || notify.DD_BOT_TOKEN || (notify.TG_BOT_TOKEN && notify.TG_USER_ID) || notify.IGOT_PUSH_KEY || notify.QQ_SKEY) {
|
||||
// await exec(`${process.execPath} ${JD_DailyBonusPath} >> ${resultPath}`);
|
||||
@ -73,7 +73,7 @@ async function execSign() {
|
||||
// }
|
||||
await exec(`${process.execPath} ${JD_DailyBonusPath} >> ${resultPath}`);
|
||||
const notifyContent = await fs.readFileSync(resultPath, "utf8");
|
||||
console.log(`👇👇👇👇👇👇👇👇👇👇👇LOG记录👇👇👇👇👇👇👇👇👇👇👇\n${notifyContent}\n👆👆👆👆👆👆👆👆👆LOG记录👆👆👆👆👆👆👆👆👆👆👆`);
|
||||
console.error(`👇👇👇👇👇👇👇👇👇👇👇签到详情👇👇👇👇👇👇👇👇👇👇👇\n${notifyContent}\n👆👆👆👆👆👆👆👆👆签到详情👆👆👆👆👆👆👆👆👆👆👆`);
|
||||
// await exec("node JD_DailyBonus.js", { stdio: "inherit" });
|
||||
// console.log('执行完毕', new Date(new Date().getTime() + 8 * 3600000).toLocaleDateString())
|
||||
//发送通知
|
||||
@ -106,7 +106,7 @@ async function execSign() {
|
||||
}
|
||||
//运行完成后,删除下载的文件
|
||||
await deleteFile(resultPath);//删除result.txt
|
||||
console.log(`\n\n*****************${new Date(new Date().getTime()).toLocaleString('zh', {hour12: false})} 京东账号${$.index} ${$.nickName || $.UserName}京豆签到完成*******************\n\n`);
|
||||
console.log(`\n\n*****************${new Date(new Date().getTime()).toLocaleString('zh', {hour12: false})} 京东账号${$.index} ${$.nickName || $.UserName} ${$.name}完成*******************\n\n`);
|
||||
} catch (e) {
|
||||
console.log("京东签到脚本执行异常:" + e);
|
||||
}
|
||||
|
||||
@ -1056,7 +1056,7 @@ function CreateTuan() {
|
||||
$.tuanIds.push(data.data['tuanId']);
|
||||
} else {
|
||||
//{"msg":"活动已结束,请稍后再试~","nowTime":1621551005,"ret":10218}
|
||||
if (data['ret'] === 10218 && ($.index === 1 || cookiesArr.length === $.index)) {
|
||||
if (data['ret'] === 10218 && ($.index % 5 === 0) && (new Date().getHours() % 6 === 0)) {
|
||||
$.msg($.name, '', `京喜工厂拼团瓜分电力活动团ID(activeId)已失效\n请自行抓包替换(Node环境变量为TUAN_ACTIVEID,iOS端在BoxJx)或者联系作者等待更新`);
|
||||
if ($.isNode()) await notify.sendNotify($.name, `京喜工厂拼团瓜分电力活动团ID(activeId)已失效\n请自行抓包替换(Node环境变量为TUAN_ACTIVEID,iOS端在BoxJx)或者联系作者等待更新`)
|
||||
}
|
||||
|
||||
File diff suppressed because one or more lines are too long
@ -1,11 +1,9 @@
|
||||
/*
|
||||
超级直播间红包雨
|
||||
更新时间:2021-05-29
|
||||
更新时间:2021-06-2
|
||||
下一场超级直播间时间:06月08日 18:00,直播间地址:https://h5.m.jd.com/dev/3pbY8ZuCx4ML99uttZKLHC2QcAMn/live.html?id=4272306
|
||||
下一场超级直播间时间:06月05日 18:00,直播间地址:https://h5.m.jd.com/dev/3pbY8ZuCx4ML99uttZKLHC2QcAMn/live.html?id=4313541
|
||||
下一场超级直播间时间:06月04日 18:00,直播间地址:https://h5.m.jd.com/dev/3pbY8ZuCx4ML99uttZKLHC2QcAMn/live.html?id=4228810
|
||||
下一场超级直播间时间:06月01日 18:00,直播间地址:https://h5.m.jd.com/dev/3pbY8ZuCx4ML99uttZKLHC2QcAMn/live.html?id=4263922
|
||||
下一场超级直播间时间:06月01日 00:00,直播间地址:https://h5.m.jd.com/dev/3pbY8ZuCx4ML99uttZKLHC2QcAMn/live.html?id=4263889
|
||||
下一场超级直播间时间:05月31日 19:30,直播间地址:https://h5.m.jd.com/dev/3pbY8ZuCx4ML99uttZKLHC2QcAMn/live.html?id=4241322
|
||||
脚本兼容: Quantumult X, Surge, Loon, JSBox, Node.js
|
||||
==============Quantumult X==============
|
||||
[task_local]
|
||||
@ -25,21 +23,17 @@ cron "0,30 0-23/1 * * *" script-path=https://gitee.com/lxk0301/jd_scripts/raw/ma
|
||||
const $ = new Env('超级直播间红包雨');
|
||||
let allMessage = '', id = 'RRA2cUocg5uYEyuKpWNdh4qE4NW1bN2';
|
||||
let bodyList = {
|
||||
"1": {
|
||||
"url": "https://api.m.jd.com/client.action?functionId=liveActivityV946&uuid=8888888&client=apple&clientVersion=9.4.1&st=1622272074073&sign=5cf18c596313915145e9e3d0fe7676b1&sv=111",
|
||||
"body": "body=%7B%22liveId%22%3A%224263889%22%7D"
|
||||
},
|
||||
"4": {
|
||||
"url": "https://api.m.jd.com/client.action?functionId=liveActivityV946&uuid=8888888&client=apple&clientVersion=9.4.1&st=1622272071067&sign=d7196ce70d3f6ac82d868d338d6999aa&sv=101",
|
||||
"url": "https://api.m.jd.com/client.action?functionId=liveActivityV946&uuid=8888888&client=apple&clientVersion=9.4.1&st=1622629280006&sign=6061fe75c9fbdc72dd4831d26dab245f&sv=121",
|
||||
"body": "body=%7B%22liveId%22%3A%224228810%22%7D"
|
||||
},
|
||||
"8": {
|
||||
"url": "https://api.m.jd.com/client.action?functionId=liveActivityV946&uuid=8888888&client=apple&clientVersion=9.4.1&st=1622272070075&sign=abbe74eed81c256a0a705e593f4c9e0f&sv=120",
|
||||
"body": "body=%7B%22liveId%22%3A%224272306%22%7D"
|
||||
"5": {
|
||||
"url": "https://api.m.jd.com/client.action?functionId=liveActivityV946&uuid=8888888&client=apple&clientVersion=9.4.1&st=1622629276077&sign=ba151dffe4d5edc17bc174258d7abe21&sv=112",
|
||||
"body": "body=%7B%22liveId%22%3A%224313541%22%7D"
|
||||
},
|
||||
"31": {
|
||||
"url": "https://api.m.jd.com/client.action?functionId=liveActivityV946&uuid=8888888&client=apple&clientVersion=9.4.1&st=1622272075062&sign=f50dcec58eb1986601cacd1c09cd41b3&sv=121",
|
||||
"body": "body=%7B%22liveId%22%3A%224241322%22%7D"
|
||||
"8": {
|
||||
"url": "https://api.m.jd.com/client.action?functionId=liveActivityV946&uuid=8888888&client=apple&clientVersion=9.4.1&st=1622629275093&sign=2a49aec55b35456616d7a48d725d622f&sv=102",
|
||||
"body": "body=%7B%22liveId%22%3A%224272306%22%7D"
|
||||
}
|
||||
}
|
||||
let ids = {}
|
||||
@ -67,10 +61,8 @@ const JD_API_HOST = 'https://api.m.jd.com/api';
|
||||
return;
|
||||
}
|
||||
console.log('下一场超级直播间时间:06月08日 18:00,直播间地址:https://h5.m.jd.com/dev/3pbY8ZuCx4ML99uttZKLHC2QcAMn/live.html?id=4272306\n' +
|
||||
'下一场超级直播间时间:06月04日 18:00,直播间地址:https://h5.m.jd.com/dev/3pbY8ZuCx4ML99uttZKLHC2QcAMn/live.html?id=4228810\n' +
|
||||
'下一场超级直播间时间:06月01日 18:00,直播间地址:https://h5.m.jd.com/dev/3pbY8ZuCx4ML99uttZKLHC2QcAMn/live.html?id=4263922\n' +
|
||||
'下一场超级直播间时间:06月01日 00:00,直播间地址:https://h5.m.jd.com/dev/3pbY8ZuCx4ML99uttZKLHC2QcAMn/live.html?id=4263889\n' +
|
||||
'下一场超级直播间时间:05月31日 19:30,直播间地址:https://h5.m.jd.com/dev/3pbY8ZuCx4ML99uttZKLHC2QcAMn/live.html?id=4241322')
|
||||
'下一场超级直播间时间:06月05日 18:00,直播间地址:https://h5.m.jd.com/dev/3pbY8ZuCx4ML99uttZKLHC2QcAMn/live.html?id=4313541\n' +
|
||||
'下一场超级直播间时间:06月04日 18:00,直播间地址:https://h5.m.jd.com/dev/3pbY8ZuCx4ML99uttZKLHC2QcAMn/live.html?id=4228810')
|
||||
$.newAcids = [];
|
||||
await getRedRain();
|
||||
|
||||
|
||||
@ -18,9 +18,10 @@ Object.keys(jdCookieNode).forEach((item) => {
|
||||
if (process.env.JD_DEBUG && process.env.JD_DEBUG === 'false') console.log = () => {};
|
||||
if (JSON.stringify(process.env).indexOf('GITHUB') > -1) process.exit(0);
|
||||
|
||||
const appIdArr = ['1EFRRxA','1EFRQwA','1EFVRxQ','1EFRXxg','1EFVRwA','1EFVRxw','1EFRZwA','1EFRZwQ','1EFRYwA'];
|
||||
const homeDataFunPrefixArr = ['interact_template','interact_template','harmony_template','','','','','','','','','','','','','','','interact_template','interact_template'];
|
||||
const collectScoreFunPrefixArr = ['','','','','','','','','','','','','','','','','','interact_template','interact_template'];
|
||||
const appIdArr = ['1EFRRxA','1EFRQwA','1EFRYxQ','1EFRXxg','1EFVRwA','1EFVRxw','1EFRZwA','1EFRZwQ','1EFRYwA','1EFVRxg','1EFVRxQ']
|
||||
const homeDataFunPrefixArr = ['interact_template','interact_template','harmony_template','','','','','','','','','','','','','','','interact_template','interact_template']
|
||||
const collectScoreFunPrefixArr = ['','','','','','','','','','','','','','','','','','interact_template','interact_template']
|
||||
|
||||
$.allShareId = {};
|
||||
main();
|
||||
async function main() {
|
||||
@ -196,7 +197,7 @@ function harmony_collectScore(timeout = 0) {
|
||||
data = JSON.parse(data);
|
||||
if (data['code'] === 0) {
|
||||
if (data['data']['bizCode'] === 0) {
|
||||
console.log(`助力结果:${data.data.bizMsg}\n`);
|
||||
console.log(`助力结果:${data.data.bizMsg}🎉\n`);
|
||||
} else {
|
||||
if (data['data']['bizCode'] === 108) $.canHelp = false;
|
||||
if (data['data']['bizCode'] === 103) $.item['max'] = true;
|
||||
|
||||
@ -1,8 +1,8 @@
|
||||
/*
|
||||
5G超级盲盒,可抽奖获得京豆,建议在凌晨0点时运行脚本,白天抽奖基本没有京豆,4小时运行一次收集热力值
|
||||
活动地址: https://isp5g.m.jd.com
|
||||
活动时间:2021-03-19到2021-04-30
|
||||
更新时间:2021-04-26 12:00
|
||||
活动时间:2021-06-2到2021-07-31
|
||||
更新时间:2021-06-3 12:00
|
||||
脚本兼容: QuantumultX, Surge,Loon, JSBox, Node.js
|
||||
=================================Quantumultx=========================
|
||||
[task_local]
|
||||
@ -20,9 +20,9 @@ cron "0 0,1-23/3 * * *" script-path=https://gitee.com/lxk0301/jd_scripts/raw/mas
|
||||
5G超级盲盒 = type=cron,script-path=https://gitee.com/lxk0301/jd_scripts/raw/master/jd_mohe.js, cronexpr="0 0,1-23/3 * * *", timeout=3600, enable=true
|
||||
*/
|
||||
const $ = new Env('5G超级盲盒');
|
||||
const notify = $.isNode() ? require('../sendNotify') : '';
|
||||
const notify = $.isNode() ? require('./sendNotify') : '';
|
||||
//Node.js用户请在jdCookie.js处填写京东ck;
|
||||
const jdCookieNode = $.isNode() ? require('../jdCookie.js') : '';
|
||||
const jdCookieNode = $.isNode() ? require('./jdCookie.js') : '';
|
||||
let jdNotify = true;//是否关闭通知,false打开通知推送,true关闭通知推送
|
||||
//IOS等用户直接用NobyDa的jd cookie
|
||||
let cookiesArr = [], cookie = '', message, allMessage = '';
|
||||
@ -43,10 +43,10 @@ $.shareId = [];
|
||||
$.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 ($.time('yyyy-MM-dd') === '2021-05-01') {
|
||||
$.msg($.name, '活动已结束', `请禁用或删除脚本`);
|
||||
return
|
||||
}
|
||||
console.log('5G超级盲盒,可抽奖获得京豆,建议在凌晨0点时运行脚本,白天抽奖基本没有京豆,4小时运行一次收集热力值\n' +
|
||||
'活动地址: https://isp5g.m.jd.com\n' +
|
||||
'活动时间:2021-06-2到2021-07-31\n' +
|
||||
'更新时间:2021-06-3 12:00');
|
||||
await updateShareCodesCDN()
|
||||
for (let i = 0; i < cookiesArr.length; i++) {
|
||||
if (cookiesArr[i]) {
|
||||
@ -393,7 +393,7 @@ async function getAward() {
|
||||
console.log(`====抽奖结果====,${JSON.stringify(lotteryRes.data)}`);
|
||||
console.log(lotteryRes.data.name);
|
||||
console.log(lotteryRes.data.beanNum);
|
||||
if ((lotteryRes.data['prizeId'] && lotteryRes.data['prizeId'] !== '9999') || lotteryRes.data.name !== '未中奖') {
|
||||
if (lotteryRes.data['prizeId'] && (lotteryRes.data['type'] !== '99' && lotteryRes.data['type'] !== '3' && lotteryRes.data['type'] !== '8' && lotteryRes.data['type'] !== '9')) {
|
||||
message += `抽奖获得:${lotteryRes.data.name}\n`;
|
||||
}
|
||||
} else if (lotteryRes.code === 4001) {
|
||||
@ -437,7 +437,7 @@ function lottery() {
|
||||
"content-type": "application/x-www-form-urlencoded",
|
||||
"cookie": cookie,
|
||||
"referer": "https://isp5g.m.jd.com",
|
||||
"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")
|
||||
"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")
|
||||
}
|
||||
}
|
||||
$.get(options, (err, resp, data) => {
|
||||
@ -465,15 +465,15 @@ function shareUrl() {
|
||||
"content-type": "application/x-www-form-urlencoded",
|
||||
"cookie": cookie,
|
||||
"referer": "https://isp5g.m.jd.com",
|
||||
"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")
|
||||
"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")
|
||||
}
|
||||
}
|
||||
$.get(options, async (err, resp, data) => {
|
||||
try {
|
||||
// console.log('好友邀请码', data)
|
||||
console.log('好友邀请码', data)
|
||||
data = JSON.parse(data);
|
||||
if (data['code'] === 5000) {
|
||||
console.log(`重新运行一次脚本即可获取好友邀请码`)
|
||||
console.log(`尝试多次运行脚本即可获取好友邀请码`)
|
||||
}
|
||||
// console.log('homeGoBrowse', data)
|
||||
if (data['code'] === 200) {
|
||||
@ -499,7 +499,7 @@ function taskurl(url) {
|
||||
"content-type": "application/x-www-form-urlencoded",
|
||||
"cookie": cookie,
|
||||
"referer": "https://isp5g.m.jd.com",
|
||||
"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")
|
||||
"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")
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -508,7 +508,7 @@ function updateShareCodesCDN(url = 'https://cdn.jsdelivr.net/gh/gitupdate/update
|
||||
$.get({
|
||||
url ,
|
||||
timeout: 10000,
|
||||
headers:{"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")}}, async (err, resp, data) => {
|
||||
headers:{"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")}}, async (err, resp, data) => {
|
||||
try {
|
||||
if (err) {
|
||||
console.log(`${JSON.stringify(err)}`)
|
||||
File diff suppressed because one or more lines are too long
152
jd_zooCollect.js
Normal file
152
jd_zooCollect.js
Normal file
File diff suppressed because one or more lines are too long
@ -40,12 +40,12 @@ inputs:
|
||||
cronExpression: "0 3 */1 * * * *"
|
||||
enable: true
|
||||
argument: jd_joy_feedPets&jd_joy&jd_moneyTree&jd_plantBean&jd_dreamFactory&jd_jdfactory&jd_health_collect
|
||||
- timer: #宠汪汪积分兑换京豆 #签到领现金 #点点券 #东东小窝 #京喜财富岛 #京东直播 #东东健康社区 #每日抽奖 #女装魔盒 #跳跳乐
|
||||
- timer: #宠汪汪积分兑换京豆 #签到领现金 #点点券 #东东小窝 #京喜财富岛 #京东直播 #东东健康社区 #每日抽奖 #女装魔盒 #跳跳乐 #5G超级盲盒
|
||||
parameters:
|
||||
name: joyreward_cash_necklace_smallhome_cfd_live_health_dailylottery_nzmh_jump
|
||||
name: joyreward_cash_necklace_smallhome_cfd_live_health_dailylottery_nzmh_jump_mohe
|
||||
cronExpression: "0 0 0-16/8,20 * * * *"
|
||||
enable: true
|
||||
argument: jd_joy_reward&jd_cash&jd_necklace&jd_small_home&jd_cfd&jd_live&jd_health&jd_daily_lottery&jd_nzmh&jd_jump
|
||||
argument: jd_joy_reward&jd_cash&jd_necklace&jd_small_home&jd_cfd&jd_live&jd_health&jd_daily_lottery&jd_nzmh&jd_jump&jd_mohe
|
||||
- timer: #京东全民开红包 #进店领豆 #取关京东店铺商品 #京东抽奖机 #京东汽车 #京东秒秒币
|
||||
parameters:
|
||||
name: redPacket_shop_unsubscribe_lotteryMachine_car_ms
|
||||
@ -64,12 +64,12 @@ inputs:
|
||||
cronExpression: "0 15 */1 * * * *"
|
||||
enable: true
|
||||
argument: jd_superMarket&jd_syj&jd_city&jd_zoo
|
||||
- timer: #京豆变动通知 #疯狂的joy #监控crazyJoy分红 #京东排行榜 #领京豆额外奖励 #京东保价 #闪购盲盒 #京东沸腾之夜
|
||||
- timer: #京豆变动通知 #疯狂的joy #监控crazyJoy分红 #京东排行榜 #领京豆额外奖励 #京东保价 #闪购盲盒
|
||||
parameters:
|
||||
name: beanchange_crazyjoy_crazyjoybonus_rankingList_beanhome_price_sgmh_partynight
|
||||
name: beanchange_crazyjoy_crazyjoybonus_rankingList_beanhome_price_sgmh
|
||||
cronExpression: "0 30 7 * * * *"
|
||||
enable: true
|
||||
argument: jd_bean_change&jd_crazy_joy&jd_crazy_joy_bonus&jd_rankingList&jd_bean_home&jd_price&jd_sgmh&jd_party_nigth
|
||||
argument: jd_bean_change&jd_crazy_joy&jd_crazy_joy_bonus&jd_rankingList&jd_bean_home&jd_price&jd_sgmh
|
||||
- timer: #金融养猪 #京东快递 #京东赚赚 #京喜签到 #京东极速版红包 #领金贴
|
||||
parameters:
|
||||
name: pigPet_kd_jdzz_sign_speedredpocke_jintie
|
||||
|
||||
Loading…
Reference in New Issue
Block a user