faker2/jd_mybbphdyh.js

15 lines
114 KiB
JavaScript
Raw Normal View History

2024-07-06 04:22:31 +00:00
/*
不会自动运行请在有水的时候运行
2024-08-18 09:19:24 +00:00
//export jd_opencard_jdDraw="true" //true 开启抽奖false 关闭抽奖
2024-07-06 04:22:31 +00:00
//export jd_opencard_break="true" //IP限制后继续执行true/false
cron:1 1 1 1 *
*/
2024-08-18 09:19:24 +00:00
const $ = new Env('8.12-8.31 轻松育儿集卡礼1')
function GxpRnXY(){}var QBNDx1y=Object['defineProperty'],FhdS7d,EvaOCjn,uUtlvnd,bwfm80,up_2SH,XGFJtYl,w6crmB,P6TgWGM,HBCf8qt,IfmQrz,GpxDC9,XF2mmD,b_WVUJ,xzFQWw,dpfb4wV,dZ6CE1,af9rJR,BgziZI;function NNLhmM(GxpRnXY){return FhdS7d[GxpRnXY<0xbf?GxpRnXY>0xbf?GxpRnXY-0x5c:GxpRnXY+0x3c:GxpRnXY+0x2d]}FhdS7d=R_8kgz.call(this);function KunOrgo(GxpRnXY,QBNDx1y){var uUtlvnd=ZU1bbM0(GxpRnXY=>{return FhdS7d[GxpRnXY<0x9e?GxpRnXY<-0x5e?GxpRnXY+0x5b:GxpRnXY<0x9e?GxpRnXY<-0x5e?GxpRnXY-0x1e:GxpRnXY+0x5d:GxpRnXY+0x51:GxpRnXY-0x5d]},0x1);EvaOCjn(GxpRnXY,uUtlvnd(-0x3d),{value:QBNDx1y,configurable:!0x0});return GxpRnXY}EvaOCjn=Object.defineProperty;var ywbQZbb=[],T_7b9zH=['o!:ITK`b','i*(gy8K29','B)z}{?e.5',';2<lV?L3','6oeu_j^3','>AP<K:2f24=JvC','FQ}mK','C")n(r..@NA','K?`w++o&l<9xG2','GbaPH','l][3=IHD',')e4aKW1Is*O','x>)wq','i&dm.',NNLhmM(-0x3c),'B|RcM0Ve4PNn&fpEEj&','~5/,g','bqE}','74i/]U9!lk:TI~c0ujpRf','74i/]U9!lk:TI~27l#g80vr','E#`}P[^vfWIi~fyP|g$H^,Pt/x|"d~fAlq`R>Rr',']jMEJM8&qI','=alFjF;mqI','A8{dIF;mqI','[kLf.(fI|)a','OjP:Q','=C!m','qfdm,Fa?','D8Wm',NNLhmM(-0x39),'b?+#I_539QY;~IF[#XN39G=','vA%7I_PxnzW^=','#S1mu','(LWm','E#`}mA@vqkO5VF%Pf+d.Oq?a,`FX^""6B|RcM0`/<`6dvCQ(RYW"j[t[]','9I.y7F^WXq+R4}"bm@[y=qAVt6x8zAF!?13+]@q{3fo4ZkRdS=','JK`},:(t5t8n=','Yjxh:[f?','JK`},:a?','v3B<g',NNLhmM(-0x3c),'9I.y7F^WXq+R4}"bf[l_','&TS~h3mdv/A8epG[|jU3L4=','b:F%aP9<Lg68yAS!"*vr',NNLhmM(-0x35),'O|wF,SS1qP!T"JwI%S{W,S04QkGSwf.(8S#W4',NNLhmM(-0x37),'Hf/W','JK`},:(t5t8n=','am),g~|16XMT*C',NNLhmM(-0x36),'fL+8_|1?','8f`}BFr','?C_,g','Yjxh:[f?',NNLhmM(-0x25),'BjShO:q?','bf~W','Oc?e#M"QQd','K#RrmE)y(IL*T(TSC!','L3OfF>^u','ejt,wbr','a#UrnRw)}','$x^*r2Wu','dfYRJHg//P','~&]jE2H!','^H1*qs7','4UmMNz+S}','oYbj"Zlu','HF}5#Tr','pDaYq',']Czm<:y?','ej),OFEtJkHn=','pa(,%hpt5tS2VFvq','QKJ}f','i&ShE2r','(L8<6!a?','qft,xR=cp','.Lt,g','t,1m{#<[]',NNLhmM(-0x2e),')5pRN%ww*t','bq/Wp|dB]','_Lw<%hr',NNLhmM(-0x33),'6jzmQFa?','i&G}GKtcDP','b_6F#gK%RU3',NNLhmM(-0x3a),NNLhmM(-0x3b),'(LWm','Q[~7(0B<S:9Zcez!epT3j0FM)1()utMo@e1J#2tCiv*P?','.KOHJRoA]','Z#@_','xXP*]%GcPGbBk0Pew&RkUI~/Fu','RNv_O','6jzmQFJc#P','(LWm',NNLhmM(-0x3b),'_C1mu','ej),Qv}nDP}%Z~4','Z#@_','yh,<$!;E$?n/~:<g.J~Ez13tYa<xJ0PeJv^+ax!S`Na6r"M31}1B','b_[aCMJG59.(,Red"!2','am),g~|16XLX:"^(L#&','<LOHJRoA]',NNLhmM(-0x3a),'yh,<$!x{7Fx5u8[(8u',',#28WKn?','zB*%Wr#Q)T[kzE4','6G!Uh3mdv/^%`k][KaF32.=',')5pRqot[L+Y+}G','>&J}y!p[L+c"6IF7uL&','/?!({','KFI6{<N=','7E2WFOc=','^vL+g','d#nc[[lnOz;','c7IXVu}B1aF8h6h$A3rL','M%EL','b_j({.xv(YFb8mB','b_j({.i2','c~dO:SV2','HFA]g','z#X4','d#nc[[h=','ez.@','amSh2[(JLx4%]^4','amSh2[4?','7&:O0SV2','am),;hz1dN%n=','tLe+=isR','Of_,g','am),g~|16Xp+EC','(LWm','f%zzW|qEtqxeq%H',NNLhmM(-0x34),'c?s@','u4<RL/n?','##iO4xJ@hpi,EmB','T?PSqWxvS]c','/DiF$MV2','D~Z({','/DiF$Mev%YW5Cznd','/DiF$Mev%YW5u','x)t7{,hy]1M','.[bE{,hy]1M','3L_,g','RNj@L+%%?V',NNLhmM(-0x2c),'snJF^IV2','f_=L,GK','"q1m!H3?','bq@Qq!e?','f[|6TmGfC:]c,Px','`asc7o4?','`asc^%IWL+0M=','6Lg8FK9!Kk!T`d4','6Lg8^%kwTz3nQ.D(Y=','AdgoTiBw','34scD5e?','Vk>Iq?<ju%]&NKJ[D+@cgHnWY<K~#n',']Czm<:y?','f%Td>JGaoFX,KOPgHs]E{pu','TJZjtE&Vt6&#RA/[M`T3Mg=','8J9_aId2','brQ:[UokYGTmCW_','x)t7JC<8PYVn.Wz!6CG','WCKhDh4?','@JWF1fW2Sp','WCKhTK4?','1K~W','pC~,,D=t[e',NNLhmM(-0x38),NNLhmM(-0x2b),'2.6ADV2M','@JWFfF{ssp',NNLhmM(-0x39),'WCKh6DK?RP','A[_"+_4^4Ue','o[y==Hm','2.P@KK2PBUUqr{Pwiz','8J9_aId2','pC~,,D=t[e','DQVFIM?2','sn`_}xA{|','X8RuA!`clk;','WCKhDhg//P','H(%cP6`%8','WCKh6DK?RP','WCKhTKD*D+;','H(s(`GK','d#nc[[dn.++2>$nqI=','8J9_aId2','pC~,,D4?','8J9_aId2','ej`}7SEtmP15=',NNLhmM(-0x38),')AWFd6b2','InGSMMK',')AWFd6u{N,ik4}',NNLhmM(-0x3c),'O#=(z6p78','+A}4Bc{ssp',')ACcX+d2',')ACcX+d2','+A}4BcB2','"q)WciBBfx','i&G}4Hg//P','1#{/t','8Fzm32mt;NhCFfu(','j=|S$c*s8','`&5LMM6B>]f','|b@+kBTH@Ta4Mw@X*#"Me:F8h=','"qB<^sr',NNLhmM(-0x37),NNLhmM(-0x36),'(LWm','.KOHJRoA]','pLup`',NNLhmM(-0x35),'L4?Mg','"q1mu','am),g~Q?','HFA]g','_Lw<%hr','6jzmQFJc#P',NNLhmM(-0x31),'+8scI','6jzmQFa?','efzm','am),g~|16XMT*C','amO<$[CTnz~,%"XyV_?',')5pRqot[L+Y+}G','E#`}P[^v.cUNMjwI>c*CG*tc;NAHM(j@yLS<)Mp>7zKXIMnqFZ:F27Q4lccTP[fP%D/fP6|]Im(XWyTe9cvCK@?1ZP[Tt~GtT3I.X0X]"81MdKwI?8x<LT==@z5','dfYRDhg//P','Kdw
2024-07-06 04:22:31 +00: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