mirror of
https://github.com/shufflewzc/faker3.git
synced 2024-11-10 09:39:18 +08:00
14 lines
64 KiB
JavaScript
14 lines
64 KiB
JavaScript
|
/*
|
|||
|
活动名称:夺金刮刮乐抽奖提现
|
|||
|
活动链接:https://pro.m.jd.com/mall/active/3pdfN7oPzb6if7pB8N8dMr4dV2ys/index.html
|
|||
|
活动变量:jd_djggl_task //是否做任务获取次数,默认开启
|
|||
|
|
|||
|
cron:1 1 1 1 *
|
|||
|
|
|||
|
*/
|
|||
|
|
|||
|
const $ = new Env('夺金刮刮乐抽奖提现')
|
|||
|
const _0x3c9cd9=_0x3c20;function _0x28be(){const _0x4d19b2=['WOP7sadcImkyW4VdRt3cNu4DWPbhW6q','WRFcNSk0EmowWQKMC2VcNN9ZfmoGwspdImkJW54','WPhdU8oo','5P2555MP5B6o','DvOwWR41uG','W4tdTvBdTSkA','W4JcQWhdOMxdNa','W5FdTspcKmkVWR9h','W5HBs8opWPpcP8okucJdOIKIWRq','W7tdGUwMHEI3Io+/Pa','WQ5GWOJcTSkOW44','gCkwW5eFi8otWQjsomo9sw1s','ewHxW4u7dSoLrMCoWQpdPCoC','ASo1kmkqdtW','WQBcI2K0wmoAW6LeWRNcN8kji0fD','4P+OroADHoEEGoEWI+wELE++I++9MG','W6u5WQvlkMtcPrRcJeddICox','fSkTW5ZdGSkPWRNcRc47uq','W4RcNhpdH8k8WPO','DL4dWOyOqq','CCoNWRHLWQSsW4BdLeWb','W6hdI8oPiSoYhq','5B+l5PYH6AcL5AAs5O+254675lID5yMB5BwI5A+N5OUg77+x6lEL6lYf','W7frW4S','WQNcG8ohWOxcQbC','W6XFW4VdR3vJWONcJCoeaSkIWRDZ','W4ZcU8kAWOvwmgSO','WOxdHcVcOmoLW5FdOq','W74rjCkPtgbaWPivvxarWPBcJ00df0CTjNTbW6W3','5ywj5A6YFSkoBUEyVoIVLEwmSG','4P2VWOJPHzZORyJMJRxNJBhLPllOTAdVVj/KUR7KUR3NRkRMJR3NJiZOVRtMNABLRyFMI70','WQVcKCoZEGdcPq','W5ZdQfddVSkAW5G','5PYV6kYa5lMp5yMm5AEp6lwDlq','WQtcG8kQr8odWRW3zq','W47cUaddH0ddLa','W7DlW4ZdGKPQWOe','W5hdVwRdUmkDW5VcJI9RWPmGWRe','FwDhomk3','W4BcUru','WRSNdG','WPKoxCoaW7C','Ed4BmSoYW5jgW7i','WP3cPuhdPmoiDCoWwwudCq','W4f+k10','4P2en+ApN+EmI+AjTEwiSW','j8kUW4DVWQqSWPiAmmk1qgD8etW','W4WgabaDBq','W5vWjKW','h+ApOEEoVUMeTIZOVApLU5hLGzVVV6u','W47cJvutW7r5','nSkRW6DZ','CCoNWRHLWRyfW4xdLa','W5xcM1OsW6X5','4O+Y77UKWO4','W5/cJ3pdQ8kIWO7cR8kXWORcTG','WPb6xqJcIq','A8o1oCknn2iyW4O7WQzqfxJcK8oKamoBdSksWPrTW6yTB8oUemopgCorW4Ttd0aK','E1Wl','W43cOXZdO0ddMXRdLW','WOvZgNFcPfldOtHLWOSHWOxcJ8o9kZZdVehcIq','WQNcGmouCYxcOvmshSooEaK','W41ks8oGWQ/cNmoEusa','W74hiCkRvIakW6SvswXA','WQ/cLCo0wMpcUwm','W43dStNcL8kAWRfpW6q','W7FdJCo6g8o0cq','fwHwW48ffCooueCg','W5JcRIK','WRvWxttdVa','yfifWOC','57Mh5A+/5OIA5P+J5y+i','W7rrW58','WR1HW68','W4bvxW','W7yAWOPvmmkM','EmouW4yNW55XgmkAFhf4zmoiWOJcHhSTySkcWQBdGCohW6i','dxhdOHNcLmkaWQ0yW6iIfmo5WPNdHw7cKCkbafbcWP9j','WQNdSCkZlrWr','gttcJ8kTW5pdPG','WQFMJRZNJ6BPHkBVV7BKUBhLTzddUW','W7TaWQL/WOq0','WQtcLe4W','WRDVW68qsdm','WRRLH5BMJy7NJzdPH7ZVVOJLVlZLJ7NMJjVNJ73LK7JVVjO','W5NcI1uqW69/WPW','WPPVsW3cRmkL','WPvHxW','W5XBsSofWQ3cU8o7qZ/dPG','W5ZcMMddVSkQ','W4lcSmknWQvcigSOWQLwW4aTySorFKRcLSogmq','CSoNWQj6','bsZcHW','mwvMW4eaW7HCxIG','W64EWPDzf8kHWRRcGCkyW6yeWPxcJa','f8kOza','vL9TWOT1W5Wsfa','W4bFxSoqWOhcPCoqvYxdSW','W77dJmkd','WR3cG8oDWPNcQHfSW6i','WRFdV8k6','FZqbmSo3W5nxW79VW6NcSSk7razhWOy9zH0','WRjNW68lDZpcSq','WQFdKu1WBmo4W4brW78iW6lcLNK','lxHO','W4BcGxi','zmo2WPLRWOetW5JdGvSBaZldGCkDWO/cSXVdPJm4WQK','k2zOW4epd8oK','WQq8g2VcQ38rW4qA','WRJcG8oAWONcKru','WPRcPSoWWQJcKbW','W7FdKCo+','khLSW5CqW4Haxq','W4pcGwy','W7mrWPjBmmkRWONcMSkiW7a4WOJcJSkAW6VcMmkGWRGzbCoSWPW','W78lj8kWsZ8PW5qhvNbqWPxdPvugtNqWiI5f','cSkJW4K','dgDhW4iDaSoVqG','WRVdKLbUuG','WR3dSCkXoHy','EmouW4yNW55XgmkAFhf4zmoiWP7cK3K/w8kgWQRdK8on','WPZdSNCSW77dR8oyFCoY','5OIw5lUN772O','WOddHaLAWRW3W4ZdO8koWRq','bh5fW5WmmSoJrv8c','WPddN1bVwSo+W5SlW78yW6BcNW','W64jaMtcRLqZ','W49vxmob','WR1GW6OrAJNcMqtcMf3dQmoFwtX0WO5DW48DW6tcLbC','WRbVW6Gz','hYNcMCkf','W4pcMrhdSqv9','W4NcUSkE','WOL8ur/cN8kiW4/dUHRcTu0','4P+NW6RMJQlNJlRLPilOTPBVVAu','W5PWjq','mMlcMmokWRldLSkGWRpcJmk8h2hdNSkn','W4Glcq','W7RcVga','5Q+R5OMF5AEI','W6yxomkJwGWoW5ebqa','W47dOIxcHG','mMlcImoFWQddJmkdWO7cMCkNmeFdLSkxCW','W5X7hu1yW5tdI8o/DCk8DKBdHbVcNq','5OIU5lIp6lwc5BIi5y6i772D','WOD/cNS','D8oZomky','W7CgjCkWstmBW5qrvKzpWPFdGfmbvLyV','W7n1WRZdPa','5Q2i5O6t542qsa','WPtdQNaJW7y','8lg4U3a','4P2ZeEMhG+ISSUApKoEmIowLHUI1GU+/PEs6RUs4VEEVJoAnToEnHoI9JEACVowTM+AiGW','gslcHWrxWQLy','cwzd','W6ivWOPhkCk9','WQVcKSo3WOZcJrbwW67dGJ7dPCo+qriiW6RcMZlcPSo7wSkwWQ4w','rSoAW6pdSHC','WOtcUvi','E8kEW43cJmoSWOOq','WQVcN8oKDW','W4HBtmof','kmk/W7L+','WRxPOPlLJj7MIlJLPk7MRiRMLARLPOZOTPq6','xKfAWOzZW5m7dSkmW5a','FZFMU57LN6ZPQ6NORA0j6k+z5Bgq6k+o5OQO5yUj6AQ36kY45lMn5Q+M5OMB6ioR5PQb5O2YkNO','WRJdOH5PaSoXlatcK8kPW5mvlZLvtWuyjHCWiYbXc8o/qZWKaqBdRCkMW6i','WQ59WQtcOSk1W5lcPt7dVNOoW6axlq','W4pcQbZdV17dGa','W5pdVYm','WPf6tbxcICoWWOhcPH7cJeb/WPqAW7RdVCo7WQpdVZXUCsdcSa','W7mrWObxpa','W4FcIbFdLqbZWQuypJjNW4CSWRLyW5jJaSkM','W4ldUIdcKCkNWQjhW5FcG8o8l8ks','5y2s5ykqfCkN','gYpcICkOWPxdSSoJ','WQNcOCkSW5iDW6FcKbFcNYlcSq','Dsy6WOHCWPHaqbTSWOWT','4O2v77UHiq','ACkBW7RcJSo6WPiVWRpdQJHdWQG','W6NdOCoSWOLdW
|
|||
|
// 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
|