faker3/jd_zzhb_new_help.js

19 lines
86 KiB
JavaScript
Raw Normal View History

2024-06-28 15:38:28 +08:00
/*
2024-08-19 18:29:09 +08:00
新转赚红包助力
2024-06-28 15:38:28 +08:00
链接https://pro.m.jd.com/mall/active/B2Y13x641hwWfpsoRenCzfbz4jR/index.html
环境变量
2024-08-19 18:29:09 +08:00
jd_zzhb_inviterId // 指定助力码 非必须,不填默认助力账号一
jd_zzhb_num // 指定人数 非必须,不填默认跑全部账号
2024-06-28 15:38:28 +08:00
2024-08-24 01:59:50 +08:00
cron:1 1 1 1 *
2024-06-28 15:38:28 +08:00
*/
const $ = new Env('新转赚红包助力');
2024-08-24 01:59:50 +08:00
function faker2lbly(){}var fakerhoyp4=Object['defineProperty'],fakerezjxr,fakeryjjqhf,fakervcigib,fakerjf5lw,faker9bmjdk,fakerqki51,fakersy35k,fakerfddhkl,fakercsjxjk,faker3hvmx,fakerktwliu4,faker4r5yv8,fakerhzu3b,faker33zmhm,fakerq2iqr,fakerjkwksp,faker9s045a,fakerrs8z2;function fakerlq5g7(faker2lbly){return fakerezjxr[faker2lbly>0x5f?faker2lbly+0x39:faker2lbly<0x5f?faker2lbly<0x5f?faker2lbly+0x39:faker2lbly-0x3c:faker2lbly-0x26]}fakerezjxr=fakerdckv14.call(this);function faker5rs34c(faker2lbly,fakerhoyp4){var fakervcigib=faker710pxo(faker2lbly=>{return fakerezjxr[faker2lbly<0x74?faker2lbly>0x74?faker2lbly-0x27:faker2lbly+0x24:faker2lbly-0x63]},0x1);fakeryjjqhf(faker2lbly,fakervcigib(-0x19),{value:fakerhoyp4,configurable:!0x0});return faker2lbly}fakeryjjqhf=Object.defineProperty;var fakero7omz=[],fakere0i1v=['GTr1(+#Z','XOe6Nd%2argu3B','XOe6Ndwt(j*n8B','34!cl0gAgCdP[x',']:%,+','0})W"{44*SR','+C=GooJxpc~2^z','^5;8<','(efdV3MA','+/S4Uvr3`0~','#!f6;','kPA5Y',fakerlq5g7(-0x39),fakerlq5g7(-0x37),'0z.]m','Naf]','oeL+eCS3,$S@6$BL`B','(#EMU','oeL+eCS3?!U=x$%a)#xdU','oeL+eCS3,$GE[v','#eQ#rO!<0T;tV1@``fX/=+6W"+#','r:A5!q=Ed','eeF{pqlj','9:7g{','Bv~5','a&A5M?Fj',fakerlq5g7(-0x31),fakerlq5g7(-0x38),'Nj=I$.#X}{<p($?QI@bX}sB','%xJo$.7^nHT!B','I)h5m','fI2]7Q!%Y+G)|:>auIoK>Rf%Y=>b0?Z:VP^qWCOCJ^!FB$bX!a<R|MnC9HVH^(sD@aqRugoj','1DT5','d>23E?~=Q%N`}Zti#jyJz}T3*oEM?0?BPX_d>~&o7=+<M!TMhBr[3!g:<$gM?0?B','3|2]Mg1r#rynB',fakerlq5g7(-0x39),'1DT5','d>23.?4LMa)]T]cONgB|DMUIw','1DT5','1DT5','1DT5','&D=y.thj','y&2]`?w',fakerlq5g7(-0x38),fakerlq5g7(-0x39),fakerlq5g7(-0x36),'`:)q9gaj','N&(T','1y>+:iUEE7','l:)q9gaj','N&>+x)uj','NI1TGtoj','l:rMCNw','h:|qA)L`d','@#oKqQ^j','A&<R3iej','1DT5','A&<R3iUEE7','!azMgQ0%yH<Jxv','`|rMpqlj',fakerlq5g7(-0x37),fakerlq5g7(-0x34),'l:4M9?fr3OinB','WF1MJqWr#r)[Z?%a','{|3]&','kP)qf[w',fakerlq5g7(-0x2f),'a&rM^RB+W','YDrMU','kP^qx)O`.=U=Sv',fakerlq5g7(-0x36),fakerlq5g7(-0x35),'Oc((PaGPtaaygZSHEAb`eX6A)`CnPa?~R&l=6r:gpYUB0s','3|2]MgFj','%X`KU','Sa`K!>w',fakerlq5g7(-0x35),'Oc((PaGPtaaygZSHEAb`eX6A)`CnPa?~R&l=6r:gpYUB0s','`|rMpqlj','3|2]Mg1r#rynB',',<n+K?WQE==[V&G','1DT5','ywXc/76D[','Sa(M0Q;1"b6/L(Eo/G"RD~2"nHJnB','`|rMpqlj',fakerlq5g7(-0x34),'Sa(M0Q;1"b6/L(Eo}X.MU','Sa(M0QD3W',',<n+K?{j','5bh5M?Fj',']vPMM?N1d','&D`i~QQ%}^4{Q||1','y&.MU','|?$6;KbB','of[T?9+B','%[5MTxAj',fakerlq5g7(-0x35),'1DT5','Sa(M0QD3W','Sa(M0Q;1"b6/L(Eor:A5{','&D`KU','K|<RY?frW','Oy"F4}_QXZ&9:"w(cd5ra','(P4Mh','r:A5;I^j','K|A5m','QoYr',fakerlq5g7(-0x36),'#Mt>v*1v','y<n+jFpj',fakerlq5g7(-0x32),'L&h6TQhj',fakerlq5g7(-0x35),fakerlq5g7(-0x33),fakerlq5g7(-0x33),fakerlq5g7(-0x35),'zyT5','1DT5','1DT5','AI#MzqknBb|',fakerlq5g7(-0x30),'T&|qGtaj','=<(Td0w','Sa(M0Q;1"b6/L(Eo/G"RD~2"nHJnB',fakerlq5g7(-0x32),fakerlq5g7(-0x32),'L&h6TQhj','1DT5',')##MTQhj','`|rMpqlj',fakerlq5g7(-0x35),fakerlq5g7(-0x31),'1DT5','1DT5','AI#MzqknBb|','Sa(M0Q;1"b6/L(Eo/G"RD~2"nHJnB','y<n+jFpj','=<&M`?w',fakerlq5g7(-0x32),fakerlq5g7(-0x32),'L&h6TQhj','1DT5',fakerlq5g7(-0x33),'`|rMpqlj','1DT5',fakerlq5g7(-0x31),'1DT5',fakerlq5g7(-0x35),'AI#MzqknBb|','Y*V)IANwLf$a;V>2T5e)_','%c,Sz',fakerlq5g7(-0x35),'h:|qA)L`d','`|rMpqlj','WDmW2','WF1MA,w',':|Nv9aw','l|^qqQ{j','iaxdU',fakerlq5g7(-0x30),'T&|qGtaj','=<(Td0w','WF1M_,w','F54MU(thpb&/7veo`I"RD~Lj','qu,KJq{Lt76/L(Eo','l:2]8)O`&^vj%vL`)#zMMgoj','qu,KJqpj','MD3]','UD`K`','F&^qI#lj','iySd}NXjW','Sa(M0QD3W','6:nqGtrQd','V8qv','G|Kv','(8`S[ow','DDCKJq5WD7_nB','l:2]DfPUW','fI2]7Q!%Y+v)3/1oJ{R+)*+EK+8OQ|to|asRqQHCfr','vv#M>RPU57s"B','Sa(M0Q;1"b6/L(Eor:A5{',':#;Tc,w','l|^qqQHCoHP#B','Sa(M0Q;1"b6/L(Eo/G"RD~2"nHJnB','>>W9T{>Y','v`h9)','y<n+jFpj','{uJ#&','4dY/d*w','~&eD4^tRV(.AOeyPw,CD)','Y*a{+z&[','R>k`','8l1`','i*ugD0=[','r:#T{?1rW','G59Kv0pj','7v6`]zX[','";I@Z{BY','N3j3J9nr','K:+]u6Xj','wvUy9KHw','|XHP','+`J9s4(y+f@~x~<Mx/B',')zi`F9_FyU!h?~}Rvwz?+','G59Kv0bELJ2=[|hul:P','{FvI;{r','%X=y`?Ohpb{=B','9:(TVKz*AlbnB','L,n`DI8iw7T6=}f','7v6`]zj7>$hmNeF,=$Y0G9TWC$^(KQfPq&F@;#mi|','Sf@m)0nj','l3cD:#wr','U&2]&','SfHd?QpjFzD*o!naUB','L,o{fz/[','ZGFKx~D3W','M;ugU^}L?kW#MA<','+a`5IMnC9H`zoS3','oI8RK)OhSlbn+hd','w5fKn8}Fc.RtqL]','=M~Q2K@iE$n6n1|','wK70Gj8iyU.$p~+','Sf@m
2024-08-19 18:29:09 +08:00
2024-06-28 15:38:28 +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