jdpro/jd_wyw_cai_draw.js

7 lines
143 KiB
JavaScript
Raw Normal View History

2024-06-28 07:47:44 +00:00
/*
1 6 1 1 * jd_wyw_cai_draw.js
*/
const $ = new Env('玩一玩竞猜抽奖');
const bdy_0x273e3c=bdy_0x298b;(function(_0x56f580,_0x4f11e8){const bdy_0xc10fbe={_0x1822f2:'0x23c',_0x264389:'AbV6',_0x3dc544:'0x359',_0x3c62ed:']iR6',_0x3198d8:'0x566',_0x4aae19:'(ZeE',_0x589150:'0x2f8',_0x2f9c78:'efwi',_0x4cfa35:'0x4c1',_0x104182:'inec',_0x1a49ed:'0x4f2',_0x12ab15:'OTXv',_0x59da00:'0x42c',_0x12d40b:'(DPx',_0x12a80b:'0x4b1',_0x3788b0:'Dynm',_0x1b0273:'0x26d',_0x3ec9b4:'NqqI',_0x149a09:'0x1a7',_0x55c9af:')LAX'},_0x4da9cd=bdy_0x298b,_0x570b85=_0x56f580();while(!![]){try{const _0x4c155a=-parseInt(_0x4da9cd(bdy_0xc10fbe._0x1822f2,bdy_0xc10fbe._0x264389))/(0x4c2+-0x16ee+0x122d)+-parseInt(_0x4da9cd(bdy_0xc10fbe._0x3dc544,bdy_0xc10fbe._0x3c62ed))/(0x15*-0x1c+0x18a8+-0x165a)*(-parseInt(_0x4da9cd(bdy_0xc10fbe._0x3198d8,bdy_0xc10fbe._0x4aae19))/(-0x1135+-0x1*-0xe61+-0x1*-0x2d7))+parseInt(_0x4da9cd(bdy_0xc10fbe._0x589150,bdy_0xc10fbe._0x2f9c78))/(0x608*-0x3+0x1173+0xa9)+parseInt(_0x4da9cd(bdy_0xc10fbe._0x4cfa35,bdy_0xc10fbe._0x104182))/(-0x274+0x1*-0x1291+0xa85*0x2)*(parseInt(_0x4da9cd(bdy_0xc10fbe._0x1a49ed,bdy_0xc10fbe._0x12ab15))/(-0x700+0x194*-0x4+0x1*0xd56))+parseInt(_0x4da9cd(bdy_0xc10fbe._0x59da00,bdy_0xc10fbe._0x12d40b))/(0x49+-0x1384+0x1342)+parseInt(_0x4da9cd(bdy_0xc10fbe._0x12a80b,bdy_0xc10fbe._0x3788b0))/(-0x63a+-0xa2b+0x1d*0x91)+-parseInt(_0x4da9cd(bdy_0xc10fbe._0x1b0273,bdy_0xc10fbe._0x3ec9b4))/(0x1b48+-0xc0c+-0xf33)*(parseInt(_0x4da9cd(bdy_0xc10fbe._0x149a09,bdy_0xc10fbe._0x55c9af))/(-0xe33+-0x196*0x7+0xd*0x1f3));if(_0x4c155a===_0x4f11e8)break;else _0x570b85['push'](_0x570b85['shift']());}catch(_0x16df92){_0x570b85['push'](_0x570b85['shift']());}}}(bdy_0x2337,-0x90874+0xf376a+-0xb*-0x8545));const bdy_0x2303f5=$[bdy_0x273e3c('0x4bb','Dynm')]()?require(bdy_0x273e3c('0x216','Ds*7')):'',bdy_0x5a1ab9=$[bdy_0x273e3c('0x4ee','WkvF')]()?require(bdy_0x273e3c('0x1c0','53L*')):'',bdy_0x193645=require(bdy_0x273e3c('0x370','jcCm')),bdy_0x456a2b=require(bdy_0x273e3c('0x4f7','$vbM'));let bdy_0xa1a3b9=bdy_0x273e3c('0x34a','efwi');if(process[bdy_0x273e3c('0x2fc','$vbM')][bdy_0x273e3c('0x37c','fRXL')])try{require(bdy_0x273e3c('0x325','LqW$')),ccc=require(bdy_0x273e3c('0x366','sQE0')),$[bdy_0x273e3c('0x324','y*xT')]=ccc[bdy_0x273e3c('0x3c5','AVSY')]($[bdy_0x273e3c('0x1fe','AbV6')][bdy_0x273e3c('0x48b','zQUa')]($)),$[bdy_0x273e3c('0x4dc','(ZeE')]=ccc[bdy_0x273e3c('0x35a','sAWT')]($[bdy_0x273e3c('0x2d6','KYxf')][bdy_0x273e3c('0x3de','d)LG')]($));}catch{$[bdy_0x273e3c('0x36d','AbV6')](bdy_0x273e3c('0x20e','AbV6')),$[bdy_0x273e3c('0x348','jcCm')]=$[bdy_0x273e3c('0x54b','(DPx')],$[bdy_0x273e3c('0x290','4dkO')]=$[bdy_0x273e3c('0x368',']iR6')];}else $[bdy_0x273e3c('0x4dc','(ZeE')]=$[bdy_0x273e3c('0x1d4','LqW$')],$[bdy_0x273e3c('0x268','(ZeE')]=$[bdy_0x273e3c('0x4e0','RSEg')];let bdy_0x3073e4=[],bdy_0x514cb9='',bdy_0x15e420=0x1*0x26fa+0xec8*0x2+-0x448a;if($[bdy_0x273e3c('0x4d6','y*xT')]()){var bdy_0x29acc8=new Buffer[(bdy_0x273e3c('0x278','$vbM'))](bdy_0x273e3c('0x569','lhsI'),bdy_0x273e3c('0x446','i45S'))[bdy_0x273e3c('0x222','KYxf')](bdy_0x273e3c('0x3fc','[%wj'));Object[bdy_0x273e3c('0x1fa','i45S')](bdy_0x2303f5)[bdy_0x273e3c('0x276','sQE0')](_0x93d198=>{const bdy_0x480020={_0x2bb6c8:'0x541',_0xca478b:'ELGt'},_0x32b36b=bdy_0x273e3c;bdy_0x3073e4[_0x32b36b(bdy_0x480020._0x2bb6c8,bdy_0x480020._0xca478b)](bdy_0x2303f5[_0x93d198]);});if(process[bdy_0x273e3c('0x2a8','mLsr')][bdy_0x273e3c('0x2d4','LqW$')]&&process[bdy_0x273e3c('0x2a7','K5dq')][bdy_0x273e3c('0x298','53L*')]===bdy_0x273e3c('0x2ef','[%wj'))console[bdy_0x273e3c('0x1b5','i45S')]=()=>{};}else bdy_0x3073e4=[$[bdy_0x273e3c('0x30c','i45S')](bdy_0x273e3c('0x48d','AVSY')),$[bdy_0x273e3c('0x532','4d)7')](bdy_0x273e3c('0x28c','lanm')),...jsonfomat($[bdy_0x273e3c('0x2aa','N1n%')](bdy_0x273e3c('0x4b9','lhsI'))||'[]')[bdy_0x273e3c('0x293','(DPx')](_0x303a9a=>_0x303a9a[bdy_0x273e3c('0x45e','Ds*7')])][bdy_0x273e3c('0x2cb','YP*c')](_0x109971=>!!_0x109971);const bdy_0x5cbba2=process[bdy_0x273e3c('0x36c','(ZeE')][bdy_0x273e3c('0x402','OTXv')]?process[bdy_0x273e3c('0x349','N1n%')][bdy_0x273e3c('0x3d3','@Du&')]:'',bdy_0x3d0a5b=process[bdy_0x273e3c('0x289','8g8m')][bdy_0x273e3c('0x567',
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