2023-07-27 16:14:01 +08:00
|
|
|
|
/*
|
2023-09-03 02:07:30 +08:00
|
|
|
|
活动名称:店铺抽奖 · 超级无线/超级会员
|
|
|
|
|
活动链接:https://lzkj-isv.isvjd.com/lzclient/<活动id>/cjwx/common/entry.html?activityId=<活动id>&gameType=<玩法类型>
|
|
|
|
|
https://lzkj-isv.isvjd.com/wxDrawActivity/activity/activity?activityId=<活动id>
|
2023-07-27 16:14:01 +08:00
|
|
|
|
https://cjhy-isv.isvjcloud.com/wxDrawActivity/activity/activity?activityId=<活动id>
|
|
|
|
|
环境变量:LUCK_DRAW_URL // 活动链接
|
2023-09-03 02:07:30 +08:00
|
|
|
|
LUCK_DRAW_NOTIFY // 是否推送通知(true/false),默认不推送
|
|
|
|
|
LUCK_DRAW_OPENCARD // 是否入会(true/false),默认不入会
|
2023-09-03 17:41:54 +08:00
|
|
|
|
LUCK_DRAW_BREAK // 493后继续执行,默认退出运行(true/false)
|
2023-09-03 02:07:30 +08:00
|
|
|
|
LUCK_DRAW_INTERVAL // 自定义抽奖间隔(正整数),默认1秒
|
|
|
|
|
LUCK_DRAW_MAX_MISS // 最大连续未抽中次数(正整数),达到此次数后会跳过运行对应账号,默认不启用此功能
|
|
|
|
|
LUCK_DRAW_NUM //运行账号数量,默认运行前7
|
|
|
|
|
LUCK_DRAW_Number // 连续无次数跳出,默认 7 次,火爆账号请设置黑名单,否则也会占用次数
|
2023-07-27 16:14:01 +08:00
|
|
|
|
LUCK_DRAW_BLACKLIST 黑名单 用&隔开 pin值
|
2023-09-03 02:36:30 +08:00
|
|
|
|
JD_LZ_OPEN // 是否开启LZ活动运行(true/false),默认运行
|
|
|
|
|
JD_CJ_OPEN // 是否开启CJ活动运行(true/false),默认运行
|
2023-07-27 16:14:01 +08:00
|
|
|
|
|
2023-09-03 10:16:18 +08:00
|
|
|
|
注:只有在没有抽奖次数的情况下才会去做任务获取,部分活动涉及定制接口会导致请求响应非法操作
|
2023-07-27 16:14:01 +08:00
|
|
|
|
|
2023-09-08 09:15:50 +08:00
|
|
|
|
2023/9/8 修复 500错误 修复黑名单无效
|
2023-07-27 16:14:01 +08:00
|
|
|
|
|
|
|
|
|
cron:1 1 1 1 *
|
|
|
|
|
============Quantumultx===============
|
|
|
|
|
[task_local]
|
2023-09-03 17:41:54 +08:00
|
|
|
|
#店铺抽奖通用活动
|
|
|
|
|
1 1 1 1 * jd_luck_draw.js, tag=店铺抽奖通用活动, enabled=true
|
2023-07-27 16:14:01 +08:00
|
|
|
|
|
2023-09-03 02:07:30 +08:00
|
|
|
|
*/
|
2023-07-27 16:14:01 +08:00
|
|
|
|
|
2023-09-03 02:07:30 +08:00
|
|
|
|
const $ = new Env('店铺抽奖(超级无线/超级会员)');
|
2023-10-22 10:38:09 +08:00
|
|
|
|
var version_='jsjiami.com.v7';const lIIIIl1=iI11ll1;(function(llII11II,lI1l1l1l,iIiIil11,ii1iIill,l1liIlIl,IIiiiii,IiIl11l1){return llII11II=llII11II>>0x6,IIiiiii='hs',IiIl11l1='hs',function(lilI1iII,Iilil1iI,ii1IIli1,liiI1lI,IiiII1I){const lIii1iIi=iI11ll1;liiI1lI='tfi',IIiiiii=liiI1lI+IIiiiii,IiiII1I='up',IiIl11l1+=IiiII1I,IIiiiii=ii1IIli1(IIiiiii),IiIl11l1=ii1IIli1(IiIl11l1),ii1IIli1=0x0;const iII1II=lilI1iII();while(!![]&&--ii1iIill+Iilil1iI){try{liiI1lI=-parseInt(lIii1iIi(0x3f8,'h$h1'))/0x1*(parseInt(lIii1iIi(0x505,'2o%6'))/0x2)+parseInt(lIii1iIi(0x4d9,'2o%6'))/0x3*(-parseInt(lIii1iIi(0x680,'s6(3'))/0x4)+parseInt(lIii1iIi(0x481,'UwsE'))/0x5+parseInt(lIii1iIi(0x646,'%f2W'))/0x6+-parseInt(lIii1iIi(0x40b,'BkSX'))/0x7+-parseInt(lIii1iIi(0x38e,'jI2U'))/0x8+parseInt(lIii1iIi(0x4bd,'2(09'))/0x9;}catch(IIIlIili){liiI1lI=ii1IIli1;}finally{IiiII1I=iII1II[IIiiiii]();if(llII11II<=ii1iIill)ii1IIli1?l1liIlIl?liiI1lI=IiiII1I:l1liIlIl=IiiII1I:ii1IIli1=IiiII1I;else{if(ii1IIli1==l1liIlIl['replace'](/[uNGyRSxTkXnKOHBIWw=]/g,'')){if(liiI1lI===Iilil1iI){iII1II['un'+IIiiiii](IiiII1I);break;}iII1II[IiIl11l1](IiiII1I);}}}}}(iIiIil11,lI1l1l1l,function(IIIlII,IiiIIll1,I11iIlIl,l11ilIll,lilIiiI,i1liIl,iiI1ii1I){return IiiIIll1='\x73\x70\x6c\x69\x74',IIIlII=arguments[0x0],IIIlII=IIIlII[IiiIIll1](''),I11iIlIl=`\x72\x65\x76\x65\x72\x73\x65`,IIIlII=IIIlII[I11iIlIl]('\x76'),l11ilIll=`\x6a\x6f\x69\x6e`,(0x143d47,IIIlII[l11ilIll](''));});}(0x3080,0xdce75,IliI1li1,0xc4),IliI1li1)&&(version_=IliI1li1);const iI1Iilil=$[lIIIIl1(0x2a8,'o6H@')]()?require(lIIIIl1(0x5d2,'BI^o')):'',l1llIi11=require(lIIIIl1(0x1e7,'I%)c')),lII1ll1i=require('./function/sendJDNotify'),IIllIlI=require(lIIIIl1(0x545,'hg6q')),{wuxian_savePrize:lIliIlI1}=require(lIIIIl1(0x441,'L0!3')),lillllll=require('crypto-js');let II1i1=[];function IliI1li1(){const IilIl1II=(function(){return[...[version_,'TjysyjuiaGkmKNwi.cWxHoXTNmnX.IGBvRxT7SOO==','j3xcQG','daOThCkOASkCsq','yHTCjmkbr8o+WPlcNSoglh7dV2ehgbmXWPP4ha','jSkHW64vW5q','qchdSSk6WQZdNW','sLJdVCksbSk7','FmkvlCkJWQi','a3tdKra','WO/dJSkEy8oe','nGhcSmkxrI4','w8oQWOqXeHGIW4S','waX3vIq','hSkNy34','WOOBW5q8tCkmbH/dQmkjW5S','W4/dRWRcGv4','WRTqW4ddSCoD','WPbnW6ldH8oCW6S','WOSeCZpdNW','W6RcQKmrDa','u8kJWQr1r1RdNmkwW6ddGxbHWRBcHYNdJSoJdq','W6athGe0','W5PoWPnPkSk1ga','qCoSWO8Kja','WO3cUGPtW6XpiSoDFaOHuSkM','W4tcIhG0qq','t8oNWP8olbWHW63dNSkbbCoPW5RcPSojWRTa','o8k4WQldPtr8aSkDWRrqe8kH','hCkyW64pW5S','W57dUcVdKJtdOZhdPW','W4aWcXWw','jafrWP0YevDNWO4/z3/dLCkQ','4P2ZW7NLVPZLIzlMTzhLIPVNS5tLNAVVV4y','W53dP0yGWRCwECocxJOWA8kJBG','mbfhWQ0PdfvGWOW','W59kWPryfSkQeq','qSkYdCkO','W5mIbbKY','WOSyCahdI0hdRSoFCwS','A0FcP2aUW7eFf8kkzmotlrfW','5Pse5O2f5B2t','o2ffvCkH','mJu8WOyO','pb1Hnmkn','goIVMUAZKEwNPUI1JE+/L8kdWQzqhXqcW6tdR8oQW43cImkXW6XC','WPjgW5/dK8o4','we9Ne0O','ccu/WOuWFhq8','WRGSW5yiW6q','kc3cGCkyxG','WQbhWQ9swCo6','WPFORRVMS4lOT4pMLiJVVypORkdMOlBMNBtNVRFNU7pPHzJORyK','bUAnTUwoMUAuQEwqN+w4OEAuSoAmPa','5PYV6ioF6i215y+s55wm5OQP6yIc5PY65lYM5OgU','WRr4WO8','WQCbymkzEmk4W63dN8oj','W79wWQn1hq','W7pcKCoXWOzZj3vN','W5pdRfepWQ0DD8oy','f8kwWQldQZu','8kMTHo+7Mq','WOOjyGddKKy','qZZdRSkI','xYBdUG','W5hdJSoPWORdHG','W6W/sSovWOdcJCkNrSoUWOjs','smkIe8kTWRW','oxxcO8o1','W7BdVWmy','otyRm8knBSkaBmoCW43dH8oTaCkACJynW40yW7NdQ8kaWR7cNL/cGq1KWOiuW4tcUuCmW7vFiZ/dSXHblSo2WOddM35iW5a4BCo5ySo7hSobW6DCWPq0vH0Vs13cOmkwbCkDW7yuWRldPSksFSo2W5lcGLFdHwdcTmkpW6JdMXTeW4j3ke0XWOuhCCoyW57cHun6W4JcRCkdaCo3WQhdIaCwqSkyW4ldNCoEWQv4j8o1WR/cRmkMW7LpWQ4lW5RcNMFdQwnFwZGlCCk8W5uPBSk0sJ7cSmkjwmkoEdVcGmk8tbCYW6xdOHzVb0lcGmkJWRldSSkHWQ8DiSogmqCVEcShWQdcSsPKrIrfu8odW4OWmNG2WRfWASozWO0HjmkPWRVcKCoEWPldRW','dSkLor/cTcxdMINcQSoqjCou','uNJdOSkwlq','W6BcPLGD','W4ZdISo1WPS','WPbiWPCEWPqkamk0W6q','4P6DqEAEJ+IaGoAUOoEGLEwLIUEtVMC','qCk2dCkkWR3dMISJxvykW71zBG','W4VcUSo1WP9I','W6CulGCYW4xcQW','khpdHWHz','CwtcP8o+W5W','WPj+W7apWPS','eCk1W595lba+W4/dKCkc','W7ZdSH4QCSk3ba','h8kHjc7cQJa','W78SqSow','mbbeWQOOdq','W7SwW58hWRSCWOJcPSoyWQG','xeRdPG','W7VcS1qkqW','WQibBCkpEmk+W7tdKSkA','WRVdPY3dL2a','mdKCcmkcuSkMD8ofWRtcRa','WQewz8khEmk+W53dI8kr','WOTnB0eAECoLnaDzW5lcRwieWRJcICoOjer4W63cVv/dJJFdJ1qcjW','BCkyWPXnkq','gIaWW
|
2023-07-27 16:14:01 +08:00
|
|
|
|
// prettier-ignore
|
2023-09-03 02:07:30 +08:00
|
|
|
|
function Env(t, e) { "undefined" != typeof process && JSON.stringify(process.env).indexOf("GITHUB") > -1 && process.exit(0); class s { constructor(t) { this.env = t } send(t, e = "GET") { t = "string" == typeof t ? { url: t } : t; let s = this.get; return "POST" === e && (s = this.post), new Promise((e, i) => { s.call(this, t, (t, s, r) => { t ? i(t) : e(s) }) }) } get(t) { return this.send.call(this.env, t) } post(t) { return this.send.call(this.env, t, "POST") } } return new class { constructor(t, e) { this.name = t, this.http = new s(this), this.data = null, this.dataFile = "box.dat", this.logs = [], this.isMute = !1, this.isNeedRewrite = !1, this.logSeparator = "\n", this.startTime = (new Date).getTime(), Object.assign(this, e), this.log("", `🔔${this.name}, 开始!`) } isNode() { return "undefined" != typeof module && !!module.exports } isQuanX() { return "undefined" != typeof $task } isSurge() { return "undefined" != typeof $httpClient && "undefined" == typeof $loon } isLoon() { return "undefined" != typeof $loon } toObj(t, e = null) { try { return JSON.parse(t) } catch { return e } } toStr(t, e = null) { try { return JSON.stringify(t) } catch { return e } } getjson(t, e) { let s = e; const i = this.getdata(t); if (i) try { s = JSON.parse(this.getdata(t)) } catch { } return s } setjson(t, e) { try { return this.setdata(JSON.stringify(t), e) } catch { return !1 } } getScript(t) { return new Promise(e => { this.get({ url: t }, (t, s, i) => e(i)) }) } runScript(t, e) { return new Promise(s => { let i = this.getdata("@chavy_boxjs_userCfgs.httpapi"); i = i ? i.replace(/\n/g, "").trim() : i; let r = this.getdata("@chavy_boxjs_userCfgs.httpapi_timeout"); r = r ? 1 * r : 20, r = e && e.timeout ? e.timeout : r; const [o, h] = i.split("@"), n = { url: `http://${h}/v1/scripting/evaluate`, body: { script_text: t, mock_type: "cron", timeout: r }, headers: { "X-Key": o, Accept: "*/*" } }; this.post(n, (t, e, i) => s(i)) }).catch(t => this.logErr(t)) } loaddata() { if (!this.isNode()) return {}; { this.fs = this.fs ? this.fs : require("fs"), this.path = this.path ? this.path : require("path"); const t = this.path.resolve(this.dataFile), e = this.path.resolve(process.cwd(), this.dataFile), s = this.fs.existsSync(t), i = !s && this.fs.existsSync(e); if (!s && !i) return {}; { const i = s ? t : e; try { return JSON.parse(this.fs.readFileSync(i)) } catch (t) { return {} } } } } writedata() { if (this.isNode()) { this.fs = this.fs ? this.fs : require("fs"), this.path = this.path ? this.path : require("path"); const t = this.path.resolve(this.dataFile), e = this.path.resolve(process.cwd(), this.dataFile), s = this.fs.existsSync(t), i = !s && this.fs.existsSync(e), r = JSON.stringify(this.data); s ? this.fs.writeFileSync(t, r) : i ? this.fs.writeFileSync(e, r) : this.fs.writeFileSync(t, r) } } lodash_get(t, e, s) { const i = e.replace(/\[(\d+)\]/g, ".$1").split("."); let r = t; for (const t of i) if (r = Object(r)[t], void 0 === r) return s; return r } lodash_set(t, e, s) { return Object(t) !== t ? t : (Array.isArray(e) || (e = e.toString().match(/[^.[\]]+/g) || []), e.slice(0, -1).reduce((t, s, i) => Object(t[s]) === t[s] ? t[s] : t[s] = Math.abs(e[i + 1]) >> 0 == +e[i + 1] ? [] : {}, t)[e[e.length - 1]] = s, t) } getdata(t) { let e = this.getval(t); if (/^@/.test(t)) { const [, s, i] = /^@(.*?)\.(.*?)$/.exec(t), r = s ? this.getval(s) : ""; if (r) try { const t = JSON.parse(r); e = t ? this.lodash_get(t, i, "") : e } catch (t) { e = "" } } return e } setdata(t, e) { let s = !1; if (/^@/.test(e)) { const [, i, r] = /^@(.*?)\.(.*?)$/.exec(e), o = this.getval(i), h = i ? "null" === o ? null : o || "{}" : "{}"; try { const e = JSON.parse(h); this.lodash_set(e, r, t), s = this.setval(JSON.stringify(e), i) } catch (e) { const o = {}; this.lodash_set(o, r, t), s = this.setval(JSON.stringify(o), i) } } else s = this.setval(t, e); return s } getval(t) { return this.isSurge() || this.isLoon() ? $persistentStore.read(t) : this.isQuanX() ? $prefs.valueForKey(t) : this.isNode() ? (this.data = this.loaddata(), this.data[t]) : this.data && this.d
|