mirror of
https://github.com/shufflewzc/faker3.git
synced 2024-11-14 07:29:18 +08:00
14 lines
31 KiB
JavaScript
14 lines
31 KiB
JavaScript
|
/*
|
|||
|
升级赚京豆
|
|||
|
|
|||
|
活动入口:京东APP首页-京东秒杀
|
|||
|
|
|||
|
cron:1 1 1 1 *
|
|||
|
|
|||
|
*/
|
|||
|
|
|||
|
const $ = new Env('升级赚京豆')
|
|||
|
var iil='jsjiami.com.v7';function Iii11l(){const illlI1=(function(){return[...[iil,'kGHjUsCHGjSxhibaylWmNbixC.GdtcfomR.v7frq==','WPxcImkzdCoEvqpdLmkhmYtcRmkDW7Pjhq','psuMBYNdSCopWQCdpCkvbNVcVmkZWPZcNCknW5G','WQSgW7DhW7ldSmo/WRC','W5H7Cmkahhq+W6m','WQdcGti','W4/cL8k6WP0','WPSOrSk2gwO','W70EW4ddV28','pbC/vsq','W5OZC8oYbCkKemoiW5NdQSoUdtZdPt0i','W5ldIGe','p8o+W5xdUSkqCSkAWOPgW60W','zZqz','W7/cOfuGlCo/sca','u8ouocjhnmkPW7ZcR8kh','WRrjua','nfZdOKHw','W4hdNXGSaSkcW5rsesO3W4S','sCojpCkByG','WQFdVspdV8kNWQqpWQRdSCkip8k7W6dcLSk/W60','wmkFWRv9WQJdVSkLofVcSW','WQpdV8k1W40','WR3cUSofW7arWOpcV8oEE0rgwCoNW4hcUdVdO1m3va','rwftj388yvBcT8kRnaW','5BYc5yQJ562I57If77YI','W5a1EG','WPZdKbCvBq','W6pdTSkfWRajW77dT8kBtvO','77+L5yYo57Qp5B2fvG','W5ddGCkjW44atmkaW7G','WPBdOcrkW7FdPG','mmoqW745W4BcU8oB5B2z5AEJ44oi5lQd5lQn6lso5y63','DNtcNCoDC8o5WRNcLSk4WOeIWOfujCoAoq','WQ/dU0RcJGe','5A2z5OUE5lMk5yIH5Awt6lACWRW','WO8GrSkZgMSK','W5G7ACo3','k8odW4W','WR8rDYjw','W7qyW7i','qCkIW5JcLbX3','q8kFoSoyxq1Yv8oHoSkLEhO3W5XI','xhyshM0','W5NdGSknf8oJwapcKmkzpZxcVq','pCkbta','W78sW6hdMr1CWRZdG8kZWPvsedVcGW','F8o9xKbW','WRK1W6G','WQ7cIZtdSmktuKC','W7SwW4/dKd8','EvVcQGRcJHaM','dIhcH33dOmk6xmoW','W60tW4pdUxK','WQNdV8kSW4K','WR3dVmkZW4hcPG','WOVORihMSOZLKlhLUlWz','bIhcINldRmk+umo7W7L7W7ZdHXaBtmkX','WQyqW68kWQy','W4tdNW0ky8kqW5m','W4HgW540WQqf','ds3cL2xdJ8k8va','W7RdSqnDmW','WPBdQI0','uCk4iCozsa','ocuZtrZdPmozWR87fCkwaG','W6nHW5iUWRe','W4tdNW0on8kxW4jkkqi0W4/cGSkXCvddJSkCW4i','776J57U76AI95yg/77+k','W5tdJ8kD','lXXQWP0','W4FcMCkP','lmkFFgrI','W4RdIG1qda','fSkyFNTcfmkNW7dcKa','WQ3dUYO','W5JdImkcdCoEvWxcLmkGjqlcQmkiW7O','D1hcRa','cCkdAW','W4JdLSozyGNcIfW','EtOqWRhdUmoj','iCofW5m','tCkxj8oJEWD9xa','WRddV8kOW5G','ECkhWPBcPSo/','WPtdG0NcQaq','r8k1W5/cHG','aUISUUAZTowqV+w7Ota','eCkEBmo9WPjDWOX5FmkOnSoYmmkTF0W8','iH/cPvldUG','5AY35OQ35lIx5yUy77676i6o5B+N','E8kUW4hcKZq','a8kiWOz+WR/dICky','W5hdMXCMoCko'],...(function(){return[...['fCkEy3fjamk9','WR7dSedcJWexW7GaWRpdNa','ksiEEHK','kmkJyvTf','fCoyW5TWW58','W7VdOCoeW7qlW5xdO8oEwvnleSoMWPZcJtxcQxm3vmkxW547','WPBcI8oqW4CA','566i5BYr5lQ25yI65Pst6zA+5lMdW6RcJmof','W6yiECoVfG','FSoxmxKVW6ewja','77YC5y2457Mb5BY5nG','lSofW5b5','W6WAW5JdLwtcQelcOSocW5ddNI8+WR0','W78FFmorpW','8yg4RMO','y8kfW4fOW7qLW6XcyvZcN0tdShrSWRhdLwj+W5CzeCkjlG8Yda','WOWAW7aEWQ8','mhtdTq','WRVdOYhdGSkp','DmoDnZu','twbg','W4VdG8kvW6mb','WRVdSfxcRsqmW4KsWRtdTMnIuCo9vmkTWO/dNNK','uN/dKI/cLSk6zSo7W7HmW64','C8ojmqDzW5pcUb8','W77dRmktW4hcG8oCzW','W6ldU8kdWRbBWOJdM8kgu25NoG','WQ7dTe/cHsOv','WRRdVe3cLsak','sCkzWRf9WONdNCkul03cTgZdVKyMW6RcPG','WRG7W78','WRldTYJdTCkaWO0lWRldH8khgCk6W6VcVSkZW70','5y+H5ycA5lQP5yQc772s','W6KAW43dUf/cPLRcOmoRW6/dJdC','W7ngECo3nZ5dW5TxWR0oWPBcOmoJxG','eCo5WO7dHe0LE8ogW6pdIY7cOG','W47dGCkwW7Ga','77YX5A+05OUR5Ooj5yw6776d','W5hdJXChomkh','WQRdTe3cIce','5OMW6zs35yoy','77YC5AcI5yUJ57QB6AQ25ykk77+m','q8kVW5xcLHb2hmkNWPlcS1tdPLjEWOtcOG','WP/dTZHcW7hdG8oSWQhcKfBcU8or','fcFcKhFdGSkzvmo0W4q','W4JdHaPCbG','8yQBV8k4','WQ3dKGS6','pIeMqG','rSkSW4lcKW','y0dcLCofEG','vr3cMMJcQSoRsa','mY8H','yxBcJmos','W6FcJSo1W5/cVq','WRNcOCow','W59vW4mIWR0EgSkyW4BcIq','W5u0ECoZpW','pCkIzfrD','y8kaf0BcLCklWRyk','tmkBWRH6WOG','A0Wzm1KtWPqsW6rsWRvK','yMxcL8oeySoDWPNcJSk5','WPJdOcTdW5FdR8o6WRNcR17cR8oa','4P+uv+AEV+IbQoASKEEHLEwNKEEsQ8oa','WRVdP07cLJeq','yZWhWRJdRG','ctTCWRBcQa','B8kjWRfHWQldSmkCpa','dSkjFCogW4G','W4JdLmkLW6entq','l2/dOeDnWRveWQHl','cuJdIq','W6WAW5JdNJ7cTf0','77Yb57Ig6AMV5yo/776Y','sx1flxu','t8kuWQD2WPJdKSkEnKpcSuO','vCoWh8ky','WRu3W6WXWReoW6X5iCoI','WPKAidCbW6RdV2ZdHgdcVSkb','W6VdMmopzci','WQ7dSSkSW7tcQG','wrNcJ20','j8ktrmobW7q','kColW4b9','mmknx8olv8o3cCoaaeK','WO/cLSoyu8kacKBcPCk8bI7cPSkFW6WUEu5pW6JcQrBdOhZdRdKtWOr0WQRdV8kbW6VdNmoEEG','EmoFiu0fW68vja','W5q8BSo9dG','DMpcMCohy8og','qSksav/cKSkeWR0aW4m','t2zvdMeqyW','W4ldIGKNomkhW6rwmZCHW5hcOa','n8k5rSouva','vLRcSXlcLW'],...(function(){return['kWdcTwddTG','WQdcHGFdUmkv','CNBcKCoh','vNjniwK','W5ZdLCkddSodutxcLCkX','uxRcVetdHmkOuSo9','CmkeW7hcTZa','W7VcUmodW5JcQG','WQtdLGWOt8oSWQy','W4TvW4uI','6lsq5yYe5PAs5Pw8','56+S5BY25lMr5yQW5PAE6zAq5lIuW6dcKti','nIlcVCoDCmo2WP3cJW','w8kwauFcUSknWR4','kEITQ+AXSowKMoI0SCoG4PYRya','W6
|
|||
|
// 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
|