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),默认不入会
|
|
|
|
|
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-03 02:07:30 +08:00
|
|
|
|
2023/9/3 大量更新
|
2023-07-27 16:14:01 +08:00
|
|
|
|
|
|
|
|
|
cron:1 1 1 1 *
|
|
|
|
|
============Quantumultx===============
|
|
|
|
|
[task_local]
|
|
|
|
|
#店铺抽奖通用活动-加密
|
|
|
|
|
1 1 1 1 * jd_luck_draw.js, tag=店铺抽奖通用活动-加密, enabled=true
|
|
|
|
|
|
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-09-03 10:43:27 +08:00
|
|
|
|
var version_='jsjiami.com.v7';const ii11lIl1=Iiii1l11;(function(iIlI1l1,iiiI1l1i,lilIiII1,Ilil1Il,lIiliIii,i11lli1l,ilIill1i){return iIlI1l1=iIlI1l1>>0x3,i11lli1l='hs',ilIill1i='hs',function(I11llI,i11iIll1,I1i1ii,l1III111,Iiiiii1){const iliIl1il=Iiii1l11;l1III111='tfi',i11lli1l=l1III111+i11lli1l,Iiiiii1='up',ilIill1i+=Iiiiii1,i11lli1l=I1i1ii(i11lli1l),ilIill1i=I1i1ii(ilIill1i),I1i1ii=0x0;const llI111l=I11llI();while(!![]&&--Ilil1Il+i11iIll1){try{l1III111=parseInt(iliIl1il(0x211,'E6yt'))/0x1+-parseInt(iliIl1il(0x400,'msCI'))/0x2+-parseInt(iliIl1il(0x13c,'CF9O'))/0x3*(-parseInt(iliIl1il(0x275,'%([q'))/0x4)+-parseInt(iliIl1il(0x588,']OaM'))/0x5*(-parseInt(iliIl1il(0x1fb,'s&cR'))/0x6)+-parseInt(iliIl1il(0x201,')BDd'))/0x7+parseInt(iliIl1il(0x3bf,'Z@BK'))/0x8*(parseInt(iliIl1il(0x3a0,'n]f#'))/0x9)+-parseInt(iliIl1il(0x1a2,'msCI'))/0xa*(-parseInt(iliIl1il(0x4e2,'Yf*D'))/0xb);}catch(lllI1lII){l1III111=I1i1ii;}finally{Iiiiii1=llI111l[i11lli1l]();if(iIlI1l1<=Ilil1Il)I1i1ii?lIiliIii?l1III111=Iiiiii1:lIiliIii=Iiiiii1:I1i1ii=Iiiiii1;else{if(I1i1ii==lIiliIii['replace'](/[eJRSbAPfdwNtyGhrLH=]/g,'')){if(l1III111===i11iIll1){llI111l['un'+i11lli1l](Iiiiii1);break;}llI111l[ilIill1i](Iiiiii1);}}}}}(lilIiII1,iiiI1l1i,function(i1iIIil1,l111IiIi,lIl1III1,lIl1iii1,illl,iIiiilIl,IIiIi){return l111IiIi='\x73\x70\x6c\x69\x74',i1iIIil1=arguments[0x0],i1iIIil1=i1iIIil1[l111IiIi](''),lIl1III1=`\x72\x65\x76\x65\x72\x73\x65`,i1iIIil1=i1iIIil1[lIl1III1]('\x76'),lIl1iii1=`\x6a\x6f\x69\x6e`,(0x13c5a2,i1iIIil1[lIl1iii1](''));});}(0x620,0xe8b2c,iIiil1II,0xc6),iIiil1II)&&(version_=iIiil1II);const i1111iII=$['isNode']()?require(ii11lIl1(0x231,')BDd')):'',ill1iIl1=require(ii11lIl1(0x29f,'w^oI')),l1II1li1=require(ii11lIl1(0x55f,'tErF')),Il11liiI=require('./function/krh5st'),ii1liIi=require(ii11lIl1(0x343,'viPG')),{wuxian_savePrize:l1Ii1lI}=require('./function/krsavePrize');let IlIlIiiI=[];const li1I11ii=process[ii11lIl1(0x25a,'42lq')]['LUCK_DRAW_URL']||'',ilillii=process['env']['LUCK_DRAW_OPENCARD']===ii11lIl1(0x3af,'$7Cw'),l1iI1li=process[ii11lIl1(0x553,'ya8H')]['LUCK_DRAW_NOTIFY']===ii11lIl1(0x313,'9j#x'),IiII1II1=process[ii11lIl1(0x553,'ya8H')]['LUCK_DRAW_INTERVAL']||'';let ii11lIli=process['env']['LUCK_DRAW_MAX_MISS']||'',iIIilliI=0x7;process['env']['LUCK_DRAW_NUM']&&process[ii11lIl1(0x386,'tYX#')][ii11lIl1(0x527,'s$t[')]!=0x7&&(iIIilliI=process[ii11lIl1(0x160,'IZft')]['LUCK_DRAW_NUM']);let iilIll1I=!![],iilIilI=process[ii11lIl1(0x3f9,']OaM')][ii11lIl1(0x2b6,'KrU7')]?process[ii11lIl1(0x160,'IZft')]['LUCK_DRAW_Number']:'11',iil11Ii1=process[ii11lIl1(0x598,'rNEN')]['JD_LZ_OPEN']?process[ii11lIl1(0x36d,'Z@BK')]['JD_LZ_OPEN']:'true',ll1l1IlI=process['env']['JD_CJ_OPEN']?process[ii11lIl1(0x266,'%([q')][ii11lIl1(0x1df,')BDd')]:'true',iil1II1i='',lIlil1I1='',ii1liiI='';if($[ii11lIl1(0x381,'42lq')]()){if(JSON[ii11lIl1(0x46a,'rjo(')](process[ii11lIl1(0x553,'ya8H')])[ii11lIl1(0x524,'T0HS')](ii11lIl1(0x12a,'Yf*D'))>-0x1)process[ii11lIl1(0x168,'%([q')](0x0);Object['keys'](i1111iII)[ii11lIl1(0x549,'^[19')](l1I1lIlI=>{const i1lIili=ii11lIl1;IlIlIiiI[i1lIili(0x483,'ZIUb')](i1111iII[l1I1lIlI]);});if(process['env'][ii11lIl1(0x380,'IZft')]&&process[ii11lIl1(0x29e,'AYC!')]['JD_DEBUG']===ii11lIl1(0x14d,'xJk0'))console[ii11lIl1(0x1e9,'s&cR')]=()=>{};}else IlIlIiiI=[$[ii11lIl1(0x237,'xJk0')](ii11lIl1(0x2dc,'w^oI')),$['getdata']('CookieJD2'),...$[ii11lIl1(0x2a2,'W*zU')]($[ii11lIl1(0x241,']WCx')](ii11lIl1(0x494,'kStR'))||'[]')[ii11lIl1(0x1ac,'w^oI')](lIIIIIiI=>lIIIIIiI[ii11lIl1(0x40f,'9j#x')])]['filter'](ii1llIIi=>!!ii1llIIi);!IlIlIiiI[0x0]&&($['msg']($[ii11lIl1(0x51b,'NC]V')],'【提示】请先获取Cookie'),process[ii11lIl1(0x17a,'n]f#')](0x1));let i1iilll='',Il1i1lIi='';function iIiil1II(){const IlIIl1I1=(function(){return[...[version_,'NehdjGtAsrwjbwiPaSmiJ.cromNRG.fvy7fHLSGh==','vZColbXworFdLcBcJHtcOCoEzCoPW5DanCkRe8ovW4iGW4JcS8oUWPnZW6vFea','EmkpWQBdRa','W4mRB2FcUq','W59KWOBdNSkvW7mB','CHb5WRlcLa','WOFdI8os','zmowymkDWQlcPSoZua','l8o6osFcGK0BkSor','W5LKWOhdMG','W61lWPBdI8kZ','WPFdHmo/W7xcPG','W6ROR7xMS6BLKBpLUkBcLW','AH/dTmolWPa','WOPtW5zWi8kXW4vmW4Gc','fKzPudurCv4','u8o
|
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
|