faker3/jd_XinFarm_draw.js

12 lines
32 KiB
JavaScript
Raw Normal View History

2024-06-28 15:38:28 +08:00
/*
东东农场幸运抽奖
cron:1 1 1 1 * jd_XinFarm_draw.js
*/
const $ = new Env('新东东农场幸运抽奖')
var il='jsjiami.com.v7';const lllil=iii1II;function Iii11l(){const IlIII=(function(){return[...[il,'PrHjsjriVhpaSfmTiV.AcyomU.ybvV7nHrXyyhMQ==','EHHJF8kUwSkJnmozW5OrWQBcNGW4zG','WRldMCo/W6NdL37cNmk4nxy','sKTGyuK+','x251zK0','W4uMW794WQNcVqRcM8oj','yanH','CSoqdCoOlGpcImoYW5KxW7as','xr7cQvVcGCkmpq','W6RdTsaZDW','jmouk8kPk8kbWQdcP8oSacldThXWDCoqW5apWO/dTCoviZBcVmomW5yZWOBdHLKzW5NdH8kEWP4','C0z2W7Tx','xCowwG','W5K/smk7qSklfa','WQpcICkqBG','mKVdRcVcHqRdMGRdHHTKW7Hu','lSoCW7zM','W4JdJSom','rxbXW5i','WRJcNCkTWRq','q8oPfG','WRRcUh8OtG','W7TDmuD7qCoZ','agafWQWdWPlcNxrvdu0Xtq','vZXzbaC','WQq9h8oiyq','pXn2jcxcSSoQ','W6BcUIOpW7xdSq','44ku5OYd56wQ44gt6k2X5yEE6i+W5y2yWP5pbbrLlW','W5ZdQcyxW4GGx1a','rXpcV03cJmkyfmk6qCkocvmA','BaNcILpdLW','imkmqmkqluxcHa','W58icW','WOpcJ3ry','WP7dUdWtW5uVqG','CSoDsLpdLq','aKfkWOxdT1C','BabsE8kXqSkJmSoEW5O','WQ/cL8kiBLm','uSokw3hdUq','W6GyW6K','gK9E','xmkybCkcWRpcRCkacqxcRmokeqa','pmoMBSo/W7K','cKqXhxjl','pSo2Bhai','auHCWOVdKKdcTgm1rbuzuq9AWOK','W4STW6ddLmoi','W58AW7rvWOi','n0hdQsRcGG7cGd3dJaf7W7i','o8obnSkT','BfhcUaRdOG','W6XGWOiJza','c8k5zSkxsW','W50gaqW','EhlcJaFdKYW','WOP65OQg5AAE6i6u5B27uq','44cD5O6G56s844cl6kY15ywH6i2y5y6nW67dGrVcV8koiq','W7vlySoPB8orWOm6kIjwWPWGWQvPWOu7cgz8bSomWRJdNmoZW4WgW4FdRmozgCo+W4a','W71uyq','WORcK0CnCSoGWRZcKCoZWOLRvunu','W5GRlSoTzCoGiq','xSomsvVdTSkYqa','WOKIlCkJBIq','feeZvNldMNXlW7JdQmob','qf4xyCo6EfergG','hLrnWP7dJqNdLYmGqbLfrwLFWPKqxY4QWPJcO1NcKG','oCosW6fOdmoOWQW1WQlcQCoQWQu','WQ05bSkPsCoJ','BMNcIqNdKXa5WQtcJW','W63dS8osWR0g','W7NdMre8Fa','ssJKUPVLIAJLR6pMI7e','mrDlbIa','uqVcJKNcK8kafmk8rSko','tCoCkvC','W6jHcSkoWRWGcmkQ','qabHxCkd','W7mdW6nCWQi','W4qaW4e','y080zsRcUCoOWQpcTMq','lYZdMuRdVZi5WRdcVSog','w8otChNdOG','xCowswNdV8kHxKxdTfPnqSkJWPO','rrj+lsFdUufrW4BdSCo1W5PzcSoFhSkKwMC','t0D0ExS','W5pcRWaCW6av','v3xcIJ7dNq','sGbCE8ksbCkaWRxcOSoxu8k4Bq','W6ldJ8opW7OIhc4','W4b1mSo2rCo6p8oxzW48tmosW6DHma','wrxcUutcLCkppCkM','W5G1t8k8rSkEcmolWRtdNg0wgNi','imopoa','kCosW6zI','W4/dRce0WQKQwW','WQhcRw9yW7S'],...(function(){return[...['sNbY','dmoTBhqV','vuPjCIldMa','f8oeW5Hmda','vLGxz8oM','W4/cO8kgW7BdN0tdJmktnx7dQvqLW5qLuWNdMCosEGj7','WO9VW59eCgGZW5L2sSk4WQugW7pdOSofDfdcT8k2lCkVzmoIWP/cOqyAWPSrDmohWP9aW7rEEZaJWOS','W4FcIrmGW6S','WRGxkfbzsCo5lfXR','WRtcImkTWQutWRxdKwjdAf1gWPtdLmoRW53cUCoPksSGW7xdPmopwSo6geZdLryV','W55VW7W','amokrmoeW6ldS8ow','4P6HW47MNlpNN5JORzxMSO/dJa','W4NdKSom','WPRcS8k+','dv85hxjl','qHRcTeZcJ8kg','W78CC8kpqq','4P+KW7tKUjdMLAdMIPVLP7pMRQdML5hLTRVNLjVLRii','WPO7nmoPF8o+i8kpyqiQrCoB','W4ZdQceD','nW5SiW','W6/dTcm','x0P/svyQi8ofWRxdNu3cLSoK','W6e7W4FdI8oI','W5xdKSodWR4U','f1VdVYKTnq','W54MW7LHW73dTuZcNmoaqGjtCSose2u4WQ7cQgldPSk/FW','AXjkySkpc8kyWQi','4P28w+IhGoACHoI8SoIIP+MaN+wlPEs6S+MxO+IUGYS','WPVcUCkQwx8SWQ8','W5tcNamw','W6ldHCohWOmI','srHNAmku','WRCyW7tdNSoXWRNdSq','W7DJdCkmWP4WdmkMiCkFWOJcMblcLSkaxdT0WQi','A8ooD1ldNa','jmoUveSrka','jHD2pbdcRmo/WOu','u8oqr1ddQCk0','v0SrAq','E1KbACoh','WOJcNgTWW5hcQG','W5S3W75IWQBcVqy','WO7cL8kAFvq','wrxcVK3cMa','BMXXW5zk','ymkJoqPiDHfkh8kZWRRcKuy','WP/cK8k3WQefW6hcIMb7FLLx','W50HW51wWQy','W7PVdCkrWO0RaCkmlmknWRNcIXVcHa','wxfYzMG','W5NdMJ02W44','W5GEhbdcHq','xWjBECk3a8kbWQ7cPmobwCk6BqtdGmohleGM','WRX4WQC7W63dSeNLV73LPBVJGlVKUOdKUklOTBRLJy8','W7BdQcexF21ezWy','WOdcNx4','4P+6W73MNzJOGQZMR7dNOjZLPllNKPT5','WQtORktMSjlLKO/LUjlcTG','W7pcUZuNW6RdPq/dOCkWrq','W5L5d8kwWRi','gSohuSosW6/dP8o/actcGSoLiIe','eLFdSsG/jSoFW57dKxuPW51oECkOWO1MiCoA','jt9njYG','WQKFeW','WQ/cImk4WQevW7W','rCosoG','svjZaLD3bCooW6/dIKFcIq','FZK6avb9','y0e3yNtdRmk8WOBcSfHyWPL5','W4fLW6/cJNHFW5GyBW','WOyQjW','W5zHW6/cRa','WRdcK8k+','W6dcSIqJ','iCotoa','zteQavD4W4/dIq','WOO7a8kpBIHii8oJxq','W6fzk0a','W6ZcLCkdWRddUW','W7Pxjq','gKG7pgbpEq','W5mGW79CWRtcVq','xCoClL16WRarW6zEyeVdSSos','Bw/cKHRdMdKXWQ/cKW','W7pcGCk8WRRdLghcV8kAeNe','W7CdW7ZdUSoPWPFdI8otWPW','WOW1kmoUsCo3iG','WO45jCkJBIq','kSkmr8kREvhcLq','x8oqxNBdLmkYsMm','WQ7cPvyRtG','jSkAr8kXF1G','WOhcI3DAW5BcPq','zISU','peG2lmo1hCoBk8oeW6moWPpcSW','h2qdig0','W5avcqJcUSoT'],...(function(){return['BWPvuSkY','WOvqW4XiwG','W4mghGJcO8o7WRFcR39q','W4tcU8k9','nHDXnG','WPRcUefhW7q','kmobk8k4','W7fDnNH1qCo/kwz6h8oNW6vB','fNGqWQ
// 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