mirror of
https://github.com/shufflewzc/faker3.git
synced 2024-11-14 07:29:18 +08:00
9 lines
45 KiB
JavaScript
9 lines
45 KiB
JavaScript
|
/**
|
|||
|
特务之明星送好礼
|
|||
|
请自行测水,平常请禁用
|
|||
|
cron 36 8,19 * * * jd_superBrandStar.js
|
|||
|
*/
|
|||
|
const $ = new Env('特务之明星送好礼');
|
|||
|
var iil='jsjiami.com.v7';function Iii11l(){const ili11l=(function(){return[...[iil,'RtWjrAsrjDiybanmirCg.BHcYuSoSmR.dlAvN7tS==','W7FdMJ58WPvVW6LFoa','tCo/dqXx','W6GYhrj2','g0G4W6r0W7HcDmkA','WOfAWP0YaMxcVMpcT8oTCmovgmo1f35aW6u','W6xdQ8oxwCo0ra','5lUP5yUn776N','5B6u5yMx5REl5yMXfq','WO8prgSigmon','44g45O+g56At44cmihRcNMC7qUw0OEwMIoAxUa','WPldK2rIhSkGW6JcVYz3W7BdS8kAktLgy0XFsCojEaxdGCo+j8kAW6feemo/E8oVkJLDW40sjY7dGaBdGa','WOrPttuAWRm','qmk/W6/cQmo3DW','W4ZcQfS','W7zPWPBcU33cQqJdVColiG','fmktc8o/WPq','W6LoWR1QW6r+WQyYW5KsjmoWzZPLxmoYoCo5dSo6rbdcGe7cQ196W7TUAmoQWR4UjM7cHcBcTfq','xSkQW6pcSq','W6tdISofWP1mCmkyCq','WOfPubSsWRur','W6tdKCoXFSoQ','WRBdPfHtWQm','C8ojWRW','xYxcNYX3iCk7AWjRWOtdTG','DmotstS','xqRdI8oBaW','mSkeWRhdJvS','lIaRWR8K','iqnyW7vr','vmoZWOX9W60','5As35yo56lwO5y2h6BI15yYhxCk8Aq','WQddNvXFWQ5FWOKR','WOddUtZdLxFcSvtcIq4','pmopWOldNK4','t8ogeJbk','WOjOqsWkWQynnSkea0BdQ8kJc8o3WOn6rmkc','amk+WRNcLbFcStq','WQq0W4ZdOgZcNW','xmojWPbgW7G','WQXdWRzR','WRuRA1eH','uW/dSmkh','W6W4dgtcGa','WPzaWOmY','WP/dN2q','WQHjWQzQW7W3W6i','ymkDW6lcH8oyhs5DW5W','WQ05W5VdRwa','mCkriCo4WOL5omkWWPK','wmoMhZbDg8opW7fo','pNGOW5xcGa','lJFdUCkDnW','WORdTYtdSuC','WRuUW43dGMVcNc8','k8kXWPW','W5lcKeS','ymkjW7FcNmokicnuW7VcMuhdUqb9W6ZcIW','qSo8gID6','j0a/W4hcOW','CmokWPfXW6u','WPFdHMrXbq','wIVdSSo8fa','W7BdSmk0vCo+','gZ4Mzq','WR9kW5qpuu0aW7dcLXNdNa','bxFdNx4R','oJ7dOCknmmkIzSo5xt9r','cSoIWQBdSvlcTf7dKSoTuG','gCoSWQVdQgC','WQbEWPuoha','qbzTW7TDW5Po','5BEB5A2h5OQA5OM45AEO77Ys','g3ddH2K7','WQWYWPTzcInPcSoet13dMwRdUmkVW7a','BXxdQSkzWQpcOow9U+wNKEoaNos5RUs5VoI1JUwpTa','W68XewFcQ8o9pcG','sCoGhYXMmCodW7PyCmoxfCo7W7/dHG','WOfUWPKhga','WQGVWOTcfd1Wp8oyvgpdHxNdQq','tbDSW4O','WOOZWRnXfG','5PY45OM85yII6iY+5y625yUL5BIV6zcs5l6F5OoN772P6lwL6l6K5OUg6kkymW','WQDyWQz+W655WQWQW7PhF8oSExT6sSk/p8kZuCoNquddHXxcVby9W6PDzSoMWRyUpIVdNJBcPxhdIcq7WO7dJHLaW5VcRGjVBSorW5TiW4ddOSoEWOVcLCoHW5PPtJrOiCkDWRuuW4C/AvFdPbrv','WQCrWRzkaq','5B665AwV5OUF5Awt776a','jfCJW5u','WRDfsge9','brZdOSkvna','WRePcSkcWQuEW70UW61CW7XZWRKcW6i1WRNcK8oOfhRcU0FdP8khl8kFW480oCk+W6TKWQPMxGmQW5ZdH17dLbaxqIOWzCoCiX/dKqFdQrmtW5dcPCkGWPDiW7PgWO9gWQ7dUmoVW4FdISk3FmkWw2xdUwtcSqFcLGiLhbPJWPHgWQqvb18ZW6ZdRCoZaW','W4/cQvKrlSoKnG','pCkTkCkuW7ZcNCk0WOddU8kXW4jNwSoJq14toeBcINhdM3e','WRRdULLrWQq','WR08cSkt','W60zkq','W7JdNSofWOnt','WRn7WOpcSMpcVqma','kSkWWO7dV3XzxW','W7uQmhJcGCo5','W5uBWPnF','W57dL8ofWRTJySkE','xJRdMCoqaq','W5/cNfJcSWddR8o8hComtq','FSorWRPUW7NdTSkIWPL6','zCoifSo9','WOS5A00c','W7xcNSkBq8ok','WR1zWRXhW7mLW6W','FqldMmoDaCkMW5m','W7xdJHDWWQS','W7lcOmkHwSosobhcK8o4lmoxtSowaSksWQ8','WOz1utCuWRGueSkzbgVdQCk+bq','ASoifq','W4NcVHFdPdpcTmoTW4NcJebsvmosjG/dISksW4epzWzMW5nBW5lcG3ZcSWJdVgtdPN8eWQyaDwCWW63cJmoNkCkHedVdUvng','W4KQg2xcQ8o9pcG','WP9aAcOk','5lMB5yQn772N','WQmUWOLOgW','WQ9UWOtcQvZdRL9BWOlcJXNcISkyWPifaCk7W5xcQCoJW7ygW7vPxt/cT3HzlmkLWOxdK8kpW4pcI8oAzCoiWQ7cRsFcUa5wWPKoWRRcRdVdKHRcVmkBlWxcVYddGe/cSgHaWQJdRLhcJSk0vKJdPwPVW7Li','WPrdWOWW','qCk/W77cTConkq7cSwO0WRVdUfdcTSkVW5i6mbBcR1eyW68','kvKHW5VcJCkv','FdrrW75z','WR1jWQzTW7iNW6y','W4dcVqldPItdGmkJWOVcNG','ctpdTCkzlW','WQRdHND4oW','5lQh5lQo5P2Z5yUJ5zMQ6l6O5zM456UT5Pwk5O27','vmoqk8kOW48','WRXeWR15W443W6j3W5XECmk2xtT2qq','CCkFW7dcNq','vWpdLq','lvBcKa','WOtdSgbWWOv8WRej','W44Vhq','WO1EWQ/cNwRcLIuZ','WPPcWR0tnq','rCo9cq','EmodWQ94W7ZdLSk6','WR/dIMPMaa','sXL8W44','bxLKDgPp','WPX7WOFcUf3cScqnWOlcMeS','ewZdKeSS','ac/dPSkak8kLu8o0rducFhRcOqbrW7rtzCkcb09yyvHAW5aKtCocW7vs','bIezWOyi','DSoSp8ksW6ZcGCkZW7/dM8k7W4PNvCoKvva','sNvVDwS','W6ldUCo0uW','W5tcU8kRwmoSmblcKq','cX/dHCkXqG','wmo6etvrcmohW6v9FmodlCoBW6ldLhO','W4hcPeGSoCo+krJcNM8','gmo+WRJdVmkjjbpdMLW8WQFdLMW'],...(function(){return[...['umkXW7pcK8or','WRxdGgbgcW','WPiOW4BdUuVcMY3dLW','omksnmo6WP4xBSoVWP4wfGFdIGD6ucVdMLddLNirE3LjW6tcU8kdWQ8aW4ldMJdcT8oVaCooyxPVk8kVma','zmoce8o2DmkyW7G','z8oqe8oQxSkJW7tdN8oV','W5BcGWldVaK','WPGuxa','iSkjnCoKWOK','W53dLSoh','W69spSoItmk3mSoIjq','duVcTmodW7RcSfq1FmkWdWXMtCkvWPC6WOmFbCoQn8oordlcQYbij8kBW4Wudr52cSouW79cWRxdPZ3cO8oPhSo7W4yhtmkxWQpdTmkrwt/dRSk+gmkraH0rW7xcKfldOaqRm8kzW4/cSXLCW7C','WROSnSkNWP4','CColwG9n','pcdcRSkAza','WQGPB3a5p8oLuCo5WPC','WQhdVcxdVKq','E8ojWRv5','5Bw+5
|
|||
|
// 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
|