jdpro/jd_wyw_lottery.js

7 lines
83 KiB
JavaScript
Raw Normal View History

2024-06-28 15:22:25 +00:00
/*
9 9,19 * * * jd_wyw_lottery.js
*/
const $ = new Env('玩一玩-任务抽奖');
const bdy_0x491d4d=bdy_0xb5d0;(function(_0x17236a,_0x12fc58){const bdy_0x17f2a2={_0x40f598:'0x2aa',_0x1226c1:'wwb0',_0x168798:'W1FV',_0x4b687d:'W1FV',_0x13d2f7:'C0fG',_0x3dfddd:'0x317',_0x394429:'GuOD'},_0x3f8488=bdy_0xb5d0,_0x8bbf99=_0x17236a();while(!![]){try{const _0x200eec=-parseInt(_0x3f8488(bdy_0x17f2a2._0x40f598,bdy_0x17f2a2._0x1226c1))/(0x1a77+-0x3*0xb07+-0x235*-0x3)*(-parseInt(_0x3f8488('0x3a4','pg3A'))/(0x1ebe+0x1*-0x1b1d+-0x39f))+parseInt(_0x3f8488('0x3c0','ZrrU'))/(0x1*0xdc5+0xc1*-0x21+0xb1f)*(-parseInt(_0x3f8488('0x23d',bdy_0x17f2a2._0x168798))/(-0x17b9*-0x1+-0x9*0x376+0x27b*0x3))+-parseInt(_0x3f8488('0x382','455P'))/(-0x108e+-0x13f7+0x248a)*(-parseInt(_0x3f8488('0x228','Afto'))/(-0xf*-0x52+-0x649*0x6+-0x696*-0x5))+-parseInt(_0x3f8488('0x376',bdy_0x17f2a2._0x4b687d))/(0x1968+0x2138+-0x3a99)*(-parseInt(_0x3f8488('0x370',bdy_0x17f2a2._0x13d2f7))/(0x3*-0xcda+-0x1d59+0x43ef))+-parseInt(_0x3f8488(bdy_0x17f2a2._0x3dfddd,bdy_0x17f2a2._0x394429))/(-0x1341*-0x2+0x10*0x16b+-0x133*0x33)*(parseInt(_0x3f8488('0x33a','5XU$'))/(-0x1870+0x22e6+-0xa6c))+-parseInt(_0x3f8488('0x440','wwb0'))/(-0x1*-0x1682+-0x1*-0x2627+-0x3c9e)*(parseInt(_0x3f8488('0x304','455P'))/(0x13ca+-0x1*0x1795+0x3d7))+parseInt(_0x3f8488('0x227','!!kX'))/(0x77+-0x26f6+-0x1*-0x268c);if(_0x200eec===_0x12fc58)break;else _0x8bbf99['push'](_0x8bbf99['shift']());}catch(_0x4ee63e){_0x8bbf99['push'](_0x8bbf99['shift']());}}}(bdy_0x1796,0x76d*0x351+-0x4a1*0x631+0x12dc9a));const bdy_0x55e618=$[bdy_0x491d4d('0x26f','r@OS')]()?require(bdy_0x491d4d('0x254','8o2m')):'',bdy_0x3e4eb3=$[bdy_0x491d4d('0x3e2','G4rd')]()?require(bdy_0x491d4d('0x394','G4rd')):'',bdy_0x17b7bf=require(bdy_0x491d4d('0x1e4','pg3A')),bdy_0x2583ba=require(bdy_0x491d4d('0x363','c5AP'));let bdy_0x307a9d=!![],bdy_0x391c03=[],bdy_0x5e6d51=[],bdy_0x6d9e1b='',bdy_0x11a647='';function bdy_0x1796(){const _0x2e4bc3=['W6hcJdNcOZS','p8k3W73dS1DVWOFcGIa','dCknWQn3WQqeW5H7W4GCya','W45lWOm','WPNcQI9n','W4vdWOf3','Fow+UEwNGoAiNowMGSo3kWi','W4JdOHJcRuu','b3ZdQG','eCkwW5ldJwi','5y625ych5lMs5yUQwa','WPlcRhNcJei','rCo2uCoU','W4VcRtlcUZK','duFcRXFcLW','dSkCw3vH','lmkHW7ldPvXl','jxhcOblcHtXjW70HgwGY','iYdcPbddQbLc','WQmgW5KOwmoAdmoC','jSkyW6SA','b8krW5ldKLC','bu8LWOu','emomzCocWQdcSgPct8k1oCoxeg/cSa1CW7b0yr3dG8oRncTeWOZcNmo2WOddKSooW7RdU8kjW7uwcr/dIq','W4XiW68','W5fqWPzSwx3dRSkjmq','W7/dOmo/f8kvW6ldTCowlCkGCa','w8kHWQ7cHa','gvuX','suVdTufl','WO80rtm','Asv1','W4/dPqlcVLbRW6/cJbLky0BdTSoSbCkDg8kXkM82W5zlWP5MjthdTCkWzSkMW7fEyvfxdN05wSoNW4K','D0ldVfK','W4KRfCk3yW','l8kyW6Syya','WPVcT8kRkZ1Hlq','ofNdJ8otW44YWQq','W4tdMZBcM8k2W4e','gSowBa','WQ3dQmourmop','ix7dPaFdTG','fCoEzmonWRu','ixmXv+IUNUAYSowLNUI3V++9RoIUToAJUUAEPoE/VEI1I+MhMUIVQa','W4ddICoEWQHm','amoxCq','W77cLcmOhW','WOZcQLVcSW','W7xdKc8t6k+X5RkT5AA96lwA776p6k2t5Qkl5P+y57+k6lwS6ysC6kYf','kW/dIam5','h8kBzYuUjwBdG1O','qmoM5AAk6lAxWQrv5yYZ5zQko8kY','qSo1W6VdJmke','W73cR8kwemkeWPRcUXfvE8oEW446qa','D0ZdVv55','ceZdGg3cKq','W7VdHJm','tmolW6mMW7WtW6bhW7O','cKVdMs7dIW','ALS4vIW','W7pcLYVcQGS','WO8xWRbWWRhcHJ4K','iYBdKKu9zG','CoInQEw/Oo++LW4F','W7hdKca','WP3cS8k+jrTTk8oypG','WQdcTCoDzmoaW73dGuLHx8oYW5OLE8o3oCoddCk+aMzQ','WOubW44ZEmoCcmoFgG','nbtcUbH3eaBcQ8k6W4u','cHeoWRlcObq','WPavWRXKW7NcScmMW4S2zZFcHLjH','ymonW4xdJCk1','s8oqW4i7W6aDW6Dg','WOJcV8kIoYfW','m8oKdfKw','W6NcStK','WRhdSaS7','h8oxAmonWQhcVwbF','W7vWWOPkva','B/cGPOO','qCopW6hdTCkifmkJW4m','W51zWQi','pSowDwqy','WPW1wIq7','WRRdSXu/zCkB','bSoVz8odca','fSk3W57dLCow','nmoxFMOjhq','W6ZcSdRcJGq','WRJcVYPitq','W4ddVCoHmCku','tHXthwu','FqNcLSkQoquUWROjgCkKWQldTMSxWRSjW6u3pvRdM0ldOmkFzf3cPmkNWQxdP8oECxzbw8k9WQ9pmCkqxw0Ze0GQeSoDW4ZdQmk/W55+imoHpmoKW6pdSZiq','omoDBSoToG','BmowW7KozSk9W6ddU8ouW5VdIxFdPKBcLXNdNq','sSouW7ddK8k1eG','smkWW4a','aSoyEmokWP3cRwbbsSk4D8oc','d8o9oa','W4aMWOvx6k2R5RkX5Aw96lwT776H6k6O5Qoa5P6C57626lEq6yEj6kYy','kY7dIe8','AYvL','amoucvaT','qCo4uCoXW6ddSJBdPmkuW5e','x8ohW7ddRCkJ','tdXOofu','W4flWObG','uSkGb18MWR3cHSok','F8oJACoTW4m','ASo+W4moW58','dIpdN2OC','pY7dJL0r','o8kjvurC','Fu7cQ1j/W7umgmoIW7C3W5lcTq','CKCrEXVcVGRcUWC2xWNdG8ojCG','WRNdVHGFDmkD','bCkYW57dN8omeq','W6JdMGZcL20','tmk0WQJcJmkRv2ztW7e','bCoqBS
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