超级直播间

This commit is contained in:
lxk0301
2021-04-15 14:25:39 +08:00
parent 9c4041277d
commit 9fc9f7932c

View File

@ -1,7 +1,11 @@
/*
超级直播间红包雨
下一场直播时间:04月14日 20:00ID3861625
30,31 20-23/1 14 4 *
下一场直播时间:04月20日 20:00ID3913828
30,31 20-23/1 20 4 *
下一场直播时间:04月17日 20:00ID3915958
30,31 20-23/1 17 4 *
下一场直播时间:04月16日 20:00ID3916360
30,31 20-23/1 16 4 *
脚本兼容: Quantumult X, Surge, Loon, JSBox, Node.js
==============Quantumult X==============
[task_local]
@ -21,9 +25,17 @@ cron "0,30,31 20-23/1 * * *" script-path=https://gitee.com/lxk0301/jd_scripts/ra
const $ = new Env('超级直播间红包雨');
let allMessage = '';
let bodyList = {
"14": {
"url": "https://api.m.jd.com/client.action?functionId=liveActivityV946&uuid=8888888&client=apple&clientVersion=9.4.1&st=1617851034027&sign=811dcdb1ef6f4e775f7ccf4f42d73a7a&sv=111",
"body": "body=%7B%22liveId%22%3A%223861625%22%7D"
"16": {
"url": "https://api.m.jd.com/client.action?functionId=liveActivityV946&uuid=8888888&client=apple&clientVersion=9.4.1&st=1618467793031&sign=b0c98f94736c966c7b3497eb95c430ec&sv=122",
"body": "body=%7B%22liveId%22%3A%223916360%22%7D"
},
"17": {
"url": "https://api.m.jd.com/client.action?functionId=liveActivityV946&uuid=8888888&client=apple&clientVersion=9.4.1&st=1618467791015&sign=cc4c9d2b9cf5a6463cd82f02f9a7afac&sv=101",
"body": "body=%7B%22liveId%22%3A%223915958%22%7D"
},
"20": {
"url": "https://api.m.jd.com/client.action?functionId=liveActivityV946&uuid=8888888&client=apple&clientVersion=9.4.1&st=1618467789003&sign=d6704510305a02b2bc73e163ae911aaa&sv=101",
"body": "body=%7B%22liveId%22%3A%223913828%22%7D"
}
}
let ids = {
@ -73,8 +85,12 @@ const JD_API_HOST = 'https://api.m.jd.com/api';
$.msg($.name, '【提示】请先获取京东账号一cookie\n直接使用NobyDa的京东签到获取', 'https://bean.m.jd.com/', {"open-url": "https://bean.m.jd.com/"});
return;
}
console.log('下一场直播时间:04月14日 20:00ID3861625\n' +
'30,31 20-23/1 14 4 *')
console.log('下一场直播时间:04月20日 20:00ID3913828\n' +
'30,31 20-23/1 20 4 *\n' +
'下一场直播时间:04月17日 20:00ID3915958\n' +
'30,31 20-23/1 17 4 *\n' +
'下一场直播时间:04月16日 20:00ID3916360\n' +
'30,31 20-23/1 16 4 *')
await getRedRain();
let nowTs = new Date().getTime()