mirror of https://github.com/KingRan/KR.git
28 lines
100 KiB
JavaScript
28 lines
100 KiB
JavaScript
|
/*
|
|||
|
大牌联合0810期
|
|||
|
|
|||
|
活动地址:https://jinggengjcq-isv.isvjcloud.com/jdbeverage/pages/oC20230810cxc/oC20230810cxc?actId=fbd2b4c2f6334382ae5aa_230810
|
|||
|
|
|||
|
自行运行,有水无水自测。
|
|||
|
|
|||
|
变量填写:
|
|||
|
黑名单 用&隔开 pin值
|
|||
|
//export DPLHTY_blacklist=""
|
|||
|
重试次数,默认30
|
|||
|
//export retrynum="30"
|
|||
|
如需修改抽奖次数请设置环境变量:
|
|||
|
//export opencard_draw="3" //次数
|
|||
|
填地址变量看库说明
|
|||
|
|
|||
|
第一个账号助力作者 其他依次助力CK1
|
|||
|
注意:第一个CK黑号会全部助力所填写的助力码
|
|||
|
============Quantumultx===============
|
|||
|
[task_local]
|
|||
|
#大牌联合0810期
|
|||
|
1 1 1 1 * jd_dplh0810.js, tag=大牌联合0810期, enabled=true
|
|||
|
*/
|
|||
|
let opencard_toShop = "false"
|
|||
|
const $ = new Env("大牌联合0810期");
|
|||
|
var version_='jsjiami.com.v7';const ii11li=iii1II;(function(iiliIl,IiIl1I,i1IIll,iIiIi1,ii11l1,li1lil,li1lii){return iiliIl=iiliIl>>0x3,li1lil='hs',li1lii='hs',function(i111lI,ii11lI,ilI1l,I1l11,lIl11I){const li1liI=iii1II;I1l11='tfi',li1lil=I1l11+li1lil,lIl11I='up',li1lii+=lIl11I,li1lil=ilI1l(li1lil),li1lii=ilI1l(li1lii),ilI1l=0x0;const lIiIIi=i111lI();while(!![]&&--iIiIi1+ii11lI){try{I1l11=-parseInt(li1liI(0x2fd,'JbCS'))/0x1+-parseInt(li1liI(0x350,'c2g]'))/0x2+parseInt(li1liI(0x37e,'JbCS'))/0x3*(parseInt(li1liI(0x58a,'QB]!'))/0x4)+parseInt(li1liI(0x26d,'c2g]'))/0x5*(parseInt(li1liI(0x446,'8bGd'))/0x6)+-parseInt(li1liI(0x29b,'1TpN'))/0x7+parseInt(li1liI(0x222,'9B&S'))/0x8+-parseInt(li1liI(0x396,'BFB7'))/0x9*(-parseInt(li1liI(0x45d,'LuvA'))/0xa);}catch(IiIl11){I1l11=ilI1l;}finally{lIl11I=lIiIIi[li1lil]();if(iiliIl<=iIiIi1)ilI1l?ii11l1?I1l11=lIl11I:ii11l1=lIl11I:ilI1l=lIl11I;else{if(ilI1l==ii11l1['replace'](/[tnWwODHgeMrSGbRlQY=]/g,'')){if(I1l11===ii11lI){lIiIIi['un'+li1lil](lIl11I);break;}lIiIIi[li1lii](lIl11I);}}}}}(i1IIll,IiIl1I,function(I1l1i,lIiIIl,IliI,I1l1l,ilI1i,llIiI1,li1li1){return lIiIIl='\x73\x70\x6c\x69\x74',I1l1i=arguments[0x0],I1l1i=I1l1i[lIiIIl](''),IliI='\x72\x65\x76\x65\x72\x73\x65',I1l1i=I1l1i[IliI]('\x76'),I1l1l='\x6a\x6f\x69\x6e',(0x13895b,I1l1i[I1l1l](''));});}(0x660,0xef482,Iii11l,0xce),Iii11l)&&(version_=Iii11l);const i1Ili=$['isNode']()?require(ii11li(0x2da,'kfb(')):'',I1iiI1=$[ii11li(0x2e2,'U$tk')]()?require('./sendNotify'):'';let lIiIi1=[],li11l1='';if($[ii11li(0x2ad,'7Jik')]()){Object[ii11li(0x176,'U$tk')](i1Ili)[ii11li(0x3ad,'m*es')](Ii1Ili=>{lIiIi1['push'](i1Ili[Ii1Ili]);});if(process['env'][ii11li(0x1bf,'Y0dF')]&&process[ii11li(0x352,'t3A$')][ii11li(0x558,'#IhS')]===ii11li(0x2a1,'6Cvm'))console[ii11li(0x575,'^xdQ')]=()=>{};}else lIiIi1=[$[ii11li(0x157,'1W0F')](ii11li(0x1bc,'!hup')),$[ii11li(0x505,'JbCS')](ii11li(0x19b,'xtyG')),...ll1lI1($[ii11li(0x47f,'kfb(')](ii11li(0x2bb,'&1qG'))||'[]')['map'](IIiI11=>IIiI11['cookie'])]['filter'](Ii1Ill=>!!Ii1Ill);let IIlIIl='30',iIiiI1='0';IIlIIl=$[ii11li(0x2ad,'7Jik')]()?process['env'][ii11li(0x2bf,'n[hX')]?process[ii11li(0x175,'vNy7')][ii11li(0x4af,'u[XY')]:IIlIIl:$[ii11li(0x3fd,'I2zG')](ii11li(0x24c,'I2zG'))?$['getdata'](ii11li(0x1cf,'!hup')):iIiiI1,iIiiI1=$['isNode']()?process[ii11li(0x32f,'%#UE')][ii11li(0x239,'&1qG')]?process['env'][ii11li(0x302,'BnnA')]:iIiiI1:$[ii11li(0x42b,'5*^u')]('opencard_draw')?$['getdata']('opencard_draw'):iIiiI1,opencard_toShop=$['isNode']()?process['env'][ii11li(0x301,'AJOs')]?process['env'][ii11li(0x326,'BFB7')]:''+opencard_toShop:$[ii11li(0x3da,'*H#u')]('opencard_toShop')?$['getdata'](ii11li(0x2d4,'O8OG')):''+opencard_toShop,allMessage='',message='',$[ii11li(0x515,'vNy7')]=![],$['outFlag']=![],$[ii11li(0x45f,'U$tk')]=![];let I1IIiI='',ilIli1='',li11lI='',l1I1ll='',li1il=ii11li(0x171,'*H#u');CryptoJS=$['isNode']()?require('crypto-js'):CryptoJS;const l1I1li=require(ii11li(0x351,'9B&S')),li1ii=require(ii11li(0x3ed,'O8OG')),lI1iI1=require(ii11li(0x410,'&1qG'));let iIIIi1='https://jinggengjcq-isv.isvjcloud.com';l1I1ll=$[ii11li(0x188,'QB]!')]()?process[ii11li(0x352,'t3A$')][ii11li(0x414,'^xdQ')]?process[ii11li(0x298,'y[bB')][ii11li(0x14e,'kfb(')]:''+l1I1ll:$[ii11li(0x57d,'bAJ%')]('helpnum')?$['getdata'](ii11li(0x50c,'JbCS')):''+l1I1ll;let lIiIiI='',ilIliI='';$[ii11li(0x332,'k(!H')]=process['env']['DPLHTY_whitelist']||lIiIiI,$[ii11li(0x507,'Tbrk')]=process[ii11li(0x4d0,'#)&M')]['DPLHTY_blacklist']||ilIliI,lIl1II(),i1Ill(),!(async()=>{const il1lIl=ii11li,ll1Iii={'ZTGPM':il1lIl(0x3ce,'HOs#'),'ElroW':function(ll1Iil,li1lI){return ll1Iil>li1lI;},'GMCUC':function(iliiiI,IIlIII){return iliiiI(IIlIII);},'KlBhh':il1lIl(0x1ba,'#)&M'),'nyxqH':function(i1Iil,lIi11i,i1Iii){return i1Iil(lIi11i,i1Iii);},'YzyJZ':function(IIiI1I,lIi11l){return IIiI1I===lIi11l;},'vemvA':il1lIl(0x480,'7Jik'),'eaydC':il1lIl(0x4ff,'vNy7'),'fzGpm':il1lIl(0x59b,'#)&M'),'kHYkD':function(i1IlI,lIl1Ii,lIl1Il){return i1IlI(lIl1Ii,lIl1Il);},'lzEwW':il1lIl(0x56e,'t3A$'),'KhcLn':function(Ii1IlI,Il1I1I){return Ii1IlI+Il1I1I;},'yhYYV':function(ll1Il1,li11li){return ll1Il1+l
|
|||
|
// prettier-ignore
|
|||
|
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
|