faker3/jd_opencard0625.js

15 lines
46 KiB
JavaScript
Raw Normal View History

2024-06-28 15:38:28 +08:00
/*
环境变量
export jd_opencard_draw="3" //抽奖次数 3
export jd_opencard_notify="true" // 是否推送
cron:1 1 1 1 *
*/
const $ = new Env('6.25-7.9 “冻”感对味 夏日绝配')
var il='jsjiami.com.v7';const iliIl1=iii1II;function Iii11l(){const lI1l1l=(function(){return[...[il,'KILjRysxKjpirEaYmBiL.TcpomNE.SvU7FAebtkn==','qSoWEG','WQi7W6DM','W5FdSqxcJ8k3','W7ZcH0pcOsO','776t6k+F5OIc5yMF5yYp5Ak65yEl5z2E5z6JWOnM','W69dk1XM','nmoheCosDq','sCoGCCoHevCQ','WQn8W4ldRs8gWOy','uulcIu0iomkIWQZdGmo0WODsWQ8kCYxdUgixhmoJ','WPWIWOGbWRhdM0VdULDTWRdcNSoN','DSoVxHFcIq','W7RdHqVcRCkEha','W5FcGGhcRCkXbG','WQOKCmkcsMJdRuLWWORdOW','W5ONWQ3dImom','uSoHW5xdKu8','WR07WPqKWRu','W4NcGKlcTb0','eSo0emoQDJRcGum','WOaNWO4mWRFdIuO','5Q2NmowgVUAEOG','BSodWQO','sJySWP04','y8kgWRSwbffPW498CmoHWRygsG','W7eRW67cPvq','W75snK91g8kQDgv1W7W','6Agr5y6u5B6c5y+z5OMj5yU55yQB5AwK5yIDW5FcSa','W4LmWPFdNN0','W4NdPGpcI8kkWPRcT8kjua','W7jnoSkeW5xcTJC','W5uJW4JcTvy','5AYU5OUH5lQF5yM+WRW','W6BdJWZcP8kYcJddGa','W6CMWQldImoA','5lQB5AsB6yoh552I','umoTWPHvW6u','W6pdHq/cPG','WPOSDG','WRncWPKrW63dGhb8WPu','W5/dUYi','W4XqWPBdIvJcKJShWQVdN8oZ','W4/dPaddRG','BmoYASogjW','W6S7W6lcUuRcNq','bmo2dCo3','o0NdNqPN','gLtcMe4','W4RdVrJcJmkqWO7dRq','xb/dPmkPW51X','W707W7JcVa','WRy1W6pdIJSEyv/dIq','WRmuW6xdPHn1WQC','W65MemkDW70','W4ZdOaddGLZdNWfQWPTc','W5RdNY3cGSk+','W7RdHqVcRq','v8oJESoWbuTIveXXgb7cSSokWOxcSsxcUvSDt8o6nG','5RA15yUG5zol56wD7764W4u','gCo6heNcSLdcNW','C8k4qCoPWOid','W5tcKuuu','W6WPW6NcR2NcN8kgatW','WPCZWPKo','WOyrW5C','W4FdObRdQe3dHa','WP89WOO','ib8xWO4Rjq','WP43WP4CWRpdNvW','vXpdSSknW4PK','E8o2sq7cLW','ffRcHueICW','W6eyW7BcQ0m','yWpdO8kwW7jGWP3dOG','xftdMW','W6mTWRxdNSodWOhcUq','dmoYgCkcbLVdNq','DmoIrrK','W4BdTHm','W5NdKGbWWPXhWPrj','e8oIfmkgf0a','4P2CWQpMNjVOGOxMRPJNORFLPPpNKA7cUa','57695Bk75B2/6ks75y+m5PEJ77256kYF6ysT5PEk6lYE6kkX','5zkS6z6t55UG5yYO6ycA5l2t5yQ85yUSwbaJWRW','E8ooWQPUW5m9','WR0cW6xdIqLX','oJqbWPmO','zSokW4q','W5ZcLv8sW47cGa','a8onkbhdQG','W67dNmooW4P+','A8ogW5FdNMVcNL4w','eLRcIW','wNVdMCksW6C','l8kismoM','6Akp5y255B+e5y2R5OQQ5yU55yQK5Asv5yQhW5tcMq','W77dGWhcQmkzgrtdGq','wMhdR8kNW5lcKmo8Aa','ySo2xZ3cLCk9','meddUc9tFmkB','fSo5amoxAtlcRq','5P6155+u5Asu5zoN77Yz','n8ocW6juudiLWO9u','W7/dM8k8sCkFB8kd','iWOCWOCkp0C','eSo0emoQDJO','n0WfW5G','m8ksxa','WQKAFSoaWOZdPMOHWOddScL3W7u','gqFdO8kgW58UWOxdQCoUmcWFW68oCCk2e8oZtxNdUCoL','m1KEW4xcN8kDvSoeja','W6ldKCkMvmkkE8ov','W5xcKa3cQW','vLldKKbmlmku','CSk4xmo9WPCmla','W5axW6lcTxC','W6VdM8k7qG','zmokWRD5W503wG','wf3dMSkuW7O','WPBcH07cRbVdMmkizeJcLelcHHHGWRSMbLddHG','W5T4jgjf','W75FkmkfW5dcNZmdWOy','WQ1xWPS','k8obl8kzla','h8o4aW','W7m1W6xcS2ZcLa','WOr7z30o','n8owW7DpqGm','ESoBWRzJW5i3vIvp','W5VdQH3dOu3dN0a','nMNcVmod','WQu1W7PobSoc','fmoUpmorzq','rH/dTG','W6C9WPBdImok','au7cL8onW4m','WRnnW4tdNtC','WPy7WOavWQy','8lUqGKlNQRNMS4m','W7bylmkzW5FcScakWRZdPqvSW5i','WOuWCCk0WPrQ','W7GTW63cR0hcVSkabtC','kNpcQa','57605Bgz5BYd6ksS5y2G5PAw77+q6kY36yw85PAg6l286koK','5lQ95A+K5z2l','W5OaWRFdLCog','DSoQxqZcNSkR','W7tdGmk+W5hcT2q','WPRORAxMSlpLKk/LUBddNq','WQ1tWPGlW6ldGhW','fCo+ha','WRaNW7BdUZa/A1VdICk7W7hcOcf0','WRzmWQutW7m','WRmJW7BdMq','pW4lWOaXkKiKWPu','lmkiwmoTWPfnWRS','5P6K556T5AAq5zgS7764','CZZdUCk5zCog','5BYh5yYYWR7OVitPNiVLVRu','qWpdO8kwW6Po','W6O/W7JcNKRcN8kkatC','eSoNfmoMBJVcI0GmhSoLsxa','WPiABCk/WQS','WQKsW7tdKILB','vupdLvu','W63cV2dcIZBOJydLJkVLPlVOTitcHq','W7q/W7/cRKtcL8ke','WRaoW7y','WOmSECkJ','WRyHW7BdKsK1'],...(function(){return[...['BCk8qCoQWPKg','WPRcLKK2W4mjW7S','W4tcMaJcQ8kcoW','W6tdOYFcLSkT','W4pdSqddVWpcG11OWPndk8odsCktWRdcGttdRqdcVdjHoSkZW6xdSIbQf0eSW5rkW5i','gSkku8oHWQy','5OIn5AEQ6i+u5B6lW5md','BaVdJ8oslq','5lM6gUEKHowjVUwnRoAiMUwLJYa','omoCW6bnEGCXWPO','WOHyWR4ZW5q','fCo+cmo3zs0','vZ/dKCodcW','r8kpE8oMWPu','W4FdNqPO','ECorW5hdNNpcNge/WOG','cMRdVsLi','iSoGeSkZW4S','n8ouia','ymoXqWRcQG','W4ldTJBdPLFdIdfQWO5d','l8ksuSoGWObn','kmopadhdMG','CCoGrrhcJCk8W4mbW6W7W6u','rJddPSk1FCoq','5Rw75yQf5zgH56wC77+RW5K','eCoXc27cULRcNW','5Q+M5OQK5AEG','qbxdQmkaW5LZWRNdOW','qCkNva','w17dMveniCkbmmkbFa','dKFcHvuo','W5ZdKWq','m1ddQcX8B8ktya','oSoymZZdIWm','wmkxA8opWOC','8lo8Nwu','W75lpCkEW4lcUcyxWRBdUWa','ibuE','DYRcGCoiW7f5WP52','eSkRnCk+sbj3AuWMnaxcLW','WPq4W5Luea','WQHSW6VcUKdcT8k0iq','r2hdK1T0','WPyQBa','mSoIdLRcQq','WP8oW7/dLbP6WRtdR8kpiCkBW58','WQL8rW','6Acw5y285B2I5y6I5OUb5yUr5yUI5AEY5yIiCxm','pfRdVY5e
// prettier-ignore
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