Update jd_nian.js
This commit is contained in:
13
jd_nian.js
13
jd_nian.js
@@ -9,17 +9,17 @@
|
|||||||
============Quantumultx===============
|
============Quantumultx===============
|
||||||
[task_local]
|
[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==============
|
================Loon==============
|
||||||
[Script]
|
[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=================
|
===============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('京东炸年兽🧨');
|
const $ = new Env('京东炸年兽🧨');
|
||||||
|
|
||||||
@@ -107,6 +107,7 @@ async function jdNian() {
|
|||||||
$.hasGroup = false
|
$.hasGroup = false
|
||||||
await pkTaskStealDetail()
|
await pkTaskStealDetail()
|
||||||
if ($.hasGroup) await pkInfo()
|
if ($.hasGroup) await pkInfo()
|
||||||
|
await helpFriendsPK()
|
||||||
}
|
}
|
||||||
await $.wait(2000)
|
await $.wait(2000)
|
||||||
await killCouponList()
|
await killCouponList()
|
||||||
@@ -1135,7 +1136,9 @@ function shareCodesFormatPk() {
|
|||||||
const tempIndex = $.index > pkInviteCodes.length ? (pkInviteCodes.length - 1) : ($.index - 1);
|
const tempIndex = $.index > pkInviteCodes.length ? (pkInviteCodes.length - 1) : ($.index - 1);
|
||||||
$.newShareCodesPk = pkInviteCodes[tempIndex].split('@');
|
$.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) {
|
if (readShareCodeRes && readShareCodeRes.code === 200) {
|
||||||
$.newShareCodesPk = [...new Set([...$.newShareCodesPk, ...(readShareCodeRes.data || [])])];
|
$.newShareCodesPk = [...new Set([...$.newShareCodesPk, ...(readShareCodeRes.data || [])])];
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user