This commit is contained in:
Faker 2022-04-07 15:32:28 +08:00
parent 1c339a4875
commit 2965fb6c8e
2 changed files with 14 additions and 12 deletions

View File

@ -1,24 +1,24 @@
/* /*
女装盲盒 女装盲盒
活动时间2021-3-1至2021-3-31 活动时间2022-4-1至2022-4-30
活动地址https://anmp.jd.com/babelDiy/Zeus/3z12ngsd27UR1KfRqdMrMSSg3uxg/index.html 活动地址https://anmp.jd.com/babelDiy/Zeus/3qshXVjiSE2M9rfaCpntAXfkg166/index.html
活动入口京东app-女装馆-赢京豆 活动入口京东app-女装馆-赢京豆
已支持IOS双京东账号,Node.js支持N个京东账号 已支持IOS双京东账号,Node.js支持N个京东账号
脚本兼容: QuantumultX, Surge, Loon, JSBox, Node.js 脚本兼容: QuantumultX, Surge, Loon, JSBox, Node.js
============Quantumultx=============== ============Quantumultx===============
[task_local] [task_local]
#女装盲盒 #女装盲盒
35 1,23 * * * https://raw.githubusercontent.com/222222/sync/jd_scripts/jd_nzmh.js, tag=女装盲盒, img-url=https://raw.githubusercontent.com/Orz-3/mini/master/Color/jd.png, enabled=true 35 1,23 * * * https://raw.githubusercontent.com/Aaron-lv/sync/jd_scripts/jd_nzmh.js, tag=女装盲盒, img-url=https://raw.githubusercontent.com/Orz-3/mini/master/Color/jd.png, enabled=true
================Loon============== ================Loon==============
[Script] [Script]
cron "35 1,23 * * *" script-path=https://raw.githubusercontent.com/222222/sync/jd_scripts/jd_nzmh.js,tag=女装盲盒 cron "35 1,23 * * *" script-path=https://raw.githubusercontent.com/Aaron-lv/sync/jd_scripts/jd_nzmh.js,tag=女装盲盒
===============Surge================= ===============Surge=================
女装盲盒 = type=cron,cronexp="35 1,23 * * *",wake-system=1,timeout=3600,script-path=https://raw.githubusercontent.com/222222/sync/jd_scripts/jd_nzmh.js 女装盲盒 = type=cron,cronexp="35 1,23 * * *",wake-system=1,timeout=3600,script-path=https://raw.githubusercontent.com/Aaron-lv/sync/jd_scripts/jd_nzmh.js
============小火箭========= ============小火箭=========
女装盲盒 = type=cron,script-path=https://raw.githubusercontent.com/222222/sync/jd_scripts/jd_nzmh.js, cronexpr="35 1,23 * * *", timeout=3600, enable=true 女装盲盒 = type=cron,script-path=https://raw.githubusercontent.com/Aaron-lv/sync/jd_scripts/jd_nzmh.js, cronexpr="35 1,23 * * *", timeout=3600, enable=true
*/ */
const $ = new Env('女装盲盒抽京豆'); const $ = new Env('女装盲盒抽京豆');
const notify = $.isNode() ? require('./sendNotify') : ''; const notify = $.isNode() ? require('./sendNotify') : '';
@ -40,8 +40,8 @@ if ($.isNode()) {
return; return;
} }
console.log('女装盲盒\n' + console.log('女装盲盒\n' +
'活动时间2021-3-1至2021-3-31\n' + '活动时间2022-4-1至2022-4-30\n' +
'活动地址https://anmp.jd.com/babelDiy/Zeus/3z12ngsd27UR1KfRqdMrMSSg3uxg/index.html'); '活动地址https://anmp.jd.com/babelDiy/Zeus/3qshXVjiSE2M9rfaCpntAXfkg166/index.html');
for (let i = 0; i < cookiesArr.length; i++) { for (let i = 0; i < cookiesArr.length; i++) {
if (cookiesArr[i]) { if (cookiesArr[i]) {
cookie = cookiesArr[i]; cookie = cookiesArr[i];
@ -61,7 +61,7 @@ if ($.isNode()) {
continue continue
} }
try { try {
await jdMh('https://anmp.jd.com/babelDiy/Zeus/3z12ngsd27UR1KfRqdMrMSSg3uxg/index.html') await jdMh('https://anmp.jd.com/babelDiy/Zeus/3qshXVjiSE2M9rfaCpntAXfkg166/index.html')
} catch (e) { } catch (e) {
$.logErr(e) $.logErr(e)
} }

View File

@ -366,14 +366,16 @@ function dotask(task) {
// 宝箱 // 宝箱
function bxdraw() { function bxdraw() {
let body; let functionId, body;
if ($.signhb_source === '5') { if ($.signhb_source === '5') {
functionId = "signhb/bxdraw_jxpp"
body = `ispp=1&sqactive=${$.sqactive}&tk=` body = `ispp=1&sqactive=${$.sqactive}&tk=`
} else { } else {
functionId = "signhb/bxdraw"
body = `ispp=0&sqactive=&tk=` body = `ispp=0&sqactive=&tk=`
} }
return new Promise((resolve) => { return new Promise((resolve) => {
$.get(taskUrl("signhb/bxdraw", body), async (err, resp, data) => { $.get(taskUrl(functionId, body), async (err, resp, data) => {
try { try {
if (err) { if (err) {
console.log(JSON.stringify(err)); console.log(JSON.stringify(err));