jdpro/jd_joyzbj_draw.js

11 lines
136 KiB
JavaScript
Raw Normal View History

2024-10-18 09:57:35 +00:00
/*
1 1 1 1 * jd_joyzbj_draw.js
*/
const $ = new Env('Joy追补记_抽奖');
function QEglPR5(){}var da0MdfX=Object['defineProperty'],LvAR6dj,TTAgbc6,ItcbbQK,rDet11k,o50Ij8w,jYCSwh,H6R7NOl,dHRLdW,YkJpT1,eSwWqY9,GjmEij,FA1TSE,GrwRGXC,OdkDwzD,mYUzF1,jdodKXk,AQvlXb,m_qR3_,n8Lr7IZ,vGqc_5,gOIVeF,eixgts,cMBKv4,ST2g0P,ChDfJXk,vqmyqjs;function nnlczk(QEglPR5){return LvAR6dj[QEglPR5<0x12e?QEglPR5+0x56:QEglPR5-0x55]}LvAR6dj=bfvqzw();function plBIx06(QEglPR5,da0MdfX){var ItcbbQK=j0kYOQ(QEglPR5=>{return LvAR6dj[QEglPR5<-0x45?QEglPR5-0x17:QEglPR5+0x44]},0x1);return TTAgbc6.call(ItcbbQK(0x1c),QEglPR5,'length',{value:da0MdfX,configurable:nnlczk(0x11)})}QEglPR5(TTAgbc6=Object.defineProperty,ItcbbQK=plBIx06(j0kYOQ((...da0MdfX)=>{QEglPR5(da0MdfX.length=0x2,da0MdfX[nnlczk(-0x35)]=-0x51);if(da0MdfX[0xdc]>-nnlczk(-0x55)){return da0MdfX[0x57]}else{var TTAgbc6=j0kYOQ(da0MdfX=>{return LvAR6dj[da0MdfX>0x14e?da0MdfX+0x5b:da0MdfX<0x14e?da0MdfX+0x36:da0MdfX+0x58]},0x1);return da0MdfX[TTAgbc6(0x0)](da0MdfX[nnlczk(-0x1f)]())}}),0x2)(cKPrukw,PfqgPIH));var Emcik_=[],Ta2ZIgy=['#[0|{4(^',pkdF9O(0x0),pkdF9O(0x1),pkdF9O(nnlczk(-0xa)),pkdF9O(nnlczk(-0x23)),pkdF9O(0x4),pkdF9O(0x5),pkdF9O(nnlczk(-0x5)),pkdF9O(0x7),pkdF9O(0x8),pkdF9O(nnlczk(-0x21)),pkdF9O(0xa),pkdF9O(0xb),pkdF9O(nnlczk(-0x19)),pkdF9O(0xd),pkdF9O(nnlczk(-0x14)),pkdF9O(nnlczk(0x12)),pkdF9O(nnlczk(0x50)),pkdF9O(nnlczk(0x0)),pkdF9O(nnlczk(-0x15)),pkdF9O(0x13),pkdF9O(0x14),pkdF9O(0x15),pkdF9O(nnlczk(-0x12)),pkdF9O(0x17),pkdF9O(0x18),'Y.V+|',pkdF9O(0x19),pkdF9O(0x1a),pkdF9O(0x1b),pkdF9O(0x1c),pkdF9O(nnlczk(-0x1c)),pkdF9O(0x1e),pkdF9O(0x1f),pkdF9O(nnlczk(0x18)),pkdF9O(0x21),pkdF9O(nnlczk(-0x56)),pkdF9O(0x23),pkdF9O(nnlczk(0x3e)),pkdF9O(0x25),pkdF9O(nnlczk(-0x56)),pkdF9O(0x26),pkdF9O(0x27),pkdF9O(0x1c),pkdF9O(nnlczk(-0x55)),'|?=rs',pkdF9O(0x28),pkdF9O(0x29),pkdF9O(0x2a),pkdF9O(0x2b),pkdF9O(nnlczk(-0x54)),pkdF9O(0x2d),pkdF9O(0x2e),pkdF9O(nnlczk(0x2e)),pkdF9O(nnlczk(0x1)),'ZE|sOr|#',pkdF9O(nnlczk(0x24)),pkdF9O(0x32),pkdF9O(0x33),pkdF9O(0x34),pkdF9O(nnlczk(-0x52)),pkdF9O(nnlczk(0x54)),pkdF9O(nnlczk(0x34)),pkdF9O(0x38),pkdF9O(nnlczk(0xa9)),pkdF9O(0x3a),pkdF9O(nnlczk(0x22)),pkdF9O(0x3c),pkdF9O(nnlczk(0x45)),pkdF9O(nnlczk(0x84)),'C2:g|eR4',pkdF9O(0x3f),pkdF9O(0x40),pkdF9O(0x41),pkdF9O(0x42),pkdF9O(0x43),'b._oc#b|;',pkdF9O(nnlczk(-0x54)),pkdF9O(0x44),pkdF9O(0x45),pkdF9O(0x46),pkdF9O(0x47),pkdF9O(0x48),pkdF9O(0x49),pkdF9O(0x4a),pkdF9O(0x4b),pkdF9O(nnlczk(-0x4a)),pkdF9O(0x4d),pkdF9O(nnlczk(0x41)),pkdF9O(nnlczk(0xaf)),pkdF9O(nnlczk(0x51)),pkdF9O(0x51),pkdF9O(0x52),pkdF9O(nnlczk(0x53)),pkdF9O(nnlczk(0x85)),pkdF9O(nnlczk(0x56)),pkdF9O(0x56),pkdF9O(0x57),'vv/+U|GQ',pkdF9O(0x58),pkdF9O(nnlczk(0x69)),pkdF9O(0x5a),pkdF9O(nnlczk(-0x6)),pkdF9O(0x5c),pkdF9O(0x5d),pkdF9O(0x5e),pkdF9O(0x5f),pkdF9O(0x60),pkdF9O(nnlczk(0x3)),pkdF9O(0x62),pkdF9O(0x63),pkdF9O(nnlczk(0x58)),pkdF9O(nnlczk(0x5a)),pkdF9O(0x66),pkdF9O(0x67),pkdF9O(nnlczk(0x5b)),pkdF9O(nnlczk(-0x51)),pkdF9O(0x6a),pkdF9O(0x6b),pkdF9O(nnlczk(0x35)),'KDai|"SQ',pkdF9O(0x6d),pkdF9O(nnlczk(-0x47)),pkdF9O(0x6f),pkdF9O(0x70),pkdF9O(nnlczk(0xc)),pkdF9O(nnlczk(0x38)),pkdF9O(nnlczk(-0x17)),pkdF9O(nnlczk(0x62)),pkdF9O(0x75),pkdF9O(0x76),pkdF9O(0x77),pkdF9O(0x78),pkdF9O(nnlczk(-0x53)),pkdF9O(nnlczk(-0x53)),pkdF9O(nnlczk(0x8)),'Q|!7t1nvsr_6Z4^C9Os',pkdF9O(nnlczk(0x1b)),pkdF9O(0x7c),pkdF9O(0x7d),'dd@]q_|Pv',pkdF9O(nnlczk(0x1c)),pkdF9O(0x7f),pkdF9O(0x80),pkdF9O(0x2c),pkdF9O(nnlczk(-0x52)),pkdF9O(0x81),pkdF9O(0x82),pkdF9O(0x83),pkdF9O(0x84),pkdF9O(0x85),pkdF9O(0x86),pkdF9O(nnlczk(-0x50)),pkdF9O(0x88),pkdF9O(nnlczk(-0x4f)),pkdF9O(0x8a),pkdF9O(0x8b),pkdF9O(0x8c),pkdF9O(nnlczk(0xc6)),pkdF9O(0x8e),'|tCk4[0',pkdF9O(nnlczk(0x74)),pkdF9O(nnlczk(0x2a)),pkdF9O(nnlczk(-0x4e)),pkdF9O(nnlczk(-0x44)),nnlczk(-0x3d),pkdF9O(nnlczk(-0x4d)),pkdF9O(0x94),pkdF9O(nnlczk(0x78)),pkdF9O(nnlczk(0x55)),pkdF9O(nnlczk(-0x4c)),pkdF9O(0x98),pkdF9O(nnlczk(-0x4b)),pkdF9O(0x9a),pkdF9O(0x9b),pkdF9O(0x9c),pkdF9O(nnlczk(-0x49)),pkdF9O(nnlczk(-0x48)),pkdF9O(0x9f),pkdF9O(0x21),'|dK[P6:<^',pkdF9O(0xa0),pkdF9O(0xa1),pkdF9O(0xa2),pkdF9O(nnlczk(0x79)),pkdF9O(0xa4),pkdF9O(0xa5),pkdF9O(nnlczk(-0x51)),pkdF9O(0xa6),pkdF9O(0x2c),pkdF9O(nnlczk(0x7c)),pkdF9O(nnlczk(-0x54)),pkdF9O(0xa8),pkdF9O(0xa9),pkdF9
抽奖间隔默认1秒 JOYZBJDELAY='3'
开启代理API DY_PROXY='apiurl'
垃圾券数量默认10次CXJLJQ_COUNT='20'\n`),console[rDet11k(nnlczk(0x42))](`\n开始抽奖和提现(间隔${HNCDD17} 连续${aHb9mHF}次垃圾券停止)...`),bfXqygE>l_8IhQJ(nnlczk(-0x20),lf96PaL(0x2))&&console[rDet11k(0x4d)](`\n已设置本次运行抽奖次数 ${bfXqygE}`),new Date);for(let H6R7NOl=VI6MX8G(jYCSwh[rDet11k(nnlczk(0x53))](l_8IhQJ(jYCSwh[TTAgbc6(0x54)](),FG60kwz,lf96PaL(-nnlczk(0x0)))),nnlczk(-0x1f));H6R7NOl<grOuHRC[rDet11k(da0MdfX.qxOQl4-nnlczk(0x67))];H6R7NOl++)if(grOuHRC[H6R7NOl]&&eixgts.xQib3P>da0MdfX.qxOQl4-0x7c){var dHRLdW=plBIx06((...da0MdfX)=>{QEglPR5(da0MdfX.length=0x5,da0MdfX[nnlczk(0x54)]=-0x95);if(typeof da0MdfX[0x3]===pkdF9O(0x1a8)){da0MdfX[da0MdfX[0x36]+0x98]=FA1TSE}if(typeof da0MdfX[da0MdfX[0x36]+nnlczk(-0x4b)]===pkdF9O(nnlczk(-0x1d))){da0MdfX[nnlczk(-0xb)]=Emcik_}if(da0MdfX[0x0]!==da0MdfX[nnlczk(-0x20)]){return da0MdfX[nnlczk(-0xb)][da0MdfX[0x0]]||(da0MdfX[0x4][da0MdfX[da0MdfX[nnlczk(0x54)]+0x95]]=da0MdfX[da0MdfX[nnlczk(0x54)]+0x98](Ta2ZIgy[da0MdfX[nnlczk(-0x1f)]]))}if(da0MdfX[nnlczk(-0x23)]===dHRLdW){FA1TSE=da0MdfX[0x1];return FA1TSE(da0MdfX[nnlczk(-0xa)])}if(da0MdfX[nnlczk(-0xa)]==da0MdfX[nnlczk(-0x1f)]){return da0MdfX[nnlczk(-0x20)][Emcik_[da0MdfX[0x2]]]=dHRLdW(da0MdfX[0x0],da0MdfX[da0MdfX[nnlczk(0x54)]+nnlczk(0x55)])}if(da0MdfX[nnlczk(-0x23)]===void 0x0){dHRLdW=da0MdfX[0x4]}},0x5);QEglPR5(da0MdfX.imXUsu=rDet11k(nnlczk(0x56)),da0MdfX.teEgki=TTAgbc6(nnlczk(-0x47)),da0MdfX[nnlczk(0x12)]=[dHRLdW(da0MdfX.qxOQl4-0x15),rDet11k(0x74),TTAgbc6(0x77),rDet11k(da0MdfX[nnlczk(0x57)]-0x2f)],da0MdfX[nnlczk(0x50)]={[pkdF9O(0x1c9)]:TTAgbc6(nnlczk(0xb2)),[pkdF9O(0x1ca)]:rDet11k(nnlczk(0x101))},uFYQIx=grOuHRC[H6R7NOl],$[rDet11k(0x56)+nnlczk(0x61)]=decodeURIComponent(uFYQIx[da0MdfX[da0MdfX[nnlczk(0x57)]-0x6c][pkdF9O(0x1c9)]](/pt_pin=([^; ]+)(?=;?)/)&&uFYQIx[TTAgbc6[pkdF9O(nnlczk(0x15))](nnlczk(-0x11),[0x57])](/pt_pin=([^; ]+)(?=;?)/)[nnlczk(-0x20)]),$[TTAgbc6(nnlczk(-0x4))]=l_8IhQJ(H6R7NOl,0x1,lf96PaL(-0x8)),$[TTAgbc6(0x59)]=nnlczk(0x11),$[rDet11k(0x5a)+'me']='',$[TTAgbc6(da0MdfX[nnlczk(0x57)]-nnlczk(0x19))]=nnlczk(-0x1f),SDp0Ac=[],XbM3W3=[],txjscore=[]);;da0MdfX[nnlczk(0x0)]=VI6MX8G($[TTAgbc6(nnlczk(0x5c))]=!0x0,$.fg=0x1,$[rDet11k(0x5d)]=!0x1,$[TTAgbc6(da0MdfX.qxOQl4-nnlczk(0x17))+rDet11k[pkdF9O(0x1be)](undefined,[0x5f])]=nnlczk(-0x1f),$[rDet11k(nnlczk(0x96))]=nnlczk(0x59),$[TTAgbc6[pkdF9O(0x1be)](undefined,[da0MdfX[nnlczk(0x57)]-0x1b])]=!0x1,$[TTAgbc6(0x62)+rDet11k[pkdF9O(0x1bb)](undefined,nnlczk(0x97))]=0x0,$[TTAgbc6(nnlczk(0x58))]=nnlczk(0x59),$[rDet11k(nnlczk(0x5a))]=!0x1,$[TTAgbc6(da0MdfX[nnlczk(0x57)]-nnlczk(-0x12))]=0x1,$[da0MdfX[da0MdfX[nnlczk(0x57)]-0x6d][0x0]+TTAgbc6(nnlczk(0x5b))]=0x0,$[dHRLdW(0x69)]=[],$.UA=NP3E0F[TTAgbc6(da0MdfX.qxOQl4-0x12)]?NP3E0F[TTAgbc6(0x6a)]():NP3E0F[dHRLdW(0x6b)+rDet11k(0x6c)],$[rDet11k(0x6d)]=HuMD61[da0MdfX.teEgki](),await HuMD61[rDet11k(nnlczk(0x3d))+'en']($.UA));if(da0MdfX[nnlczk(0x0)]){var YkJpT1=plBIx06((...da0MdfX)=>{QEglPR5(da0MdfX[nnlczk(-0x10)]=nnlczk(-0xd),da0MdfX[nnlczk(0x5d)]=-nnlczk(0x77));if(typeof da0MdfX[da0MdfX.WNPg3hT+0x97]===pkdF9O(0x1a8)){da0MdfX[da0MdfX.WNPg3hT+nnlczk(-0x4c)]=eSwWqY9}da0MdfX.WNPg3hT=-nnlczk(0x5c);if(typeof da0MdfX[da0MdfX.WNPg3hT+0x60]===pkdF9O(nnlczk(-0x1d))){da0MdfX[da0MdfX.WNPg3hT+0x60]=Emcik_}if(da0MdfX[0x1]){[da0MdfX[nnlczk(-0xb)],da0MdfX[nnlczk(-0x20)]]=[da0MdfX[nnlczk(-0x23)](da0MdfX[nnlczk(-0xb)]),da0MdfX[0x0]||da0MdfX[nnlczk(-0xa)]];return YkJpT1(da0MdfX[nnlczk(-0x1f)],da0MdfX[nnlczk(-0xb)],da0MdfX[0x2])}if(da0MdfX[da0MdfX.WNPg3hT+0x5c]!==da0MdfX[da0MdfX[nnlczk(0x5d)]+0x5d]){return da0MdfX[nnlczk(-0xb)][da0MdfX[0x0]]||(da0MdfX[nnlczk(-0xb)][da0MdfX[nnlczk(-0x1f)]]=da0MdfX[nnlczk(-0x23)](Ta2ZIgy[da0MdfX[da0MdfX[nnlczk(0x5d)]+nnlczk(0x5c)]]))}if(da0MdfX[da0MdfX[nnlczk(0x5d)]-(da0MdfX[nnlczk(0x5d)]-nnlczk(-0xa))]&&da0MdfX[0x3]!==eSwWqY9){YkJpT1=eSwWqY9;return YkJpT1(da0MdfX[0x0],-nnlczk(-0x20),da0MdfX[da0MdfX[nnlczk(0x5d)]+0x5e],da0MdfX[nnlczk(-0x23)],da0MdfX[da0MdfX[nnlczk(0x5d)]+0x60])}if(da0MdfX[nnlczk(-0x23)]===void 0x0){YkJpT1=da0MdfX[nnlczk(-0xb)]}},da0MdfX[nnlczk(0x57)]-(da0MdfX.qxOQl4-0x5));QEglPR5($[dH
function Env(o, t) { 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((r, i) => { s.call(this, t, (t, e, s) => { t ? i(t) : r(e) }) }) } 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.logLevels = { debug: 0, info: 1, warn: 2, error: 3 }, this.logLevelPrefixs = { debug: "[DEBUG] ", info: "[INFO] ", warn: "[WARN] ", error: "[ERROR] " }, this.logLevel = "info", 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.encoding = "utf-8", this.startTime = (new Date).getTime(), Object.assign(this, e), this.log("", `🔔${this.name}, 开始!`) } getEnv() { return "undefined" != typeof $environment && $environment["surge-version"] ? "Surge" : "undefined" != typeof $environment && $environment["stash-version"] ? "Stash" : "undefined" != typeof module && module.exports ? "Node.js" : "undefined" != typeof $task ? "Quantumult X" : "undefined" != typeof $loon ? "Loon" : "undefined" != typeof $rocket ? "Shadowrocket" : void 0 } isNode() { return "Node.js" === this.getEnv() } isQuanX() { return "Quantumult X" === this.getEnv() } isSurge() { return "Surge" === this.getEnv() } isLoon() { return "Loon" === this.getEnv() } isShadowrocket() { return "Shadowrocket" === this.getEnv() } isStash() { return "Stash" === this.getEnv() } toObj(t, e = null) { try { return JSON.parse(t) } catch { return e } } toStr(t, e = null, ...s) { try { return JSON.stringify(t, ...s) } catch { return e } } getjson(t, e) { let s = e; if (this.getdata(t)) 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(r => { this.get({ url: t }, (t, e, s) => r(s)) }) } runScript(a, o) { return new Promise(r => { let t = this.getdata("@chavy_boxjs_userCfgs.httpapi"); t = t && t.replace(/\n/g, "").trim(); var e = (e = this.getdata("@chavy_boxjs_userCfgs.httpapi_timeout")) ? +e : 20, [s, i] = (e = o && o.timeout ? o.timeout : e, t.split("@")); this.post({ url: `http://${i}/v1/scripting/evaluate`, body: { script_text: a, mock_type: "cron", timeout: e }, headers: { "X-Key": s, Accept: "*/*" }, timeout: e }, (t, e, s) => r(s)) }).catch(t => this.logErr(t)) } loaddata() { if (!this.isNode()) return {}; this.fs = this.fs || require("fs"), this.path = this.path || require("path"); var t = this.path.resolve(this.dataFile), e = this.path.resolve(process.cwd(), this.dataFile), s = this.fs.existsSync(t), r = !s && this.fs.existsSync(e); if (!s && !r) return {}; r = s ? t : e; try { return JSON.parse(this.fs.readFileSync(r)) } catch (t) { return {} } } writedata() { var t, e, s, r, i; this.isNode() && (this.fs = this.fs || require("fs"), this.path = this.path || require("path"), t = this.path.resolve(this.dataFile), e = this.path.resolve(process.cwd(), this.dataFile), r = !(s = this.fs.existsSync(t)) && this.fs.existsSync(e), i = JSON.stringify(this.data), !s && r ? this.fs.writeFileSync(e, i) : this.fs.writeFileSync(t, i)) } lodash_get(t, e, s) { let r = t; for (const t of e.replace(/\[(\d+)\]/g, ".$1").split(".")) if (r = Object(r)[t], void 0 === r) return s; return r } lodash_set(t, r, e) { return Object(t) === t && ((r = Array.isArray(r) ? r : r.toString().match(/[^.[\]]+/g) || []).slice(0, -1).reduce((t, e, s) => Object(t[e]) === t[e] ? t[e] : t[e] = Math.abs(r[s + 1]) >> 0 == +r[s + 1] ? [] : {}, t)[r[r.length - 1]] = e), t } getdata(t) { let e = this.getval(t); if (/^@/.test(t)) { var [, s, r] = /^@(.*?)\.(.*?)$/.exec(t); if (s = s ? this.getval(s) : "") try { const t = JSON.parse(s); e = t ? this.lodash_get(t, r, "") : e } catch (t) { e = "" } } return e } setdata(t, e) { let s = !1; if (/^@/.test(e)) { var [, r, i] = /^@(.*?)\.(.*?)$/.exec(e), a = this.getval(r), a = r ? "null" === a ? null : a || "{}" : "{}"; tr