update
This commit is contained in:
21
jd_nian.js
21
jd_nian.js
@@ -9,17 +9,17 @@
|
||||
============Quantumultx===============
|
||||
[task_local]
|
||||
#京东炸年兽🧨
|
||||
0 9,12,20 * * * https://raw.githubusercontent.com/LXK9301/jd_scripts/master/jd_nian.js, tag=京东炸年兽🧨, img-url=https://raw.githubusercontent.com/yogayyy/Scripts/main/Icon/lxk0301/jd_nian.png, enabled=true
|
||||
0 9,12,20,21 * * * https://raw.githubusercontent.com/LXK9301/jd_scripts/master/jd_nian.js, tag=京东炸年兽🧨, img-url=https://raw.githubusercontent.com/yogayyy/Scripts/main/Icon/lxk0301/jd_nian.png, enabled=true
|
||||
|
||||
================Loon==============
|
||||
[Script]
|
||||
cron "0 9,12,20 * * *" script-path=https://raw.githubusercontent.com/LXK9301/jd_scripts/master/jd_nian.js,tag=京东炸年兽🧨
|
||||
cron "0 9,12,20,21 * * *" script-path=https://raw.githubusercontent.com/LXK9301/jd_scripts/master/jd_nian.js,tag=京东炸年兽🧨
|
||||
|
||||
===============Surge=================
|
||||
京东炸年兽🧨 = type=cron,cronexp="0 9,12,20 * * *",wake-system=1,timeout=3600,script-path=https://raw.githubusercontent.com/LXK9301/jd_scripts/master/jd_nian.js
|
||||
京东炸年兽🧨 = type=cron,cronexp="0 9,12,20,21 * * *",wake-system=1,timeout=3600,script-path=https://raw.githubusercontent.com/LXK9301/jd_scripts/master/jd_nian.js
|
||||
|
||||
============小火箭=========
|
||||
京东炸年兽🧨 = type=cron,script-path=https://raw.githubusercontent.com/LXK9301/jd_scripts/master/jd_nian.js, cronexpr="0 9,12,20 * * *", timeout=3600, enable=true
|
||||
京东炸年兽🧨 = type=cron,script-path=https://raw.githubusercontent.com/LXK9301/jd_scripts/master/jd_nian.js, cronexpr="0 9,12,20,21 * * *", timeout=3600, enable=true
|
||||
*/
|
||||
const $ = new Env('京东炸年兽🧨');
|
||||
|
||||
@@ -50,8 +50,8 @@ const inviteCodes = [
|
||||
`cgxZaDXWZPCmiUa2akPVm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NWdiLGaPadvlqJQnnKp27-YpAvKvSYNTSkTGvZylf_0wcvqD9EMkohEd0@IgNWdiLGaPaZskfACQyhgLSpZWps-WtQEW3McifX@IgNWdiLGaPaAvmHPAQf769XqjJjMyRirPzN9-AS-WHY9Y_G7t9Cwe5gdiI2qEvHb@IgNWdiLGaPYCeJUfsq18UNi5ln9xEZSPRdOue8Wl3hJTS2SQzU0vulL0fHeULJaIfgqHFd7f_Kk@IgNWdiLGaPYCeJUfsq18UNi5ln9xEZSPRdOue8Wl3hLRjZBAJLHzBpcl18AeskNYctp-8A'
|
||||
]
|
||||
!(async () => {
|
||||
await requireConfig();
|
||||
@@ -107,6 +107,7 @@ async function jdNian() {
|
||||
$.hasGroup = false
|
||||
await pkTaskStealDetail()
|
||||
if ($.hasGroup) await pkInfo()
|
||||
await helpFriendsPK()
|
||||
}
|
||||
await $.wait(2000)
|
||||
await killCouponList()
|
||||
@@ -118,7 +119,7 @@ async function jdNian() {
|
||||
await $.wait(1000)
|
||||
await doTask()
|
||||
await $.wait(2000)
|
||||
await helpFriends()
|
||||
// await helpFriends()
|
||||
await $.wait(2000)
|
||||
await getHomeData(true)
|
||||
await showMsg()
|
||||
@@ -1079,7 +1080,7 @@ function readShareCodePk() {
|
||||
console.log(`开始`)
|
||||
return new Promise(async resolve => {
|
||||
$.get({
|
||||
url: `http://jd.turinglabs.net/api/v2/jd/nian_pk/read/${randomCount}/`,
|
||||
url: `http://jd.turinglabs.net/api/v2/jd/nian/read/${randomCount}/`,
|
||||
'timeout': 10000
|
||||
}, (err, resp, data) => {
|
||||
try {
|
||||
@@ -1135,7 +1136,9 @@ function shareCodesFormatPk() {
|
||||
const tempIndex = $.index > pkInviteCodes.length ? (pkInviteCodes.length - 1) : ($.index - 1);
|
||||
$.newShareCodesPk = pkInviteCodes[tempIndex].split('@');
|
||||
}
|
||||
const readShareCodeRes = null //await readShareCodePk();
|
||||
let readShareCodeRes = null
|
||||
if (new Date().getUTCHours() >= 12)
|
||||
readShareCodeRes = await readShareCodePk();
|
||||
if (readShareCodeRes && readShareCodeRes.code === 200) {
|
||||
$.newShareCodesPk = [...new Set([...$.newShareCodesPk, ...(readShareCodeRes.data || [])])];
|
||||
}
|
||||
|
Reference in New Issue
Block a user