faker3/jd_zhuibu_help.js

19 lines
63 KiB
JavaScript
Raw Normal View History

2024-10-18 17:25:41 +08:00
/*
JOY全国追补记
2024-10-19 04:22:20 +08:00
链接https://pro.m.jd.com/mall/active/h7bbR7sFxP6thFYwDqxNWjAbh8K/index.html
2024-10-18 17:25:41 +08:00
环境变量
JD_zhuibu_InviterId // 指定助力码 非必须,不填默认助力账号一
JD_zhuibu_NUM // 指定人数 非必须,不填默认跑全部账号
cron:0 0,12 * * * jd_zhuibu_help.js
*/
const $ = new Env('JOY全国追补记助力');
function fakergyxy59(){}var fakeriu2qqc=Object['defineProperty'],faker4hvojd,fakertzbons,faker2ktwz4,fakerbuzpbf,fakerabu5s,fakerzlbey,faker91e9f3,fakeropzyark,fakerjtw9om,faker2xszv3,fakerpj72v,fakern6uqh,faker9sv6q6,fakernic7pi,fakeruix7r,faker8234f,fakerm27el;function faker3zbvhg(fakergyxy59){return faker4hvojd[fakergyxy59<0x24?fakergyxy59<0x24?fakergyxy59+0x26:fakergyxy59-0x28:fakergyxy59+0x37]}faker4hvojd=fakeril50y9.call(this);var fakeri4cjc=[],fakerlvgy4o=['+:`jYN}l','5>$9~;6z','&Tt"K','jwh"','dVcOY%kVA@68[@R<~R','L$Z{;','dVoypX|yISWEANl^v+]yT$iG','dVoypX|yISWEBT4s','rNvX&LZUEt~bl,go3TA2Cq/?Sy$','|:%Hg2_Zd','VV?I72iG','W:4rI','RY.H','wF%H{f?G',faker3zbvhg(-0x22),'GYt{;','jG_+@t$x=Iu7L@f9+8Px=m.L;2{Wcwtq:{N#;','+k`HK','h+a"49g!sy,kJ:]wc+v#]zh!s_]P&f/:5eM2U3S3lMg?R@PxgwuzJ{*3WBz92JUh,JO6:9|9d','opOH','d]a>Zf._9!j~=/}n$GClT=O>bvZ{f&fRexQd].Fv4_yu{gO{`R|X>gr:u@r{f&fR','>Ja"{ro|$|C*R','u:M2r9FG',faker3zbvhg(-0x26),'d]a>tfA<{wk"O"ESjrRJp{;+)',faker3zbvhg(-0x26),faker3zbvhg(-0x26),'opOH','Fp_Ct}`G','CFa"~f)','GYt{;','u:M2r9FG','6w~#g])','~:k2Wr~B6P7','oC]y:n;ZZ4','i:k2Wr~B6Pj#F6F^"R','j+oO,}vG','i:|{3j)','`:J2%k<~d','8$v#29MG','%Fuz>n;ZZ4','opOH','5e>"F','%+m"m}e;U','vV$O','~+r{','vVAO','~+Fu','[J`H;','[h=uTg)ya','as30M.A"','wlrz.q@Qb3%vRs','y&1zBX["','fsN0(','i:A{Wfh|>Sn*R','U?o{l2U|$|kX/f!w','yoLuY','1ek2hX)','opC#[.?G','wF|{MzRyU','sp|{;','1eM2^kS~t_;_6Y','6w~#g])',faker3zbvhg(-0x26),'SELLew,e}wwCr/6BZ%P~Vx[%k~3*ewf.zFi_[|:r7s;R&m','>Ja"{ro|$|C*R','6w~#g])',faker3zbvhg(-0x26),'SELLew,e}wwCr/6BZ%P~Vx[%k~3*ewf.zFi_[|:r7s;R&m','~J|{72iG','>Ja"{ro|$|C*R',faker3zbvhg(-0x25),faker3zbvhg(-0x26),faker3zbvhg(-0x1f),'6wL{&90oDP[(<LZv(,Dzp.aD*Bl*R',faker3zbvhg(-0x21),'tY`HK','6wL{&90oDP[(<LZv=xt{;',faker3zbvhg(-0x24),faker3zbvhg(-0x25),'"Ye{{fjod','Fp~n.99!=MAI9JJo','CFt{;','Jf@[0#z}5U4$vRv;|h+Ce9%G','opOH',faker3zbvhg(-0x26),faker3zbvhg(-0x24),'6wL{&90oDP[(<LZv|:%HI','Fp~#;','#Juzsfh|U','6wL{&90oDP[(<LZv|:%HI',faker3zbvhg(-0x23),'|:%H0+H|TMAXR',faker3zbvhg(-0x26),'<+Ls@Xt',faker3zbvhg(-0x23),'<F`[O9`G','opOH','k$${O9`G','k$${O9`G','opOH',faker3zbvhg(-0x22),'opOH','opOH','%+${T21*RPJ','m5+DoTnQHv*IJ+|4FK<`U','m5+DoTnQHv*IJ+|4I}HRV~OHujpu7','+[]DZ','LeA{`','tGe&#Iey',faker3zbvhg(-0x26),'Tpp6#Iey',faker3zbvhg(-0x21),'QVx`','~r#;','RNaj','QVx`','<kAD0wcu7vg','6wL{&90oDP[(<LZv(,Dzp.aD*Bl*R',faker3zbvhg(-0x1e),'+[]DZ',faker3zbvhg(-0x23),'JYZ*xTZ:',faker3zbvhg(-0x26),'&AADxTZ:',';gFDiwS:',faker3zbvhg(-0x20),'TCOH',faker3zbvhg(-0x20),faker3zbvhg(-0x26),'%+${T21*RPJ','m5+DoTnQHv*IJ+|4z_GDC',faker3zbvhg(-0x26),faker3zbvhg(-0x1f),faker3zbvhg(-0x21),'UpKUa','U?o{%N)',':JjYWw)','tLrJJql_Bl+Sp','#<9UWqo}x?"C{98B3sa.X','y6}U^bc','?HA{;L}`7PF(4YVv~+Dzp.<G','J)bA;JX{FE"C{98B','i:a"qkS~FMYG!Y<~k$T{{rvG','2cN#l27G','Um!|','kmzAz','?FM2+$iG','7K#v:&VIy','#<9UWqm!y','[:*2,}|9d','5q!Y','i:a"phe;U','h+a"49g!syYk>(ovlIzykbyZ#yqS9J}vJwmz29B3h|','**SUn(+k.E~xp','sSoH4bc','#<9UWqo}x?"C{98BC`x(mGTxgl;gp','Ads(db)',faker3zbvhg(-0x1e),'}mH.','nSa.','`:a"{riG','3sSHXY}3y',',HW#Y&7G','y6G.!F=ym%MZ^9z$Vml.ONMzsTwZ5#,)#<d+O0jOI',',HW#Y&PZ,Vz616mh1Me',';}`Hu#|uZ4^SF6go?=}F,',',HW#Y&PZ<la_XJ`ci:e','J,6YOJc','5V%KzYM[>?X%p','W:LO5#Tb%iP*R','5Vl.UYn[:y;GtDi','U?.H>}XUp_S8QLuxi_Rr/#l3t_9PTsVvjwuz+N8`d','6h8Kk&B~FMS*gJT~v+@H','#$lvYq>I6RmPBDg<kp','!xI2V}MG','aO~|~F+ky','h`6AfGm!y','h+a"49g!FO3Nh(ovlIzykbyZ~OM$R@!wIpmz29d<2SyN)<no;k]U5j;K<++.l,hvmKa"6kbu|C)ZY]0<xVLOS{(`W|C','6h8KR(p>z4]PN,{<"R','?$fzt}vG','$OT|EqD51H_b$C}B;X(2wP28v','9he"5#Pb6Pu_"m','MJ&~E{Z&xO','}Kn2]AF<8Ew=p','**SUn(aI','9+/U[','K1eUA@yky','2,hU','e*[.0','K:p{{fe;U','#Juzsfh|U','k$*2p.)','jLN7!(xfv',faker3zbvhg(-0x1f),'<12|',']$%H','CFt{#rU;U','|:$OIfo|U','oC]y5#}wZ4kXR','Yp`[Wz)O#y=B"G",:?SzJ2"Bg7&Wke/<ouXC~fH!l,HbR9B4jCZG>}E~B7z?[YZs!=t:It8j.H~fY~ISUl.LY|nT$FE{|KJmP:4%4sCcZG>}E~B7q*tv@qp=YJMwyFXC{[54tO/BWGts2d`H~fJd[CsbFG~t8e?#w.B3DHhX;>KtRVnz?q0&xO<XiG5@Gk!Y','i:a"','YY*2#f)','opOH','s9=,E":{s;&*Rdt9T?fxA{=j!ZglaSd9J?/5NtA"8`','qW"?7wM3','.cI2p.)','dYBH#r<G','pp~Uj.U9@i','[p;Cs','Gofzsf)','cpM2;','E/~Y9[.c4CE.Q`p[','{Jfz$11.@i','$jhYhh<VO"]2vlviP,Fsqo"?O4f6Alt|gT0O8<aR','vV$O','vVTO','vVAO','vVh
// 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