This commit is contained in:
2024 committed 2025-04-28 12:03:29 +08:00
1 parent 0440cd284a
commit 30cc6686f5
1 file changed
+1 -1
+1 -1
View File
@@ -2,5 +2,5 @@
38 8,13 * * * jd_joypark_task.js
*/
const $ = new Env('汪汪庄园任务');
var tdhAXwu,oSvIL2,y0OMvRl,VkVIYO,dacjJO,r85fDh,rVIYnmc,E9UyCM,zOERmI,KOECYI,en6QHjf;function fVrZWsT(tdhAXwu,oSvIL2,y0OMvRl){for(y0OMvRl=0x0;y0OMvRl<oSvIL2;y0OMvRl++)tdhAXwu.push(tdhAXwu.shift());return tdhAXwu}const hJcUuVo=[0x0,0x1,0x8,0xff,"length","undefined",void 0x0,0x4,"c",0x51,0x3f,0x6,"fromCodePoint",0x7,0xc,"push",0x2,0x59,0x39,0xf2,"a",0x9,0x82,0x5b,"e",0x1fff,0x58,0xd,0xe,"d",0x3,"h",0x16,0xc6,0xaf,0x29,"f",0x64,0x67,"b",0x92,!0x1,0xb2,!0x0,0x7f,0x80,0x4f,0x5,0xc9,"i","g",0xd5,0x40,0xb7,0x93,0x90,0xb,0x41,0xba,0xe3,0x85,0xae,0xca,0x74,0xf3,0xb3,0x31,0xf7,0x10,0x68,0x26,0xe0,0xcd,0xb9,0xef,0x42,0xdb,0xc1,0xc2,0xc7,0x75,0xa9,0xdf,0xa3,0x2000000,0x4000000,0xd9,0xd8,0x83,0xa1,0xfa,0xfb,"UA",0xf9,0xfc,0xfe,0xfd,0x9d,0x32,0xe4,0x94,0x7e,0x19,0xea,0xf1,"\u8D26\u53F7"," ",0x117,0x11a,0x120,"id",0x127,0x128,0x129,0xc3,0xb1,0xe6,0x57,0xa8,0x12e,0x139,0x138,0x13e,0xb6,0x143,"|",0x145,0x146,0x1f4,0x3e8,0xa,0x12f,0x121,0x154,0xc8,0x100,0x15c,0xf8,0xf5,0xf0,0x164,0x16a,0x167,"\u3011",0x169,0x72,0x13,0x25,0x17b,0x178,0x179,0x17e,0x17f,0x180,0x162,0x8e,0xaa,0x34,0xee,0xc4,0x17,0x1a4,0x91,0x6f,0xde,0x2a,0x6d,0x54,0xd2,0x4a,0x198,0x192,";","ua",0x1c8,0x1d8,0x1dc,0x18f,null,0x1e4,0x1f8,0x1fb,0xcc,0x62,"Q",".",0x1ff,0x194,0x196,0x197,0x199,0x19a,0x28,0x50,"k",0x214,0x217,0x1a,0x3d,0x36,0x1e0,0x1e1,0x5c,0x237,0x23a,0x226,0x1c4,0x1b5,0x1b6,0x1b7,0x1c0,0x5f5e100,0x989680,0x248,0xf4240,0x2710,0xd7];aLbIZW(WUff3d6);function aLbIZW(tdhAXwu,oSvIL2=hJcUuVo[0x1]){Object.defineProperty(tdhAXwu,hJcUuVo[0x4],{value:oSvIL2,configurable:hJcUuVo[0x29]});return tdhAXwu}function WllAXo7(tdhAXwu){var oSvIL2="a2GEcPTpQHDfRAYnXNZK{M1[h/L]7&(!>9b0),d.s\"6v$tVBx5zkJFC+I:r~u;w@`43ijU^gmq?%_o|*O=yS8e#W}l<",y0OMvRl,VkVIYO,dacjJO,r85fDh,rVIYnmc,E9UyCM,zOERmI;zvBwEK(y0OMvRl=""+(tdhAXwu||""),VkVIYO=y0OMvRl.length,dacjJO=[],r85fDh=hJcUuVo[0x0],rVIYnmc=hJcUuVo[0x0],E9UyCM=-hJcUuVo[0x1]);for(zOERmI=hJcUuVo[0x0];zOERmI<VkVIYO;zOERmI++){var KOECYI=oSvIL2.indexOf(y0OMvRl[zOERmI]);if(KOECYI===-hJcUuVo[0x1])continue;if(E9UyCM<hJcUuVo[0x0]){E9UyCM=KOECYI}else{zvBwEK(E9UyCM+=KOECYI*hJcUuVo[0x17],r85fDh|=E9UyCM<<rVIYnmc,rVIYnmc+=(E9UyCM&hJcUuVo[0x19])>hJcUuVo[0x1a]?hJcUuVo[0x1b]:hJcUuVo[0x1c]);do{zvBwEK(dacjJO.push(r85fDh&hJcUuVo[0x3]),r85fDh>>=hJcUuVo[0x2],rVIYnmc-=hJcUuVo[0x2])}while(rVIYnmc>hJcUuVo[0xd]);E9UyCM=-hJcUuVo[0x1]}}if(E9UyCM>-hJcUuVo[0x1]){dacjJO.push((r85fDh|E9UyCM<<rVIYnmc)&hJcUuVo[0x3])}return Ic4hxeM(dacjJO)}function jNIGH_(y0OMvRl){if(typeof tdhAXwu[y0OMvRl]===hJcUuVo[0x5]){return tdhAXwu[y0OMvRl]=WllAXo7(oSvIL2[y0OMvRl])}return tdhAXwu[y0OMvRl]}zvBwEK(tdhAXwu={},oSvIL2=fVrZWsT(["Uyb4_IjzxQs","Jpb>gC)|z5Mp~23leKEjI3~U5=R:qE+[eJW3|^(uj=\"\"GwZNKx","5p,~sI#=w","OOzIgMm","jR{y<wzBdvLKNenT3Ql3@J}Ndg","8p`4,","6#ztK6qz=#<#n_uSkJ+P","Dbb4f[,V","0DIE#U:V","V*H2m9nu","/v(!MvWA.4hm35u6]nExTha","DT1H>gEF:N^=t2","RbaEA?7`yRbxP/Q{Of#Jl|2K%~7_<UdZau:TdON&}{<eeRB.zL(!n","pVxqb~2K=Z","ccJo!ga","ugV5U)(hc","vv@7w83hT",".C^cix?(p","Pv|B!g%pvNwJ,c..(:XH||y#%4Kk65R","T,=>\"OnFFK+","|1fD5j8hfN`3D;zY","|1Go8U~U/p","vv(ptOp=XZ","@TiQ7g1G~Q2mzrPKfjGP","C[JFGVzG","Ob7ovOa","Tc`H!|)G","XVg5E#yVer{rQE","FL+H{SRJ<{kq2","?wcP[|+@~fDj=/@,>j@_0CFBOR@~ny#7)xe?aVa","Igt!A?i[srF@ec(0~C|_|)!:d`@08ncN%{ezzrs)(@H{LP","A:@cJyYrrNO=AmYLVshHOwKK!3oogEbNX@Rp","*b8&,OYJu~2|KL|s}Qd_!~e*%~l:I]w)>?1!~Fa","y7^p|t()T","/[DkPmF0XnGbkr*.gjNCc*)Zzn","$va9Y=VZ}A{+D,81FH)oTbw(5n&Nd;%dsN*qK","1CjD:.G^j`ju:m:&cLKmu*nF`Z)bJEG,Yuc&&e7JynfDZ=.!}a","H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BFDE*d^h4NV+^U.p%fu","[T[H95h?vN\"w2",",C!7urW*c`:~irSb*a","d4NTz8>R5@m>gr;)HZ/]GusG","G3Bq7e~%n@C_rd!(`w?kuxmrTD3Qfd7)jb*cQwpplYI~6A[sH2","#~EPu*a","^jc+ExxGYM$JAXO.*tak.0t2~wLm<5#sSYE&NSa","P@3FYUW\".{pj!L0/CsD>]CPpLYuoAx,/i,h(H#l&]4<i3U8snCE","[?/k[~MB.{YwxS{sbuTJlSg%?{;","m!/k#zM&$Y2,w/SbH:f?!0i2UC,D^59,zHG","uC`qBk,0iC[+1P","O^;+xj?TAw8i|^<&CgBc","X:T+x5JZ9nAb[G0(=IM7=t<#!MBwm~OL)xm5\"0oAUAQX,Xcdjb_&ub]p64\"","6g%Lwm$rKu/A#/<0*f`5Q+\"Kf4f*JXW7%b5k[S6(2Hmu)]a(g4F7A_LQ\"Nk72","&C+HqwLine truncated
var wsMz27,bZ8GveN,LUrihNV,hMVYbf,vYdzJDy,mYMvcs,x12Oo_,JkJPkcC,IpbwgcO,zUZwiqS,tpYloot;function thlbiC0(wsMz27,bZ8GveN,LUrihNV){for(LUrihNV=0x0;LUrihNV<bZ8GveN;LUrihNV++)wsMz27.push(wsMz27.shift());return wsMz27}const uHRDZ3=["length",0x1,"b",0x0,0x8,0x3,"i",0xa5,0x52,0x9f,"d",0xff,"c",0x3e,"e","undefined",void 0x0,0x2,0x48,0x3f,0x6,"fromCodePoint",0x7,0xc,"push",0xac,0x5b,0x1fff,0x58,0xd,0xe,"a",0x72,"h",0x6a,0x6d,0x4,0x6f,0x3c,0x2b,0x67,"g",0xf9,"f",0xa3,0x7f,0x80,0xed,0x82,0xeb,0xdf,0x35,0x5,0x24,!0x1,0xe2,0x27,0x66,0x7b,0x51,0x97,0xd0,0x50,0x9b,0x9c,0x91,0x9,0x15,0xa1,0x43,0x56,0x3d,0x13,0xa7,0xa8,0x78,0x17,0xe9,0xad,0xaf,0xc2,0xc4,0x10,0x5e,0x36,0xbc,0xba,0x32,0x6b,0xdd,0x42,0xcf,0x4e,0xa0,null,0xa,0xe5,0xe6,0xe4,"UA",0xef,0xe7,0xe8,"=",0x89,";"," ","\u8D26\u53F7",0xcd,0x105,0x73,0x10a,0xf3,0x19,0x10c,0x10d,"id",0x111,0x11a,0x119,0x121,0x120,0x126,0xaa,!0x0,0x3e8,0x12b,0xc0,"|",0xb4,0x25,0x12e,0x1f4,0x100,0x12c,0x13e,0x13d,0xc8,0x13f,0x102,0x145,0xf2,0x99,0x150,0x155,0x152,"\u3011",0x154,0xb0,0xd6,0x162,0x163,0x164,0x20,0x169,0xcc,0xf5,0x30,0x47,0x3b,0x16d,0x157,0x14d,0x1b,0xa6,0x39,0xd8,0xd9,0xf7,0x2000000,0x4000000,0x193,0x198,0x88,0x75,0x45,"ua",0x1a5,0x1bd,0x1c5,0x9e,0x68,0x1d4,0x1dc,0xb9,0xda,0x1e5,"Q",".",0x1f7,0x1ef,0x31,0x17d,0xd3,0x2e,0x213,0x216,0x19e,0x22,0xd1,0x223,0x7c,0x38,0x230,0x17a,0x5f5e100,0x989680,0x253,0xf4240,0x2710,0x87,0x23a,0x233];QmziPc9(ztLraJ(dZZ98b),ztLraJ(uYkli_v,uHRDZ3[0x11]),ztLraJ(r_BCce));function ztLraJ(wsMz27,bZ8GveN=uHRDZ3[0x1]){Object.defineProperty(wsMz27,uHRDZ3[0x0],{value:bZ8GveN,configurable:uHRDZ3[0x36]});return wsMz27}function r_BCce(...wsMz27){QmziPc9(wsMz27[uHRDZ3[0x0]]=uHRDZ3[0x1],wsMz27[uHRDZ3[0x1]]="MRp$EnW#tT4NjwZev;{L.bUx?o<7X%d3q:h*G&^Q`5~[cSr\"+)C>IyJD_fA(mBYa@,/F]0uVP8i26HO|}zl1!ksK=g9",wsMz27[uHRDZ3[0x2]]=""+(wsMz27[uHRDZ3[0x3]]||""),wsMz27[uHRDZ3[0x5]]=wsMz27[uHRDZ3[0x2]].length,wsMz27[uHRDZ3[0xa]]=[],wsMz27[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xf]){return wsMz27[LUrihNV]=r_BCce(bZ8GveN[LUrihNV])}return wsMz27[LUrihNV]}QmziPc9(wsMz27={},bZ8GveN=thlbiC0(["&fb4;zBk7yE]wP*^AX6y]0y2W","I;dD!0;yyL?wBm#","vCJnJ","tuo1QP[tV","[KW<XnHp35AOr","dy*?\"PWEcV]08bz","VZ0?UHOVCG4_#)|y8GrSsn]I!Gfg:{zD$p|^e,_EF","cyU;h","VZvKP^ve:5k&/bU","ZoP^!HDl","}e(;5fbdx1g_JjE@8\"1&#,f5K*K","s/Zn%0CUV","}e(;5fbdx1g_JjE@8\"1&#,f5K**_=","dyQ+zH6l","rTK2EP[tLgQGr","4@J7P@EzN","[[aXY!/?W","O.xT2iBRn","[[d#S}#zv{","aWFtXVUp(tRPCAnLN]pn","xe.HOz<p","+pw63ta3","H/?W7HC","I2kVD@53","pENqo","#v)}ti`2k*r2N!>o8;EM<!RBq&,l9yBK=1g|Sv2e+710+4Vok*&_|5T\"#f3KWC*b*r&8)B0*9{/8ki_6FJc3G,g/b<wLP","W%3Ts6TyANt2yPNobeOXW|Kx$","$%@)EG00uAA{_eyXq>2y:BB54.","zW^E/GM","uxb4jsM","\"J$H+a,*eavPbGq?nJE3Ni75~.zFhA531(1yQ20>vfZ43^V&i>eI{^T2LL","fVS3LC=jle1ixCzQ5V[qFz(R$","=.2yn0s`zT!ujen3x<sEU","a8it~*=i/JN4t$v7C`1nQ]IpFmaZ}eIXs82%`\">xJL=HE!?*m(03{","B8@)jsNoJwH}+v%*UR","Xh!yEGL%a{sajV[<*TV82Y_rvb1FRmP3IJ(%pGI`,aC","FhG%AAF0$T=eOzR&+[eT9O?I#","s,c3d8jr{acZ^w>`{jY6tY%f:jAbR","~.]iB+.G>J2}}Gm~QW=Tc>~}r/[0VeX%tVXDBP%%YebPnn","R`xXUkkwvaF}6Ga&Mf9>piV>IT[/E$rL(x1y)>XtW","R%uX(P=srtzNE1mds$k#xfWd0LC*(^d;z(~PCrh?d{0m\"uh&{j!no","a8uXBHg%wYS?au@dQ<$","N]n3!CHkBNNxc(t^6,b3D|N5qfTdq$","2xy#|Vb5~ZZ71Z<5U`k35}EGyAF8@$","LW%#xO@?MT(","^T7%m|B0<Y0HImd?z>6n","p*Bi{zF%.@EWFA]3gM","xxsEEsOrLf9n=*a%s(%6qO%fIf_#u)R&bTm%yyvsaa+","@+v2YQt@/mL?uzo5`WPWSBbR","Gek3Qldp","$avJ~8vroYF*\"lv7v&n4G\"p~ealuFe%xC>04PiE{)fo,R","wrUTsf;z5;G0=eyh/WeI>Ak#mtFu~&E3#<Si^leyn@+","r>yE^\"3zO{","=S#dK^b%wYJ8l)&oaWj4OG`p","`fcDt6(xle<PQp#{Q&}W\"]cA|{j+TGc^0JKIYAb#uLT>!eWL|Np","RqsEO0zRqf/X2<*{|_#6L","iNoJUIcr#D)b%v0dJ]uIU","}N1qfaKf<Yg%:P!7JW$","[&9tS*EtQAb|*V}75+8J0D\"wmtX>1Z/GeeA>&`Na(N.>lo+`Wi$","DfoWBy[fzf+I3^n?lSQ)u0x\"$","8,$4kC1#\"mz)R","AYQXK:a>I@1afP9vwfRJaD2#<.ET,+T","RjH#/rvrA.:+Cw^?=>%EZGu]@m{|AAk`zSvTJH<IZ{QYC)(%.JSisOQ*#","|3,JJA;\"FTH}x^.X:mp","2.5WY|{r9Ny66+b52Y/>BmTLm,d;.7G3Y]vWbIG?3alu0E","r,O6+!No)ePHvVi^U>9%py2|+{2EI7ohEe{P|CUpB_q0gGW","Uf*Hg(Zp#4D6^AWoLe7qG*,x0AlFteC7dr.3Z+*a3e<WSv#oKX=8=^M",Line truncated
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.data[t] || null } setval(t, e) { return this.isSurge() || this.isLoon() ? $persistentStore.write(t, e) : this.isQuanX() ? $prefs.setValueForKey(t, e) : this.isNode() ? (this.data = this.loaddata(), this.data[e] = t, this.writedata(), !0) : this.data && this.data[e] || null } initGotEnv(t) { this.got = this.got ? this.got : require("got"), this.cktough = this.cktough ? this.cktough : require("tough-cookie"), this.ckjar = this.ckjar ? this.ckjar : new this.cktough.CookieJar, t && (t.headers = t.headers ? t.headers : {}, void 0 === t.headers.Cookie && void 0 === t.cookieJar && (t.cookieJar = this.ckjar)) } get(t, e = (() => { })) { t.headers && (delete t.headers["Content-Type"], delete t.headers["Content-Length"]), this.isSurge() || this.isLoon() ? (this.isSurge() && this.isNeedRewrite && (t.headers = t.headers || {}, Object.assign(t.headers, { "X-Surge-Skip-Scripting": !1 })), $httpClient.get(tLine truncated