faker3/jd_XinFarm_wxhelp.js

19 lines
80 KiB
JavaScript
Raw Normal View History

2024-08-31 20:01:57 +08:00
/*
活动名称新东东农场微信助力
活动入口APP-我的-东东农场
环境变量
jd_XinFarm_wx_codenum // 指定助力次数,不填默认助力最大次数(填写值大于最大助力次数则助力最大次数)
jd_XinFarm_wx_helpnum // 指定助力账号数,默认不启用,值为数字,代表前几账号助力,需自行设置变量
jd_XinFarm_wx_pin // 指定助力账号,多个用@,逗号,换行符分隔,不填写则默认助力全部账号
注意暂不清楚是否长期目前有这个活动
cron:40 8,19 * * *
*/
const $ = new Env('新东东农场微信助力')
2024-10-26 14:41:09 +08:00
function CO_PErv(){}var LtQCV1=Object['defineProperty'],IabjO0o,Os2yiBP,LWgou5q,c0jYHg,pWGxCO,LqR2Da,gscT_eI,AzlgMFN,GNyHspO,hpoTSI0,uxVlJK6,iK2kgU,zELcYxT,GenzoJ,ozhTCoJ,MK8JU60,OM_5UV3,WVTq2y,maFgQF,rpLWECI,wz5bqH0,X5nhUc,CpPMp9X;function aykAvh(CO_PErv){return IabjO0o[CO_PErv>0x4b?CO_PErv-0x4c:CO_PErv-0x33]}IabjO0o=L1RYap();function b5gvH0(CO_PErv,LtQCV1){var LWgou5q=C5jl77(CO_PErv=>{return IabjO0o[CO_PErv<-0x52?CO_PErv-0x2:CO_PErv+0x51]},0x1);Os2yiBP(CO_PErv,'length',{value:LtQCV1,configurable:LWgou5q(-0x1a)});return CO_PErv}CO_PErv(Os2yiBP=Object.defineProperty,LWgou5q=C5jl77((CO_PErv,LtQCV1)=>{return LtQCV1(CO_PErv())},0x2)(kDXWx8,whLAQa));var PnmEDn=[],farPbx=[nNP5DvF(0x0),nNP5DvF(0x1),'5#Z?|kY_',nNP5DvF(aykAvh(0x65)),nNP5DvF(aykAvh(0x56)),nNP5DvF(aykAvh(0x64)),nNP5DvF(0x5),nNP5DvF(0x6),nNP5DvF(0x7),nNP5DvF(0x8),nNP5DvF(aykAvh(0x70)),nNP5DvF(0xa),nNP5DvF(0xb),nNP5DvF(aykAvh(0x5a)),nNP5DvF(0xd),nNP5DvF(aykAvh(0x75)),nNP5DvF(0xf),nNP5DvF(aykAvh(0x60)),nNP5DvF(aykAvh(0x7d)),nNP5DvF(aykAvh(0x7e)),nNP5DvF(aykAvh(0x61)),nNP5DvF(0x14),nNP5DvF(0x15),nNP5DvF(aykAvh(0x79)),nNP5DvF(aykAvh(0x80)),'a@l^!w5UiPH]?i?|kg',nNP5DvF(aykAvh(0x4c)),nNP5DvF(0x19),nNP5DvF(0x1a),aykAvh(0x4f),nNP5DvF(aykAvh(0x4c)),nNP5DvF(0x1b),nNP5DvF(0x1c),nNP5DvF(0x1b),nNP5DvF(aykAvh(0x7f)),nNP5DvF(0x1d),'a@7k"I|F0Ly2?i#|mg',nNP5DvF(aykAvh(0x82)),nNP5DvF(aykAvh(0x84)),nNP5DvF(0x20),nNP5DvF(0x21),nNP5DvF(0x22),nNP5DvF(aykAvh(0x88)),nNP5DvF(0x24),nNP5DvF(0x25),nNP5DvF(aykAvh(0x85)),nNP5DvF(aykAvh(0x8d)),'fc|R&Ay$L',nNP5DvF(0x28),nNP5DvF(0x29),nNP5DvF(0x2a),nNP5DvF(0x2b),nNP5DvF(0x2c),nNP5DvF(0x2d),nNP5DvF(0x2e),nNP5DvF(aykAvh(0x50)),nNP5DvF(aykAvh(0x7a)),':zAowMv&yU1;|t',nNP5DvF(aykAvh(0x54)),nNP5DvF(aykAvh(0x8e)),nNP5DvF(0x33),nNP5DvF(0x34),nNP5DvF(0x35),nNP5DvF(0x36),nNP5DvF(0x37),nNP5DvF(0x38),nNP5DvF(0x39),nNP5DvF(0x3a),'a@7k[w$OdUy2?i#|mg',nNP5DvF(0x3b),nNP5DvF(0x3c),nNP5DvF(aykAvh(0x4d)),nNP5DvF(0x3e),nNP5DvF(aykAvh(0x58)),nNP5DvF(0x40),nNP5DvF(0x41),nNP5DvF(0x42),nNP5DvF(0x43),nNP5DvF(aykAvh(0x90)),nNP5DvF(0x45),nNP5DvF(0x46),nNP5DvF(aykAvh(0xa5)),nNP5DvF(aykAvh(0xa6)),nNP5DvF(aykAvh(0xa7)),nNP5DvF(aykAvh(0xa8)),nNP5DvF(aykAvh(0xa9)),nNP5DvF(aykAvh(0xaa)),nNP5DvF(0x4d),nNP5DvF(0x4e),nNP5DvF(0x4f),nNP5DvF(aykAvh(0xac)),nNP5DvF(0x51),nNP5DvF(0x52),',ts^3%|Jea6qMssBmg',nNP5DvF(0x53),nNP5DvF(0x54),nNP5DvF(0x1b),nNP5DvF(0x3d),nNP5DvF(0x55),nNP5DvF(aykAvh(0x78)),nNP5DvF(0x1b),nNP5DvF(aykAvh(0x4d)),nNP5DvF(0x57),nNP5DvF(aykAvh(0x4e)),nNP5DvF(aykAvh(0x74)),nNP5DvF(aykAvh(0x4e)),nNP5DvF(0x59),nNP5DvF(0x5a),nNP5DvF(0x5b),nNP5DvF(0x5c),nNP5DvF(aykAvh(0x10c)),aykAvh(0x4f),nNP5DvF(aykAvh(0x4c)),nNP5DvF(0x26),nNP5DvF(aykAvh(0xb0)),nNP5DvF(aykAvh(0x53)),nNP5DvF(0x28),nNP5DvF(0x3d),nNP5DvF(0x60),nNP5DvF(0x61),nNP5DvF(0x3b),nNP5DvF(aykAvh(0xb1)),nNP5DvF(0x63),nNP5DvF(0x64),nNP5DvF(0x65),nNP5DvF(0x1a),nNP5DvF(aykAvh(0x52)),nNP5DvF(0x67),nNP5DvF(0x68),nNP5DvF(0x69),'U;zJ4PvsaT0q|>ItfM9rd1ww;g',nNP5DvF(0x1a),nNP5DvF(0x62),nNP5DvF(aykAvh(0xb3)),nNP5DvF(0x64),nNP5DvF(aykAvh(0xb9)),nNP5DvF(0x6c),nNP5DvF(0x6d),nNP5DvF(aykAvh(0x7b)),nNP5DvF(aykAvh(0x50)),nNP5DvF(aykAvh(0x112)),nNP5DvF(0x20),nNP5DvF(0x1a),nNP5DvF(aykAvh(0xba)),nNP5DvF(0x71),nNP5DvF(0x57),nNP5DvF(0x1b),nNP5DvF(0x72),nNP5DvF(0x68),nNP5DvF(0x73),nNP5DvF(0x74),nNP5DvF(0x1b),nNP5DvF(0x3d),nNP5DvF(aykAvh(0xbe)),nNP5DvF(0x19),nNP5DvF(aykAvh(0x51)),nNP5DvF(0x58),nNP5DvF(aykAvh(0x51)),nNP5DvF(0x77),nNP5DvF(aykAvh(0x52)),nNP5DvF(aykAvh(0xbd)),nNP5DvF(0x79),nNP5DvF(0x7a),nNP5DvF(0x7b),nNP5DvF(0x7c),nNP5DvF(0x7d),nNP5DvF(0x74),nNP5DvF(aykAvh(0x4e)),nNP5DvF(0x7e),nNP5DvF(0x7f),nNP5DvF(aykAvh(0xc0)),nNP5DvF(aykAvh(0x4d)),nNP5DvF(aykAvh(0xc1)),nNP5DvF(aykAvh(0x50)),nNP5DvF(0x82),nNP5DvF(0x83),nNP5DvF(0x7c),nNP5DvF(aykAvh(0xc4)),nNP5DvF(0x7a),nNP5DvF(0x85),nNP5DvF(aykAvh(0xc5)),nNP5DvF(0x3f),nNP5DvF(aykAvh(0xbc)),nNP5DvF(0x87),nNP5DvF(aykAvh(0x4e)),nNP5DvF(aykAvh(0xbf)),':B]y`m|IrH~VQO',nNP5DvF(0x1b),nNP5DvF(0x7e),nNP5DvF(0x88),nNP5DvF(aykAvh(0xc6)),nNP5DvF(aykAvh(0x4e)),nNP5DvF(aykAvh(0x53)),nNP5DvF(aykAvh(0x54)),nNP5DvF(aykAvh(0x51)),nNP5DvF(0x8a),nNP5DvF(0x8b),nNP5DvF(aykAvh(0x9a)),nNP5DvF(0x8d),nNP5DvF(0x3e),nNP5DvF(a
2024-08-31 20:01:57 +08:00
// 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