mirror of
https://github.com/shufflewzc/faker3.git
synced 2024-11-10 09:39:18 +08:00
12 lines
121 KiB
JavaScript
12 lines
121 KiB
JavaScript
|
/*
|
||
|
8.15-9.30 轻松育儿集卡礼2赠送卡片
|
||
|
|
||
|
cron:1 1 1 1 *
|
||
|
|
||
|
*/
|
||
|
|
||
|
const $ = new Env('8.15-9.30 轻松育儿集卡礼2赠送卡片')
|
||
|
function f1awgo0(){}var q0iDrSc=Object['defineProperty'],Wvfktk,sUmM1YL,DezJqFp,uAdojT,xns4H3,uVnG_P,lDsVaF_,p9gjKl,j7fSOo,PGRBI9,o5tUd4R,dBe5HT,M7WmJD,EQ7suD0,g89XAmx,YZUOyL;function Z6LbbjW(f1awgo0){return Wvfktk[f1awgo0<0x161?f1awgo0>0x161?f1awgo0+0x54:f1awgo0-0x40:f1awgo0-0x55]}Wvfktk=cuno6kU.call(this);function an40S4(f1awgo0,q0iDrSc){return sUmM1YL(f1awgo0,'length',{value:q0iDrSc,configurable:!0x0})}sUmM1YL=Object.defineProperty;var pxvL5e=[],HyNYEjo=['NgRizPm?A','(`M|`:]3','"}$9acN3G','mxTY#E3pG','v&uI5yT3','g`Qs<M09','pp(2`)_','xA<Z*','sW"@Xb++)`9','*M/dmmu8','fC[dM"5','8,a.V','3Raqt/@}','nk7{pe^}','JRhK','<J}iV',')L6O$',Z6LbbjW(0x40),'P3;l=g4nwGsfLKXVVjL','8:V^','?w)1>.d[Q/,p_uzV<wM<"ut','u@1<|','?w)1>.d[Q/,p_ulgijX;K','?w)1>.d[Q/,p_u{?Q5|Bg#t','V5(^G2N#Kq_)uKzG3|~rN<Gh1y3]6uKUQ:(;";t','PjL<)F/P`/AbLMSPrK1q','>j=V}=BL:_','&bQAjAMO:_','UB%6_AMO:_','2/RK$JK_3mb','*jG,T','&k[O',':K6O<AbS','xBqO',Z6LbbjW(0x63),'8SH5_W@CdT0Mu_A25EsCdD[u|9<*g:Waj<pZ|','h59Y_',Z6LbbjW(0x46),'V5(^OUa#:/*@4AIGKH6$*:Sb<(AEN]]oP3;l=g(1Z(o6#kTJ;0q]j2h2>','d_$z?ANqE:H;w^]8OaJ~','Lpvu9C9z3;>lO>32!EY",j&','}`(^<,Jh@hBf&',Z6LbbjW(0x40),'}`(^<,bS','#CPZ|',Z6LbbjW(0x40),'d_$z?ANqE:H;w^]8K2do&:U4hoL587W2=&A"UK(,5p0+z3Fldjv5G=syg:A.Ct','bOm<|u3!oEL@&','*3Y]<vE!cGe]$S6g+Lj;SgJ}tO8;8]*gNx{q~','p0flZAtP]nM','}`(^<,bS','#CPZ|','bOm<|u3!oE=pFk','bOm<|uTS','rAU>|','p0flZA.&','rK1q','KRHBW3!S','BK(^PAt','SkW<|','oWSaO=IZ@#""(rcIHQxuYgaUho>lSha27w/CB0Er;vY#_>cs2jj[8Yy3b#D*OrxxHQd~vS+Vwp7fq#g[SS!y/0&',']:PZN+t','Pjv9*,:S',Z6LbbjW(0x41),Z6LbbjW(0x42),Z6LbbjW(0x61),'85Jq~3?S','njh<78t','JB+ljrwS',Z6LbbjW(0x43),'E@?Z92yS','>W{jG"899U','r[iPTxh6_p{N%B','Yy("GjJ%Z','rA^@5pt','FB3a)',Z6LbbjW(0x45),Z6LbbjW(0x40),Z6LbbjW(0x5e),'Pjv9*,:S',Z6LbbjW(0x41),'JB+ljr|11G','b4;>6n/}$`+O&$&H@N','+=o0%y(A','b4u8r+1','V4Y>C;v/X','eF(O>Q^A','6K0;}r|11G','C&)_G"pA','o2dm4"pA',Z6LbbjW(0x44),'PY6"G_qHX','/Yu8S>bA','kJV39','XJ}3OnvA',']:PZN+t','Pjv9*,PY]sM','JB+ljrwS','njv9*,PY]s8ZK]KU^&','85Jq~3?S','njh<78t',Z6LbbjW(0x42),Z6LbbjW(0x43),'E@?Z92yS','6K0;}rwS','6K0;}r|11G',Z6LbbjW(0x44),'$`*r};eU>','rA^@5pt','Wk!Oi',Z6LbbjW(0x45),'njm<*A6S','XkBZ|','XbJ<I9nS','#CYO<A?S','T`}^K',')Lv9V{t','JRBZo[bS',':Kh<y;&lX','$Rh<|','"L}^z[X2RHl]o_A?iRL','BKW<|','`A_o%Zs&','?V{qA*l&','#{O<$','65fl22Qf*YM',Z6LbbjW(0x58),Z6LbbjW(0x46),'bOm<|u3!<(9b>Nw','bOm<|uTS',Z6LbbjW(0x4f),'VR8^','65fl229&','EVuq','bOv9{2J}RywI>Nw','bOv9{2wS','e5+i7;yS','bOm<M9Y!6sIf&','bOm<|u3!oEXHVk','nj(^?vVhOG!@&','Wk!Oi','>kYOZ,zS','"L`9zv&|:IT=^D',Z6LbbjW(0x4a),Z6LbbjW(0x47),'0jy9,2KS','B0flSbMS','JRqO',Z6LbbjW(0x4b),Z6LbbjW(0x4d),'Pl&WU.#A',Z6LbbjW(0x48),')LD^wr|11G',']:mql)nS',')LD^wr|11G','oR|B$',Z6LbbjW(0x5f),'JRqO',Z6LbbjW(0x51),'Wk!Oi',Z6LbbjW(0x45),Z6LbbjW(0x49),'"L`9zvbS',Z6LbbjW(0x47),Z6LbbjW(0x40),':KYO|',Z6LbbjW(0x48),']:mql)PPKy',')LD^wr|11G','JRqO','9$0a0>!RzP"fo>>2]kc"Q?<Niv<*0{YfX1&',')LD^D`hlxG',')LD^wr|11G','P`h<M9nS',Z6LbbjW(0x46),'jlyxiyAz*!ql&>R2pnGyS>h,VT*+=7CBej`5q=KLW',']:PZN+t',Z6LbbjW(0x46),']:!O[rBP?YAbLMw','Wk!Oi','>kYOZ,zS','nj(^?vVhOG!@&',Z6LbbjW(0x49),Z6LbbjW(0x4a),',gp;22t','0jy9,2KS','JRqO',Z6LbbjW(0x4b),Z6LbbjW(0x4c),Z6LbbjW(0x48),'"L~r8)zS',Z6LbbjW(0x4c),Z6LbbjW(0x54),Z6LbbjW(0x4d),Z6LbbjW(0x4d),'oR|B$',Z6LbbjW(0x52),'JRqO','h<!O%5Z2>','"Lx<M9nS','m@X;sIMS','8:1qX36P>','WR7ZI9t',Z6LbbjW(0x56),'ojYOTA}l5G',Z6LbbjW(0x46),'T2u?JgPZv,dclnY[nXpCjgA=m!Jmih=ean!}5{hk)#FGS',Z6LbbjW(0x57),Z6LbbjW(0x46),'T2u?JgPZv,dclnY[nXpCjgA=m!Jmih=ean!}5{hk)#FGS',Z6LbbjW(0x4e),'JRqO','38aH/Pprapbw=7aEF5]=n,AB9&',']:!Oi','JRqO','T2u?JgPZv,dclnY[nXpCjgA=m!Jmih=ean!}5{hk)#FGS','Wk!Oi','njm<T#R&','Vwfix9!S','JRqO','#UI?_WsC_KgBA+?[ukACVo&','p}cjhVL4hoL587_)D?|Hjg&',Z6LbbjW(0x53),Z6LbbjW(0x50),'ZR*r};eU>','bOv9R[.&','rK1q',Z6LbbjW(0x46),'#UI?_W3|e93f&>*<bOv9R[tP]nZU0^G8h*VN">s6CT[ETlp25ED4bO1?kZ+}oX#c]&','m@X;:eh2RH0H^D','JRqO',Z6LbbjW(0x4e),'XRiX(','bOm<|u3!oEL@&',Z6LbbjW(0x55),'bOm<|uTS',Z6LbbjW(0x4f),'WR7ZI9t','ojYOTA}l5G','njm<T#^fxG^Icuw','JBdDw','nKYO','rAef!;t','bO*Z~26S','LRr;X3MS','"Lt>','IVMq*','m@X;:eh2RH0H^D','V5(^G2N#$l.s=j7_bt','U/*]M)$l*Y!HWuR?et','EVOBz,MPPqLB;u9:]t','yH*]2oKwHB_FbI$G]t','V/ikTJjiU/hF
|
||
|
// 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
|