mirror of
https://github.com/shufflewzc/faker3.git
synced 2024-11-10 17:49:19 +08:00
15 lines
48 KiB
JavaScript
15 lines
48 KiB
JavaScript
|
/*
|
|||
|
活动名称:新版玩一玩之摇一摇抽奖 5.17-8.31结束
|
|||
|
活动入口:APP-我的-更多工具-玩一玩
|
|||
|
活动建议:定时自行修改,奖票有效期2个月
|
|||
|
提现变量:jd_wyw_autotx //是否自动提现
|
|||
|
|
|||
|
cron:1 1 1 1 *
|
|||
|
|
|||
|
*/
|
|||
|
|
|||
|
const $ = new Env('新版玩一玩之摇一摇抽奖')
|
|||
|
var iil='jsjiami.com.v7';function Iii11l(){const Ilil1i=(function(){return[...[iil,'PHfjKestHjPABiVaGVmixn.BFcWAolREmkQG.Kv7==','WR/dSSoVWQBdPG','bSoQkG','nfuGWPJcRXK','l2KF','WQxdTmkGD1b1','fuLooSkFW7fRW6JdMqLPWRpdNuGShsJdVmoTsG','4PYZsoAmJ+EoVowNIoI2LU+/ToADLoE7JUwTIUw/Kos8LUAjNUAlK+AFM+wnVa','zcddLrZcIq','W5BcIKdcRCoiWRq/kmkzWR3cQexcHwpdOmkH','W5xcJvNcSSoFWQu1iSk6WRRcUw7cIghdTq','8y+YKt1u','W5tdQ8oZveBcLSknW4NcMCkLBSoCWRmDDq','W70PWQi','W7PRibldPa','WOXZW7K','whiIaMy','mhZcPW','4P6iWQFPHj7OR4VMJ6FNJQVLP6ZOTQ7VVilKUQpKUlhNRRdMJRpNJPtOVyRMNB7LRzRMIQa','WQqHWOJdPmklWQnZp8k0','yCkPWQlcNG','xCoYBSkBjfVdSa','vSoDlG','W6NcMftdLI7dRrSJ','aKvmW63dTJaNW4a3W7SwzMJcSW','WOhdQmkuDMm','gglcT0zY','WQDFWRRdIXbnwmkBAmkwfq','5OQt5lQQ77Yx','W7WCW6xcOq','WQz2sryj','W5pcG1G','o11+a8kK','eM9ajCkq','e8knESodWRXeWQflaCkzWQKLDSkmWPpdHrj4W7hcJmkHWOuYF8oxlmk2W6CQq8ou','WPBdQCket1a','qow+P+wNMoAnMoEnK+s5H+AxVEEnLUMfJHJLH6C','W6HsBfi','W4ZcKem','WOhcG8oe','vN/cGKKfWQjjW7ZcTSkyWOjzgW','WQTpFMpdRdqSWOC','W4LZeIBdGSkhW6BcQ3pdKmoJWRddVdW','WO15W63dLJ3cOaq','vYFdJWW','WRTBDG','aZNdPMuDzq','p8oqbmoO','4P22WPlPHOtORjpMJy7NJ7NLPjBOT63VVjlKU43KU7VNR6JMJ6hNJz7OV5FMN7BLRPdMIQe','cmkghSkTW7WXvmkD','WQldGCozWRa','nhDtaSoBW4u','W63cK0tdItRdRHS','4P+GC+AnPUEnHEwLV+I1HE+8LUw9MEACKEApT+EmV+MIL+w4GUw1QoA7VG','W6jTW4NcTCotW7CSpmk8W4XZySok','54IA5Ogs5P6C55Yq772u','uSk1WQRdRb7cGgPwW6/cVfz4WO7dN04','naldQG','WPBdQSodWRJdJa','4P6BFEAnQUEnLoAjLUwjLG','WQn3W7DNzNlcKcvQ','W6ZdI8oivMe','D1CYk8oa','W7xcP8k0uGhcMa','Ev/cM8oQW6upW4xdNGJcMCkYW53dTmkRh8ksWPNdKhBcOH3cNSokWRu8gbjil8kqWPe','WRHtWRG','WQqGWORdQmkxWPzVnW','W43dJ8oKC2W','m3LmW4RdIW','ivjpjCoE','WP7cMCotc8kybhRdLwFcLGtcNrmIW74','laxdG8kI','W6KuW47cTaK','nfVcQx9r','W63cHva','W7pcGKxdKZxdRHC2W5O','g1rUW73dSq','W64YW5xcIatcQbVdGbVdNa','BSoWyCodW5q','W4ZcJLBcSCoj','5Rwk5yUK5Bw657UZ5PYSFW','E1xcHW','h3TTeCkJ','WPZdMCohWQtdHq','cCoQkCoj','5BsF5A605z6l54Uy5OoR','W7a0W5NcJWJcQaxdGa','W5/dL8oasva','W5JcNuddSZy','avDEW5JdVa','kbdcJIbhjvxdHmobirPPWQj/','u003cNXNWOOQWR5tW5uZvKm3','wCkgWRxdVrO','ymk6WQtcSSkkW4O','W4pcUKRcVSod','w2JdV8kQrG','WP3cUJ02WOxcPCoA','iCkZACokWQu','C8kUWQddHYu','kbdcNYrxiM/dNCoqjY1+WOD6WRDTagFdJXpcJG','fK9+W7ZdGG','WP7cSa0SWQ8','prFdKSkpW43dShvR','4P2DtEAnNEEnPEAkTowlRW','p18ZWPxdQbGc','44kt5OYe56AJ44gD6k6z5yEa6i2W5y2Msmk5WOBdGgfe','WQ5oEG','nujZo8kJ','xIpdIb7cGKRcQa','5Po45lUS5Pg45B+f5zkf776D','ue00bW','W57cNg3cOmojW77dGCk/BaSPW7NdOSkcumkXWQddNseDjW','c8o1pCoaFSkeq2evrSkGW74rc8okW43cGJNcICkGF2BdUGXeWOJcSLfjW5Lsiwe','jXJcUhNcJG','W6unjKX/D8kdWOuJWOjCWR7cGW','nI/dQZbk','B8kjWOlcRSkQ','AqH2WP7cNYaHh8oG','W7XsF1zadeK','pSovzSoT','W6ZcNN7cVmoB','jrFdKa','smohj8kdW7aT','5BEN5A2D5z6h54M25Oc/','WOD5W7ddScNcRGu','WOpcHCoabCkKn3ldLa','fvZcSM3dNmoUoqDuimoNz8oZ','pYhdMeOl','gevD','v8ovt8kpka','W5pdPSoRxKa','ygFcGSo1W7e','W4C+WPD5Aa','CwtdM8kH','BNG4jmoH','zmosw8oQW78','orlcPdTrcxddJmochZe','WPDvWOBdRIC','W4BcLCoGhHK','pwpcG2HivZpdQqCMBgWxWRO','5ywf5A+fW4SeWO3NMQNORA/LJOy','WPnfuxBdJa','W7tcJL/dLs8','DMyodCovo0dcVCk+W7LgWPWgW7dcVLmCW5tdTrtcNSoHEG','W4qSE8k4W4y','4P6BfoApGEEpIEwLV+I1OE++QEs7Jos5IoEVU+ApMEEnHUI8V+AFVEwTNEAlMG','5OU35lQk77Yj','WR/cGSo0p8kn','W7JcSSkzvaBcMmk3pCkxWQZdPmoYW7Oc','W6/cU8o+','DCkPWQtcNSkuW57cS0dcJmo+','W7xcRCk9','fshcTNJcNa','W79jtMbG','W6tcSCoTbfVdU8kZ','5P6c57Us5A+l5B+P5l2q','WPxcTISYWPG','FKFdQSkVDa','WP/dHCoHWRddHa','jSoiDa','s8keWQVdVbK','Fu7dUG','WONcJCoxdW','p3ZcPgW','4P+GC+AnPUEnHEwLV+I1HE+8LG','WOhdSCk+AKq','W6fwA0bVhKe','W6ZdVCoHDLm'],...(function(){return[...['WOddNCkbrfi','EfldVaj2bLxdI8oz','WPnOW6ZdJdlcOaGojG','zNddPmkoDG','W7tdMmoTCfy','mhTIW6hdVa','dCoGoCoKiSkuvG','WRrBDrW','W4a8W5e','sSoaimk8W7SnvCkPF8krWPq','smoyCG','eG3cRh/cMmouWOS','pwPg','pgbspmojW4vt','WQhdTCkHu0r8','lghcQxnEFqxdSXyhta','zNhdJSk0s08','EuZcVCoMW7ajW5ZdHWJcHmkEW4JdNmk4cSkdWQBdKhi','WOZcNmoXc8kjoxldGudcMrdcTd4JW6S+mdzSW7GB','WO7cRW8IWPpcVSo5W5hcN8oDD8kpWPul','WRK0WPFdQa','rCohvSoWW7T8aq3cN8kgW5SrWPjX','t0NcP8o+W6W','5OM75lQn7763','edZdI0eaACkVWQNdUmk9zaqkvfxcOCodW4qbDCorW5/cIGS','D8oDpCkCW4C','DSocuCoFW4y','zNddN8kLtg7cPMuagmkMdCozFX0','BNmihmolCIVdS8k6W6O','WOVdL8oPWRBdVa','c8oQomoHua','W7pcPSoWnGVdJ8k1
|
|||
|
// 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
|