KR/jd_dplh080102.js

28 lines
105 KiB
JavaScript
Raw Normal View History

2023-08-01 20:06:42 +08:00
/*
大牌联合080102期
活动地址https://jinggengjcq-isv.isvjcloud.com/jdbeverage/pages/oC2023080102def/oC2023080102def?actId=2ed080b73da54d4c98c9_23080102
自行运行有水无水自测
变量填写
黑名单 &隔开 pin值
//export DPLHTY_blacklist=""
重试次数默认30
//export retrynum="30"
如需修改抽奖次数请设置环境变量
//export opencard_draw="3" //次数
2023-08-01 20:50:02 +08:00
填地址变量看库说明
2023-08-01 20:06:42 +08:00
第一个账号助力作者 其他依次助力CK1
注意第一个CK黑号会全部助力所填写的助力码
============Quantumultx===============
[task_local]
#大牌联合080102期
1 1 1 1 * jd_dplh080102.js, tag=大牌联合080102期, enabled=true
*/
let opencard_toShop = "false"
const $ = new Env("大牌联合080102期");
2023-08-01 20:50:02 +08:00
var version_='jsjiami.com.v7';const iiiiIi=iii1II;function iii1II(_0x2da06a,_0x30480b){const _0x5db35d=Iii11l();return iii1II=function(_0x111271,_0x5cdcce){_0x111271=_0x111271-0x8a;let _0x576493=_0x5db35d[_0x111271];if(iii1II['eJmBWK']===undefined){var _0x2e037f=function(_0x466e00){const _0x2ce036='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x59e79b='',_0x1c8107='';for(let _0x636aab=0x0,_0x2c23cb,_0xb7f7b0,_0x4be0b7=0x0;_0xb7f7b0=_0x466e00['charAt'](_0x4be0b7++);~_0xb7f7b0&&(_0x2c23cb=_0x636aab%0x4?_0x2c23cb*0x40+_0xb7f7b0:_0xb7f7b0,_0x636aab++%0x4)?_0x59e79b+=String['fromCharCode'](0xff&_0x2c23cb>>(-0x2*_0x636aab&0x6)):0x0){_0xb7f7b0=_0x2ce036['indexOf'](_0xb7f7b0);}for(let _0x59aacd=0x0,_0x4c09e2=_0x59e79b['length'];_0x59aacd<_0x4c09e2;_0x59aacd++){_0x1c8107+='%'+('00'+_0x59e79b['charCodeAt'](_0x59aacd)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x1c8107);};const _0x331e49=function(_0x993826,_0x4f9e11){let _0x180855=[],_0x34b253=0x0,_0x88e062,_0x166bd5='';_0x993826=_0x2e037f(_0x993826);let _0x59637a;for(_0x59637a=0x0;_0x59637a<0x100;_0x59637a++){_0x180855[_0x59637a]=_0x59637a;}for(_0x59637a=0x0;_0x59637a<0x100;_0x59637a++){_0x34b253=(_0x34b253+_0x180855[_0x59637a]+_0x4f9e11['charCodeAt'](_0x59637a%_0x4f9e11['length']))%0x100,_0x88e062=_0x180855[_0x59637a],_0x180855[_0x59637a]=_0x180855[_0x34b253],_0x180855[_0x34b253]=_0x88e062;}_0x59637a=0x0,_0x34b253=0x0;for(let _0xd2a4d8=0x0;_0xd2a4d8<_0x993826['length'];_0xd2a4d8++){_0x59637a=(_0x59637a+0x1)%0x100,_0x34b253=(_0x34b253+_0x180855[_0x59637a])%0x100,_0x88e062=_0x180855[_0x59637a],_0x180855[_0x59637a]=_0x180855[_0x34b253],_0x180855[_0x34b253]=_0x88e062,_0x166bd5+=String['fromCharCode'](_0x993826['charCodeAt'](_0xd2a4d8)^_0x180855[(_0x180855[_0x59637a]+_0x180855[_0x34b253])%0x100]);}return _0x166bd5;};iii1II['IuWGIL']=_0x331e49,_0x2da06a=arguments,iii1II['eJmBWK']=!![];}const _0x41cafa=_0x5db35d[0x0],_0x3fb58a=_0x111271+_0x41cafa,_0x1cb9a7=_0x2da06a[_0x3fb58a];return!_0x1cb9a7?(iii1II['ioGcEM']===undefined&&(iii1II['ioGcEM']=!![]),_0x576493=iii1II['IuWGIL'](_0x576493,_0x5cdcce),_0x2da06a[_0x3fb58a]=_0x576493):_0x576493=_0x1cb9a7,_0x576493;},iii1II(_0x2da06a,_0x30480b);}(function(IiIill,li1Iii,lIII1,llIi11,IIi11I,iiIIlI,IIl1II){return IiIill=IiIill>>0x7,iiIIlI='hs',IIl1II='hs',function(iill,iiIIl1,llIi1I,lIlIii,li1Ili){const l1Iill=iii1II;lIlIii='tfi',iiIIlI=lIlIii+iiIIlI,li1Ili='up',IIl1II+=li1Ili,iiIIlI=llIi1I(iiIIlI),IIl1II=llIi1I(IIl1II),llIi1I=0x0;const I11lil=iill();while(!![]&&--llIi11+iiIIl1){try{lIlIii=parseInt(l1Iill(0x366,'@*OD'))/0x1+parseInt(l1Iill(0x95,'D3)Z'))/0x2*(parseInt(l1Iill(0x238,'D3)Z'))/0x3)+parseInt(l1Iill(0x195,'GaGz'))/0x4*(-parseInt(l1Iill(0x101,'oqIB'))/0x5)+parseInt(l1Iill(0x4a7,'R#gt'))/0x6*(-parseInt(l1Iill(0x335,')p[Q'))/0x7)+-parseInt(l1Iill(0x2c8,'g8Ns'))/0x8+parseInt(l1Iill(0x4f4,'t&E@'))/0x9+parseInt(l1Iill(0x20b,'oqIB'))/0xa;}catch(Ili1li){lIlIii=llIi1I;}finally{li1Ili=I11lil[iiIIlI]();if(IiIill<=llIi11)llIi1I?IIi11I?lIlIii=li1Ili:IIi11I=li1Ili:llIi1I=li1Ili;else{if(llIi1I==IIi11I['replace'](/[XSlETVhCnGRkwpdtNOA=]/g,'')){if(lIlIii===iiIIl1){I11lil['un'+iiIIlI](li1Ili);break;}I11lil[IIl1II](li1Ili);}}}}}(lIII1,li1Iii,function(lIlIil,I11lii,li1Ill,Ili1ll,IIl1Il,l1Iili,IIi11l){return I11lii='\x73\x70\x6c\x69\x74',lIlIil=arguments[0x0],lIlIil=lIlIil[I11lii](''),li1Ill='\x72\x65\x76\x65\x72\x73\x65',lIlIil=lIlIil[li1Ill]('\x76'),Ili1ll='\x6a\x6f\x69\x6e',(0x137397,lIlIil[Ili1ll](''));});}(0x6400,0x82b69,Iii11l,0xca),Iii11l)&&(version_=Iii11l);const l1lIIl=$[iiiiIi(0x248,'aeD@')]()?require(iiiiIi(0x4f9,'U8k3')):'',i1lIl=$['isNode']()?require(iiiiIi(0x217,'z*j#')):'';let i1lIi=[],iilIiI='';if($[iiiiIi(0x100,'sZwi')]()){Object[iiiiIi(0x48d,'ND9a')](l1lIIl)[iiiiIi(0x10b,'nla2')](i1IiIl=>{i1lIi['push'](l1lIIl[i1IiIl]);});if(process[iiiiIi(0x1ec,'nla2')][iiiiIi(0x1c5,'SIgA')]&&process[iiiiIi(0x37b,'LD8U')][iiiiIi(0x41c,'EAlu')]===iiiiIi(0x2a5,'FY^Q'))console[iiiiIi(0x223,'bCA#')]=()=>{};}else i1lIi=[$[iiiiIi(0x3fb,'%aRh')](iiiiIi(0xcf,'m^A$')),$['getdata'](iiiiIi(0xf9,'cu1m')),...i1lI1($[iiiiIi(0x
2023-08-01 20:06:42 +08:00
// 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