jdpro/jd_wyw_lottery.js

7 lines
126 KiB
JavaScript
Raw Normal View History

2024-06-28 15:22:25 +00:00
/*
9 9,19 * * * jd_wyw_lottery.js
*/
const $ = new Env('玩一玩-任务抽奖');
2024-07-10 01:47:44 +00:00
const bdy_0x4fd1b2=bdy_0x7351;(function(_0x241906,_0x14c380){const bdy_0x168973={_0x182c77:'0x1dd',_0x1a7db9:'0x491',_0x379671:'0x404',_0x4782c9:'0x548',_0x434feb:'0x1fd'},_0x4dec73=bdy_0x7351,_0x433531=_0x241906();while(!![]){try{const _0x34005a=-parseInt(_0x4dec73('0x2a4','TGCp'))/(0x1baf+-0x17b8+-0x3f6)*(parseInt(_0x4dec73('0x4ca','B]nQ'))/(0x1*0x2383+-0x20*0xc0+-0x9b*0x13))+parseInt(_0x4dec73(bdy_0x168973._0x182c77,'4rb!'))/(-0x1*0x94d+-0x2351*-0x1+-0x3b7*0x7)+parseInt(_0x4dec73('0x5b3','TGCp'))/(0x1*0x121c+0x20b*0x2+-0x162e)*(-parseInt(_0x4dec73('0x55a','xxu*'))/(-0x1*-0x6b+0xc9a+-0xd0*0x10))+-parseInt(_0x4dec73(bdy_0x168973._0x1a7db9,'TGCp'))/(0x22*0x117+-0xcb*-0x1+-0x25d3)*(-parseInt(_0x4dec73(bdy_0x168973._0x379671,'TGCp'))/(0x1747+0x852+-0x1f92))+-parseInt(_0x4dec73('0x42e','4rb!'))/(0x3*-0x253+-0x3*0x2e+0x1*0x78b)+-parseInt(_0x4dec73(bdy_0x168973._0x4782c9,'UqXT'))/(-0x837+0x17bf+0x1*-0xf7f)*(-parseInt(_0x4dec73(bdy_0x168973._0x434feb,'hZ9l'))/(-0x786+-0x280*0xd+-0x2810*-0x1))+-parseInt(_0x4dec73('0x212','^r)i'))/(0x220f+-0xebf+-0x1345*0x1)*(parseInt(_0x4dec73('0x35d','UqXT'))/(-0x20*-0xd0+0x261b+0x400f*-0x1));if(_0x34005a===_0x14c380)break;else _0x433531['push'](_0x433531['shift']());}catch(_0x161ae6){_0x433531['push'](_0x433531['shift']());}}}(bdy_0x2865,0x10eafb+0x5224+-0x74b7b));const bdy_0x39058a=$[bdy_0x4fd1b2('0x281','B]nQ')]()?require(bdy_0x4fd1b2('0x31c','PQK2')):'',bdy_0x5390bb=$[bdy_0x4fd1b2('0x17e','hZ9l')]()?require(bdy_0x4fd1b2('0x4f4','2[FH')):'',bdy_0x2ab2a6=require(bdy_0x4fd1b2('0x298','u4Pf')),bdy_0x197df5=require(bdy_0x4fd1b2('0x53c','f07e'));let bdy_0x48cf80=!![],bdy_0xe8af08=[],bdy_0x377563=[],bdy_0x1a4005='',bdy_0x39108a='';if($[bdy_0x4fd1b2('0x494','TGCp')]()){Object[bdy_0x4fd1b2('0x54b','Pc$[')](bdy_0x5390bb)[bdy_0x4fd1b2('0x189','Kzmp')](_0x1bdfa5=>{const bdy_0x310801={_0x283ce7:'5)Q3'},_0x377161=bdy_0x7351;bdy_0x377563[_0x377161('0x5c6',bdy_0x310801._0x283ce7)](bdy_0x5390bb[_0x1bdfa5]);});if(process[bdy_0x4fd1b2('0x2af','[pok')][bdy_0x4fd1b2('0x317','B]nQ')]&&process[bdy_0x4fd1b2('0x3af','uyFl')][bdy_0x4fd1b2('0x302','4ifA')]===bdy_0x4fd1b2('0x409','B]nQ'))console[bdy_0x4fd1b2('0x3cd','#Hnd')]=()=>{};}else bdy_0x377563=[$[bdy_0x4fd1b2('0x25b','5M8c')](bdy_0x4fd1b2('0x2a2','4rb!')),$[bdy_0x4fd1b2('0x367','$tfY')](bdy_0x4fd1b2('0x53f','j#lD')),...bdy_0x2bae31($[bdy_0x4fd1b2('0x1dc','Kzmp')](bdy_0x4fd1b2('0x394','nKb0'))||'[]')[bdy_0x4fd1b2('0x4b1','4ifA')](_0x216ce5=>_0x216ce5[bdy_0x4fd1b2('0x52a','f07e')])][bdy_0x4fd1b2('0x545','Pc$[')](_0x1c935e=>!!_0x1c935e);$[bdy_0x4fd1b2('0x333','MI9q')]=bdy_0x4fd1b2('0x540','QB!n'),!(async()=>{const bdy_0x3f6733={_0x35b386:'0x4dc',_0x522785:'0x2f0',_0x2cc5df:'MI9q',_0x170a51:'[pok',_0x2867d8:'#Axb',_0x949b4:'0x248',_0x4ec577:'0x2c0',_0x4ea1a3:'0x5ee',_0x14b07f:'0x5af',_0x29f481:'$tfY',_0x1b0de2:'3ZDn',_0x7ae2af:'Z12h',_0x2f1dc1:'f07e',_0x1c70f8:'QB!n',_0xa6f785:'HQmg',_0x1292f3:'0x2e7',_0x2b48df:'0x42b',_0x346199:'4rb!',_0x34603f:'0x60e',_0x1ca505:'0x4b7',_0x40d01c:'0x35e',_0x12927e:'5)Q3',_0x54a400:'^r)i',_0x101e43:'0x503',_0x41c41b:'X4k#',_0x13d3cd:'0x2c0',_0x3f727c:'0x550',_0x4b6518:'HQmg',_0x3f20cb:'0x338',_0x4ecb5c:'0x42d',_0x4172aa:'0x56b',_0x54ee06:'f07e',_0x59c483:'z^r!',_0x3dbb04:'0x174',_0x4a9dfa:'2[FH',_0x4304d2:'0x296',_0x149630:'B]nQ',_0x1aa673:'0x2d9',_0x484d04:'0x1f1',_0x263f8e:'WZtL',_0x153271:'0x28c',_0x4d8f47:'^r)i',_0x759243:'4ifA',_0x34f6c7:'0x2a8',_0x15d24d:'WZtL',_0x3e6210:'0x3d7',_0x4cd68b:'0x1d2',_0x2e4d45:'^r)i',_0x5abeb6:'0x282',_0x2c9cad:'0x195',_0x273efb:'0x48c',_0x25f3bd:'0x3fb',_0x291e9a:'0x59a',_0x1df707:'0x4bf',_0xaacff2:'0x1a8',_0x1be944:'0x2ad',_0x4ccc90:'UqXT',_0x36afdf:'0x1c5',_0x2198cb:'*TQT',_0x1b047e:'eOHe',_0x1df9c8:'0x364',_0x4dc84b:'0x2a6',_0x272dc9:'SMMh',_0x1e8c3b:'0x4a3',_0xe7bf9:'0x2db',_0x4b44d4:'B]nQ',_0x43c21f:'0x1ab',_0x4876fe:'0x439',_0x24c802:'xxu*',_0x18a313:'0x4d1',_0x3df2ca:'uyFl',_0x2703e2:'0x272',_0x28f877:'0x51a',_0x5db1b9:'0x563',_0x4a6390:'0x4f8',_0x26e27f:'0x5f9',_0x115b1b:'0x264',_0x1adac7:'0x5b4',_0x30225d:'2[FH',_0x5ae88a:'0x5ec'},_0x179d87=bdy_0x7351,_0x3a4af3={'Whhhx':function(_0x10
2024-06-28 15:22:25 +00: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