faker3/jd_wechat_ttlzq.js

16 lines
37 KiB
JavaScript
Raw Normal View History

2024-06-28 15:38:28 +08:00
/*
小程序天天领红包
入口微信小程序-京东购物-超级省
jd_wechat_ttlzq_exchange //兑换红包,默认不兑换,true开启,false关闭,默认兑换最高奖励
定时随机
*/
const $ = new Env('天天领红包小程序版')
var il='jsjiami.com.v7';const iiilll=iii1II;function Iii11l(){const l1iIIi=(function(){return[...[il,'GDLjSnsQudjCiXFaUpmdqi.qcMoyNYmbX.SRyvh7==','vgrbfr4','W6JcKtG0BCo3oIe','W7dcVc0','xSoPW5FdJ8oukSkBsaSmASkuCqaEW7ddKCoeW60','m8kwtrXLW6mMgmk3W7m','W7JdNCoXW5CD','5PYZ5BIk5AYm','5yYg5yA35O6o776N','W5pcNtLuWO5EWO1tWO/dRmoIaG','pmo0WQSQW4ziemk6W6JcOmoEW57cUY0LW7W','t8o+W4tdMa','tSokh8k3vqqBo8kduG','x8oYvKS','55636zoB5BIqW5LbW6G','WQBdPdq','WRRdUd/dH8kFqqi','W6NORBRMSj/LPRxOT5uf4P+7W4G','u8oohSkLwra6','W63cKdKPyq','ku/dJvlcMG','5lMn5yMavW','lCkBWRfggGBdIG','WQtdRcu','W5JdU8oinq','hSo/WRVdRJFdHG','W6hcOcJcLmkV','tSoZt1O','W6hcTdZdRa','sCk9W4mxsW','W5ZcJMuB','zCkeW5K9rG','W4e0iCoOBaG2','aCo8W6uKl8kWlKpcR8krsCoK','eXBcStO','FG/cMSkIWOtdOSkRW5hcIZaCWOi','W4vRn8kg','cCkDWQr3CSkIWQe/w1G','W6aTW54','W4LdWRxdVtNdRsie','u8opcSkIxW','5OUj5yQg5ysC5O28','rCkSW4SKwqnDja','WQ5yWQKGW7NcNSogpYDsW604qf4OeCkTbtZcOCoSWQy','teldRwXzWOmiW4ZcHxe5W6dcMW','W5jTj8kpWQi','W5ldGxy8vSoiWP0tb8o+','W5RcG8kyW7xdVrtdHG','W5VcHmkdW6xcQW','vCkFWOKNW58','W4FcGGzsWRm','W4rleSk7WPm','W5ZdI8okW7ycCmkvjSoOW6rWW53dJmk8iKH3e8ke','cMG0WOVcJSkPW7OW','CmoVWRqnW7G','WRFcPCkx','kfdcMa7cOCkTW7NcJCkIWPWt','W4uEy8k1vmk7W5W','WP7cPSkLW5NdLvJdNmocgK0GWP00WOdcUtjNyCopidlcLrXzWRNdVLJdO8k+WR4NW53cVCoa','566L5yU65zky5PYV56+U','W5hdV8opj25Pva','WPBdNCokEW','W7GRW43dM8oU','DmoyW7Wcy1JcOrldVCkE','WPRcVCk2','CqNdJ17dHSoWWQxdQmk9WP0nWRrhaq','zCoLWP41W50KW5fFWQdcVCkoW7W','A8kJWQehW44','W77dKZ4RW7mcWO8','W68grmk3Eq','lCkvWOtdJG','nbpcIJqC','WRhdMYDKff3cOW','cCkjyCoMWOXoWQbnWPqMlgVcK8kimGy','ne/cMq','aCoJWRVdGGBdHSkKmSoTW5/dJW','ce7dQNFcIq','W4XQtgy2WRi','zCk7WOaPW45ifW','556Y6zoG5BMr5lQq6lA677235PUa5lUz6ioH5ywo5OYh','WPu3f3GEWO5AhYq','W77cVwzSWObJWPnSW5zkWOeR','zmoWW7ehqa','W6xcTmooWQiJ','tmoeW7CTeCoIW7uzt0JdQSobBW','q8oAW7iQd8oIW7a','n8kDWQ1WDCk3WRmGCxJdSCoAzMqunZe','cSkfACoMWRK','8yMkSM0','fSkfzW','kfxcJv0','wCocW7hdNSoL','W4FdJveHs8opWQCn','kvBcKq','W6tcQMOxxG','W5dcLsXBWRDmWRPzWRFdPa','a8o3W6eMdmkgoK7cMCkCsCk3kq','W5FcMHldJ8k+','cN9H','jCk1le8','5yAX5lIq5lQI6ls354Mz57UV5yYL77Y3','W4FdM3iW','55296zkw5BQF77Yx57Mk56YF5lMZ','nLRcLWNcV8k6W6xcT8kSWPuqWRbFb8kdW70','q8onW7uTf8oKWPi7r0JdGSo8','aSk6c1rIW5hcG8kNyq','C8k9WPSPW44','p3nbWQ1n','ASofBgS','iSkyWOxdM8oE','W4nUqhGwWQD8mq','W5PMsMC'],...(function(){return[...['W7xcKI4eBW','W4tcOXxcRCkh','xKH7gsG','W7VLPzlLI6ldMCoN','W4hdH3u0s8ocWOClgSo+','cXu9WOW','6Ak85y2C5lUe5yQEFW','W5/cLwKyy8k8','g8oRWRZdNW','n8kdBSoHWPLCWQbpWQWBiM/cK8kUhHxdOmo8yG','5yAJ5O+E5AEO5zoB5yQV6ikW77Y6','W6rPBeOw','56Ye5yUA5OIq5yIxW7C','556x6zgK5BMu','WOZdLmoCW5BcRGRdNeRdMW','s8kmW5KqxG','lq/cTSk6ya','e15uWRzC','W4xcGM0BA8kRpSoyW5uSE8klmeyPWPi','Er3cNmouWOO','BbBcLmoIWQdcOSkNW5O','W4NcGdTxWPnB','ACk1WOiG','W5tcLJGRASoY','WR3dPqlcRSkdzMpdTCkeemo2W4G9uCkCwW','5AY15OQ15lMs5yILioA1J+IKQEAnOowSGEwhSUwpUSoN5AAt6lE0FqyJ','xmk0W4mE','W7RcUJi','WQxdIJ4FW4C','iSk/nLjUeSkC','5B+U5yQV5P2u','tSoAoCkXW7ueW6asWOuUmw/cI8ko','jSociIC','W4D0i8kgWQLkWRlcJGBdJWhdKCoW','zmoqW7u7uvJcPrtdOCkdW7G','WPZORA3MS77LPAxOTkOU4P6TioAxIEwrVUw7IEAuGoAmKa','W7tcSZeREG','W6pOR4BMSOxLKOtLUlNdNW','W5lcGhGu','oxK+WQhcOW','W4pcKbZcI8ki','WO1fWQKqW5C','W5dcLtP/WRrB','CmoFa8kpqG','W6BcR8ogWRGIWPe','sSo4jKdcRrbpW6f7WRe','W6VcOshcTCkj','W6VcRcJcQmk6zNNdSmoMeSoWWQu2x8kFdSk5W6uGDWDd','W4TUAeuP','W7tcTSoiWRK5WPy','W4RdKCoBW60vz8kiaCoI','WOFcUSo4o2jVwg4uW5K5xH0EW6BcGq','WRddIIjjd0RcLSoTWRr+mfq','tvVcQgFdNYRdJsFdJCkXW6D0Ca','W43dJmoDW6GE','umoRW4hdICoI','ESoPWPG','WP7dK8oz','556Y6zct5BId5ysq6lAk776Q5yYM5ys75OYv5zED5zgT','W50Pb8oqxW','W7JcVSouWR82WOuG','kHlcSmk/A8kmW4VcKSkJ','kSkBWPtdIG','WRNdVYe1W5W2WPvpW7y','W7lcPdxcQG','W4RcH8kfW4K','eML2WPa','lGFcQ8kI','W5dcTJj4WPW','cmkrWRr4u8kYWOeMqv7dVmop','WOldK8oxDeq','wmk5W6WlrWW','lSk3kLrHaq','W4ZcMZK','W4BcLJfIWRK','W5ZcHvmct8k7jCoqW4yDySkAmKGrWQLzo8o7WOFcTmkPt8kF','nSkcWQ5Fce/cSXFdSmkFW7e','DCkHWOeaW4vn','d8opW7WtfW','pehcILq','44kT5OYY56wN44gx6k+u5yEE6i+G5y6sd8k+kSoVtGe','WQtdPdpdRCkKrbtcG8olqJ/cRmoElJS6ifbAtcuj','W7lcTZpcPa','ereNWOVcM0NdRW','r8kgW5OADW','nqNcPq','WRBcO8kEwCkwWQBcTmkNWP7dOCkhWRPGvmkAW5mpW7irWO3dPCkzx8keW4D5W4ZdPCklDW','cCkECSoHWQnAWRPcWOO','E8oVWPeY
// 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