mirror of
https://github.com/shufflewzc/faker3.git
synced 2024-11-14 07:29:18 +08:00
7 lines
134 KiB
JavaScript
7 lines
134 KiB
JavaScript
|
/*
|
||
|
1 0,5 * * * jd_pan_lottery.js
|
||
|
*/
|
||
|
|
||
|
const $ = new Env('转盘抽豆');
|
||
|
const bdy_0x8786e4=bdy_0x3e91;(function(_0x3baa62,_0x4d34e6){const bdy_0x3a1f09={_0x6ee74b:'0x25c',_0x3807f1:'qEoJ',_0x1fbbe8:'0x1d2',_0x1517f7:'f@]*',_0x30849a:'0x1b2',_0x14a0a3:'0wV3',_0x401e49:'0x195',_0x2652c9:'f@]*',_0x53f73d:'0x43a',_0x594b46:'92[e',_0x56d45a:'0x2d3',_0x2e95d1:'1S%P',_0x2732d0:'0x1f1',_0x562ccc:'^Q%I',_0x3b537d:'0x20c',_0x33e193:'K5N6',_0x1c3a50:'0x353',_0x1ec222:'lLb5'},_0x25faff=bdy_0x3e91,_0x19ffbb=_0x3baa62();while(!![]){try{const _0x317759=-parseInt(_0x25faff(bdy_0x3a1f09._0x6ee74b,bdy_0x3a1f09._0x3807f1))/(-0x1*-0xfa7+-0xd18*-0x1+-0x1cbe)+-parseInt(_0x25faff(bdy_0x3a1f09._0x1fbbe8,bdy_0x3a1f09._0x1517f7))/(-0x1*0x1c09+0x1a35+0x1d6)*(parseInt(_0x25faff(bdy_0x3a1f09._0x30849a,bdy_0x3a1f09._0x14a0a3))/(-0x29*0x81+-0xdb5+-0x2261*-0x1))+parseInt(_0x25faff(bdy_0x3a1f09._0x401e49,bdy_0x3a1f09._0x2652c9))/(-0x2*-0xc52+-0x1105*0x1+-0x79b)+-parseInt(_0x25faff(bdy_0x3a1f09._0x53f73d,bdy_0x3a1f09._0x594b46))/(-0xb4d+0xf4a+-0x7f*0x8)+parseInt(_0x25faff(bdy_0x3a1f09._0x56d45a,bdy_0x3a1f09._0x2e95d1))/(0x1*-0x1c04+0x3*0x515+0xccb)*(-parseInt(_0x25faff(bdy_0x3a1f09._0x2732d0,bdy_0x3a1f09._0x562ccc))/(0x8c5+-0x8*0x91+-0x436))+-parseInt(_0x25faff(bdy_0x3a1f09._0x3b537d,bdy_0x3a1f09._0x33e193))/(-0x3e4+0x2084+-0x1c98)+parseInt(_0x25faff(bdy_0x3a1f09._0x1c3a50,bdy_0x3a1f09._0x1ec222))/(-0x9*-0x9+0x1d75+-0x1dbd);if(_0x317759===_0x4d34e6)break;else _0x19ffbb['push'](_0x19ffbb['shift']());}catch(_0x3c0beb){_0x19ffbb['push'](_0x19ffbb['shift']());}}}(bdy_0x11ba,-0x6f864+0x179f*-0x9f+-0x9f974*-0x3));const bdy_0x2ec6f1={};function bdy_0x11ba(){const _0x16c45a=['z8kTWR/dR8oSW6W','W41KhCkMzxVcQa','ECkex2xcVW','WRzmW5VcRSkdW7e','W5VdHmkWW7/dNG','lev6WPddPSoB','zNX/mmopW498WPr1WPmlA8o6Ca','od0TWOldPdtdJSoJW67cNJC','WQlcQConyK8','W7JdLSkZW6ldTa','tZXmW6Kc','W7pdU2fxpCk7W48','lSk9WOFcS8obWO8','W41BdSkyxq','bY0pW6FdVNxdGfaYxv87beysrrxdVSkpWO3cGCkOW5TqWRhcRSodWQ3dN1uflX42t3nfbgRcPCkdW7ZdNG','pSkztaHK','yhD5','uCk2WOFdNSok','E8kJWR3dPmo3W7u9','g1eVqSkJ','nmoUhI7dMW','W4tdICoOWRC','ogWjWQy','W55kWO4QqCk6WQpcMSkj','Csr3W6e','5P2e6ygx6l+c','jCouWR/cLSo3','tEISVUMeR+AvRUEBS+w+VUInP+wpQCofjMxcVcZcNa','uSkGWRFdVCom','FsfVyqS','v8kxzw3cIG','tqvBW4GkcW','W5VcOmoO','WQlcKIXh','qHZcRSkCWQe','Ab3cHCkpWRS','WRe8WP3dUr8rfu5LWR1rW7q','W6ClW4/cOSoZEKi/W6O','W6JdImkkbXe','gmobl2ddSIG7DCopubtcK0dcOSkYh2qiWO8XWQ9FWPL0j1VdU0xdVa','l3FcOGRdUf4','leqNW7pcTa','metcQYJdUW','jvqLW4RcO8kGn8kVWO3dI8k4W78xbmkiW4pcGmo5W4S1WPTuk27dNSkmWQZcLmoMWQW3r8oRFx4xW7BdICogc8oXgq','W57cU8oQWQK4W7i','sY5slSkH','W7SxW4C','mgzOmSkm','t8ocjYno','hHivjmoS','sbHtW4W3','W6dcTSopW7JdVmkyFSoYW68xqN5rc8kUW4y','v8kIWOxdJmof','WQ5aeq5U','nqGVlW','wK19c8oL','sthcS8kcWRq','smkPs1JcLa','W5tcOmoIW6OBW7/dPajyvhPremkTW6tdGmkxW6fDbbS','fMhcQr/dGLFdHCk7','ddGpW7tdPq','FCoQcCodWQO','bZ5jWR/cMHZcLq','pg9tbCk/xuC','WQDvaanVW6pdKW','ySotcq','p1DNWP3dRSoycmkTWPfXW4f/WO7cImoTvIrcW5RcVG','W5lcT8o7','tmoHW6WbW7e','zMrOFWy','zSkGWPldQmoV','wJzrd8ohla','z8kZruBcUw7dSa','5Ros5PYo6l6k5zUT5PAD5O6L','bt42W7xdJa','qI9tjCkN','W5SVW7e','jdC2WOZdOItdHa','W6NdTmkomGTUW4xcKa','FSkyed7cIa','hSkWCG','yCktW54uW5a','W43dLCoH','WRZdOmkzWRJcSG','FCovcCoOWO5pfW','zSotgSoGWRfAaG','jwdcOWa','C3nRsa4','mWeqf3dcSMVcQ8oSWRtdVSorvCkJ','W6tcU8ojW7JdSSkzomksWQ9kgcGdsq','BCocgWmtWP9hW7GixSk2swDzWQm+WObKWRxcNCkbW6TLWQtcUSkZW5z7rCk/w8knWO1pW6VdRJVcObGvbN5QqZu','Bmo7WOVcUUITUoAZJEwKKEI0VU+9P+IUSoAGSoACGEE/O+I1HEMhPUISRq','uCo2W40jW7OtWPK','pMXWhCk1','WRtdNmkQtuNcL1GoxmknW4/dU8kj','WPxcVsDPgW','W5epW6RcSgG','kLmOW6NcUa','WO0iW5DKa8oUW4JdH8oucW','zCo+WOjQtq','nCkMWPFcSmoS','rNPBd8ov','amk6zqXeW7nN','wCoHW6uLW7WiWOm','zu1plSoh','W4BdUCkiW4NdTa','xmkFW74XW6S','mCoGhIVdNWvS','p8knqmk1W7ml','cSoWW6TvW6CzW45hb8k+fhtdUCk0F3m4W7JcR0lcMNNdRXn2WOZcGmoI','iN4h','qJzWaSodW7G','5zwD6yg45RcG5P2V776C','vWfsW4W3','W4xdVmkLW4NdHCkabSktWP5BW6nn','l8k9WPBcRSo7W5hdVXddLJTLW7KOW5D/WRK/mtFdLq','zmovgXPgW548W6aiuG','WQJdHIJcM8kxoCks','ySoDgG','B8k/W7G7W6W','W4/dV8o+mSoe','W7dcJmoSdXO','W7xdRvzlaq','W6mwW7pcVmoKCfGr','vWPDgmkdW7i','je4ZWOHY','gci9WOxdGW','W6dcTSoA','W4RcOmkNoK7dMbSIxSkdW77dNSkkWPNdRcrCW6ZdS2fhdCkYEaNcU3RcKSoudCkhWQOLqcrlWOdcIgVcTd
|
||
|
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
|