mirror of
https://github.com/6dylan6/jdpro.git
synced 2026-11-06 06:06:43 +08:00
1
This commit is contained in:
1 parent
d8a0cf75a2
commit
ec390d5488
3 files changed
+1
-19
No files matched your search
+1
-1
@@ -1 +1 @@
|
||||
var JmWmPv,kqZ703,tSWfq3,G41JCd,DNBu9p,vmU3gt,vJbEqiz,xocVnu,t_S091,qJ4AIWX,pGsI3cM,q6z7vHb,pl2v3D,uPO5md,EQMVfO;const ijIUPw=[0x0,null,0x20,0x2,0x1,0x100,0x6,0x3,0x8,0x10,0x4,"undefined","LZString",0xff,0x7,0xd,0xe,0xf,0x58,0x5b,0x23e,0x80,0x7f,0xdf,0x1f,0x3f,0xef,0xc,0x244,0x12,0x23a,0x64,0x65,0x66,0x67,0x68,0x69,0x6a,0x6b,0x6c,0x6d,0x6e,0x1fff,0x6f,0x70,0x71,0x72,0x73,0x74,0x75,0x76,0x77,0x78,0xc0,0xf0,0x40,0x3ff,0xe0,0xffff,0xfff1,0x79,0x7a,0x7b,0x7c,0x7d,0x7e,0x26,0x16,0x81,0x82,0x83,0x84,"+",0x85,0x86,0x87,0x88,0x89,0x9,0x8a,0x8b,0x8c,0x8d,0x8e,0x8f,0x90,0x91,0x18,0x92,0x93,0x94,0x95,0x96,0x97,0x98,0x99,0x9a,0x9b,0x9c,0x9d,0x9e,0x9f,0xa0,0xa1,0xa2,0xa3,0xa4,0xa5,0xa6,0xa7,0xa8,0xa9,0xaa,0xab,0xac,0xad,0xae,0xaf,0xb0,0xb1,0xb2,0xb3,0xb4,0xb5,0xb6,0xb7,0xb8,0xb9,"ua",0xba,0xbb,0xbc,0xbd,0xbe,0xbf,0xc1,0xc2,0xc3,0xc4,0xc5,0xc6,0xc7,0xc8,0xc9,0xca,0xcb,0xcc,0xcd,0xce,0xcf,0xd0,0xd1,0xd2,0xd3,0xd4,0xd5,0xd6,0xd7,0xd8,0xd9,0xda,0xdb,0xdc,0xdd,0xa,0xde,0xe1,0xe2,0xe3,0xe4,0xe5,0xe6,0xe7,0xe8,0xe9,0xea,"w","l","1",0xeb,0xec,0xed,0xee,"3",0xf1,0xf2,0xf3,0xf4,0xf5,0xf6,!0x1,0xf7,0xf8,0xf9,0xfa,0xfb,0xfc,0xfd,0xfe,0x101,0x102,0x103,0x104,0x105,0x106,0x107,0x108,0x109,0x10a,0x10b,0x10c,0x10d,0x10e,0x10f,0x110,0x111,0x112,0.75,0x113,0x114,0x115,0x116,0x117,0x118,0x119,0x11a,0x11b,void 0x0,0x11c,0x11d,0x11e,0x11f,0x120,0x121,0x122,0x123,0x124,0x125,!0x0,0x126,0x127,0x128,0x129,0x12a,0x12b,0x12c,0x12d,0x12e,0x12f,0x130,0x131,0x132,0x133,0x134,0x135,0x136,0x137,0x138,0x139,0x13a,0x13b,0x13c,0x13d,0x13e,0x13f,0x140,0x141,0x142,"-","g",0x143,0x144,0x1c,0x145,0x146,0x147,0x148,0x149,0x14a,"x",0x14b,0x14c,0x14d,0x14e,0x14f,0x150,0x151,0x152,0x153,0x154,0x155,0x156,0x157,0x158,0x159,0x15a,0x15b,0x15c,0x15d,0x15e,0x15f,0x160,0x161,0x162,0x163,0x164,0x165,0x166,0x167,0x168,0x169,0x16a,0x16b,0x16c,0x16d,0x16e,0x16f,0x170,0x171,0x172,0x173,0x174,"_","=",0x175,0x176,0x177,0x178,0x179,0x17a,0x17b,0x17c,0x17d,0x17e,0x17f,0x180,0x181,0x182,0x183,0x184,0x185,0x186,0x187,0x188,0x189,0x18a,0x18b,0x18c,0x18d,0x18e,0x18f,0x190,0x191,0x192,0x193,0x194,0x61,0x5f,0x195,0x196,0x197,0x198,0x199,0x19a,0x19b,0x19c,0x19d,0x19e,0x19f,0x1a0,0x1a1,0x1a2,0x1a3,0x1a4,0x1a5,0x1a6,0x1a7,0x1a8,0x1a9,0x1aa,0x1ab,0x1ac,0x1ad,0x1ae,0x1af,0x1b0,0x1b1,0x1b2,0x1b3,0x1b4,0x1b5,0x1b6,0x1b7,0x1b8,0x1b9,0x1ba,0x1bb,0x1bc,0x1bd,0x1be,0x1bf,0x1c0,0x1c1,0x1c2,0x1c3,0x1c4,0x1c5,0x1c6,0x1c7,0x1c8,0x1c9,0x1ca,0x1cb,0x1cc,0x1cd,0x1ce,"$1",0x1cf,0x1d0,"(","S+",0x1d1,"00",0x1d2,0x1d3,0x1d4,0x1d5,0x1d6,0x1d7,0x1d8,0x1d9,0x1da,0x1db,0x1dc,0x1dd,0x1de,0x1df,0x1e0,0x1e1,0x1e2,0x1e3,0x5,0x1e4,0x24,0x1e5,0x1e6,0x1e7,"fp",0x1e8,0x1e9,0x1ea,0x1eb,0x1ec,0x1ed,0x1ee,0x1ef,0x1f0,0x1f1,0x1f2,0x1f3,0x1f4,0x1f5,0x1f6,0x1f7,0x1f8,0x1f9,0x1fa,0x1fb,0x1fc,0x1fd,0x1fe,0x1ff,0x200,0x201,"tk",0x202,0x203,0x204,0x205,0x206,0x207,0x208,0x209,"rd",0x20a,0x20b,0x20c,0x20d,0x20e,0x20f,0x210,":","&",0x211,0x212,0x213,";",0x214,0x215,0x216,0x217,0x218,0x219,0x21a,0x21b,0x21c,0x21d,0x21e,0x21f,"t",0x220,0x221,0x222,0x223,0x224,0x225,0x226,0x227,0x228,0x229,0x22a,0x22b,0x22c,0x22d,0x22e,"wd","ls",0x22f,0x230,0x231,0x232,0x32,0x233,0x234,0x235,0x236,0x237,0x238,0x239,0x23b,0x23c,0x23d,0x23f,0x240,0x241,0x242,0x243,0x245,0x246,0x247,0x248,0x249,0x24a,0x253,0x252,"pp","wk",0x46,"pf","v","0",0x24e,0x260,0x262,"iv",0x267,0x24c,0x26d,0x26e," "];g_NMCa(JmWmPv=function(){var kqZ703=String.fromCharCode,tSWfq3="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",G41JCd="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-$",DNBu9p={},vmU3gt;function vJbEqiz(vmU3gt,vJbEqiz){if(!DNBu9p[vmU3gt]){var xocVnu;DNBu9p[vmU3gt]={};for(xocVnu=ijIUPw[0x0];xocVnu<vmU3gt.length;xocVnu++)DNBu9p[vmU3gt][vmU3gt.charAt(xocVnu)]=xocVnu}return DNBu9p[vmU3gt][vJbEqiz]}vmU3gt={compressToBase64:function(G41JCd){var DNBu9p,vJbEqiz;function*xocVnu(vJbEqiz,xocVnu,t_S091,qJ4AIWX,pGsI3cM={QEtL5N:{}}){while(vJbEqiz+xocVnu+t_S091+qJ4AIWX!==-0xf1)with(pGsI3cM.rgMmqj||pGsI3cM)switch(vJbEqiz+xocVnu+t_S091+qJ4AIWX){default:g_NMCa(pGsI3cM.rgMmqj=pGsI3cM.iADu96,xocVnu+=-0xd8,t_S091+=0x12d,qJ4AIWX+=-0x73);break;case-0x93:case 0x9c:case-0xbd:[pGsI3cM.QEtL5N.iRTDGSg,pGsI3cM.QEtL5N.PWyh5Q]=[-0x59,-0x86];if(ijIUPw[0x1]==G41JCd)return DNBu9p=!0x0,"";QEtL5N.A90_8l=vmU3gt._compress(G41JCd,ijIUPw[xocVnu+-0x3f],function(vJbEqiz){return tSWfq3.charAt(vJbEqiz)});switch(QEtL5N.A90_8l.length%ijIUPw[0xa]){default:case ijIUPw[0x0]:return DNBu9p=!0x0,QEtL5N.A90_8l;case ijIUPw[vJbEqiz+0x14a]:return DNBu9p=!0x0,QEtL5N.A90_8l+"===";case ijIUPw[t_S091+0x3]:return DNBu9p=!0x0,QEtL5N.A90_8l+"==";case ijIUPw[t_S091+0x7]:return DNBu9p=!0x0,QEtL5N.A90_8l+ijIUPw[0x143]}g_NMCa(vJbEqiz+=0x107,xocVnu+=-0xfe,t_S091+=0xde,qJ4AIWX+=-0x11b);break;case-0xa7:case 0xa6:g_NMCa([pGsI3cM.QEtL5N.iRTDGSg,pGsI3cM.QEtL5N.PWyh5Q]=[0x9d,0x31],pGsI3cM.rgMmqj=pGsI3cM.Dj4Sh0,vJbEqiz+=-0xb6,xocVnu+=-0xd0,t_S091+=0x196,qJ4AIWX+=-0x5a);break;case vJbEqiz-0x6c:case-0xbf:g_NMCa([pGsI3cM.QEtL5N.iRTDGSg,pGsI3cM.QEtL5N.PWyh5Q]=[0xad,-0x75],pGsI3cM.rgMmqj=pGsI3cM.QnjvfI,vLine truncated
|
||||
var rRktmk,vrjNRkF,kLSfeP,U4gSV7,nzxBKCW,qMLIdX,yVEIVl6,UnGuRR,Md2WUk1,EzyGtQZ,iXa3s5l,qZmXvw,EdJPOh,Xa96Fb3,MbpA93k;const srYDjpL=[0x0,null,0x20,0x2,0x1,0x100,0x6,0x3,0x8,0x10,0x4,"undefined","LZString",0xff,0x7,0xd,0xe,0xf,0x58,0x5b,0x20d,0x80,0x7f,0xdf,0x1f,0x3f,0xef,0xc,0x213,0x12,0x209,0x1fff,0x4d,0x4e,0x4f,0x50,0x51,0x52,0x53,0x54,0x55,0x56,0x57,0x59,0x5a,0x5c,0x5d,0x5e,0x5f,0x60,!0x1,0x61,0x62,0x63,0x64,0x65,0x66,0x67,0x68,0x69,0x6a,0x6b,0x6c,0x6d,0x6e,0xc0,0xf0,0x40,0x3ff,0xe0,0xffff,0xfff1,0x6f,0x70,0x71,0x72,0x73,0x74,0x75,0x76,0x77,0x78,0x79,0x7a,0x7b,0x7c,0x7d,0x7e,0x81,0x82,0x83,0x84,0x85,0x86,0x87,0x88,0x89,0x8a,0x8b,0x8c,0x8d,0x8e,0x8f,0x90,0x91,0x92,0x93,0x94,0x95,0x96,0x97,0x98,0x200,0x99,0x9a,0x9b,0x9c,0xd800,0xa,0x5,0x18,0x16,0xb,0x19,0x11,0x13,0x1c,0x22,0x27,0x29,0x3d,0x9,0x9d,0x9e,0x9f,0xa0,0xa1,0xa2,0xa3,0xa4,0xa5,0xa6,0xa7,0xa8,0xa9,0xaa,0xab,0xac,0xad,0xae,0xaf,0xb0,0xb1,0xb2,0xb3,0xb4,0xb5,0xb6,0xb7,0xb8,0xb9,0xba,0xbb,0xbc,0xdbff,0xdc00,0x10000,0xdfff,0xbd,0xbe,0xbf,0xc1,0xc2,0x800,0xc3,0xf8,0xc4,0xc5,0xc6,0xc7,0xc8,0xc9,0xca,0xcb,0xcc,0xcd,0xce,0xcf,0xd0,"w","l",0xd1,0xd2,0xd3,0xd4,0xd5,0xd6,0xd7,0xd8,0xd9,0xda,0xdb,0xdc,0xdd,0xde,0xe1,0xe2,0xe3,0xe4,0xe5,0xe6,0xe7,0xe8,0xe9,0xea,0xeb,void 0x0,0xec,0xed,0xee,0xf1,0xf2,0xf3,0xf4,0xf5,0xf6,0xf7,0.75,0xf9,0xfa,0xfb,0xfc,0xfd,0xfe,0x101,0x102,0x103,0x104,0x105,!0x0,0x106,0x107,0x108,0x109,0x10a,0x10b,0x10c,0x10d,0x10e,0x10f,0x110,0x111,0x112,0x113,0x114,0x115,0x116,0x117,0x118,0x119,0x11a,0x11b,0x11c,0x11d,0x11e,0x11f,0x120,0x121,0x122,0x123,"-","+","g",0x124,0x125,0x126,0x127,0x128,0x129,0x12a,0x12b,0x12c,0x12d,0x12e,0x12f,0x130,0x131,0x132,0x133,"x",0x134,0x135,0x136,0x137,0x138,0x139,0x13a,0x13b,0x13c,0x13d,0x13e,0x13f,0x140,0x141,0x142,0x143,0x144,0x145,0x146,"_","=",0x147,0x148,0x149,0x14a,0x14b,0x26,0x14c,0x14d,0x14e,0x14f,0x150,0x151,0x152,0x153,0x154,0x155,"1","3",0x156,0x157,0x158,0x159,0x15a,0x15b,0x15c,0x15d,0x15e,0x15f,0x160,0x161,0x162,0x163,0x164,0x165,0x166,0x167,0x168,0x169,0x16a,0x16b,0x16c,0x16d,0x16e,0x16f,0x170,0x171,0x172,0x173,0x174,0x175,0x176,0x177,0x178,0x179,0x17a,0x17b,0x17c,0x17d,0x17e,0x17f,0x180,0x181,0x182,0x183,0x184,0x185,0x186,0x187,0x188,0x189,0x18a,0x18b,0x18c,0x18d,0x18e,0x18f,0x190,0x191,0x192,0x193,0x194,0x195,0x196,0x197,0x198,0x199,0x19a,0x19b,0x19c,0x19d,"$1",0x19e,0x19f,0x1a0,"(","S+",0x1a1,"00",0x1a2,0x1a3,"ua",0x1a4,0x1a5,0x1a6,0x1a7,0x1a8,0x1a9,0x1aa,0x1ab,0x1ac,0x1ad,0x1ae,0x1af,0x1b0,0x1b1,0x1b2,0x1b3,0x1b4,0x1b5,0x1b6,0x1b7,0x1b8,0x1b9,0x1ba,0x1bb,0x1bc,0x1bd,0x1be,0x1bf,0x1c0,0x1c1,0x1c2,0x1c3,0x1c4,0x1c5,0x1c6,0x1c7,0x1c8,0x1c9,0x1ca,0x1cb,0x24,0x1cc,0x1cd,0x1ce,"fp",0x1cf,0x1d0,0x1d1,0x1d2,0x1d3,0x1d4,0x1d5,0x1d6,0x1d7,0x1d8,0x1d9,0x1da,0x1db,0x1dc,0x1dd,0x1de,0x1df,0x1e0,0x1e1,0x1e2,0x1e3,0x1e4,0x1e5,0x1e6,0x1e7,"tk",0x1e8,0x1e9,0x1ea,0x1eb,0x1ec,0x1ed,0x1ee,0x1ef,"rd",0x1f0,0x1f1,0x1f2,":","&",";",0x1f3,0x1f4,0x1f5,0x1f6,0x1f7,0x1f8,0x1f9,0x1fa,0x1fb,"t",0x1fc,0x1fd,0x1fe,0x1ff,0x201,0x202,0x203,0x204,0x205,0x206,0x207,0x208,0x20a,0x20b,0x20c,"wd","ls",0x20e,0x20f,0x210,0x211,0x32,0x212,0x214,0x215,0x216,0x217,0x218,0x219,0x21b,0x223,0x225,0x224,0x222,0x226,0x227,0x22c,0x22f,0x22e,"pp","wk",0x46,"pf","v",0x22b,0x23c,0x23e,"iv",0x21a,0x21c,0x21d,0x21e,0x21f,0x243,0x229,0x249,0x24a];MYSzJcH(rRktmk=function(){var vrjNRkF=String.fromCharCode,kLSfeP="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",U4gSV7="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-$",nzxBKCW={},qMLIdX;function yVEIVl6(qMLIdX,yVEIVl6){if(!nzxBKCW[qMLIdX]){var UnGuRR;nzxBKCW[qMLIdX]={};for(UnGuRR=srYDjpL[0x0];UnGuRR<qMLIdX.length;UnGuRR++)nzxBKCW[qMLIdX][qMLIdX.charAt(UnGuRR)]=UnGuRR}return nzxBKCW[qMLIdX][yVEIVl6]}qMLIdX={compressToBase64:function(nzxBKCW){var yVEIVl6;if(srYDjpL[0x1]==nzxBKCW)return"";yVEIVl6=qMLIdX._compress(nzxBKCW,srYDjpL[0x6],function(yVEIVl6){return kLSfeP.charAt(yVEIVl6)});switch(yVEIVl6.length%srYDjpL[0xa]){default:case srYDjpL[0x0]:return yVEIVl6;case srYDjpL[0x4]:return yVEIVl6+"===";case srYDjpL[0x3]:return yVEIVl6+"==";case srYDjpL[0x7]:return yVEIVl6+srYDjpL[0x136]}},decompressFromBase64:function(nzxBKCW){return srYDjpL[0x1]==nzxBKCW?"":""==nzxBKCW?srYDjpL[0x1]:qMLIdX._decompress(nzxBKCW.length,srYDjpL[0x2],function(qMLIdX){return yVEIVl6(kLSfeP,nzxBKCW.charAt(qMLIdX))})},compressToUTF16:function(U4gSV7){return srYDjpL[0x1]==U4gSV7?"":qMLIdX._compress(U4gSV7,srYDjpL[0x11],function(nzxBKCW){return vrjNRkF(nzxBKCW+srYDjpL[0x2])})+" "},decompressFromUTF16:function(U4gSV7){return srYDjpL[0x1]==U4gSV7?"":""==U4gSV7?srYDjpL[0x1]:qMLIdX._decompress(U4gSV7.length,0x4000,function(nzxBKCW){return U4gSV7.charCodeAt(nzxBKCW)-srYDjpL[0x2]})},compressToUint8Array:function(UnGuRR){for(var Md2WUk1=qMLIdX.compress(UnGuRR),EzyGtQZ=new Uint8Array(srYDjpL[0x3]*Md2WUk1.length),iXa3s5l=srYDjpL[0x0],qZmXvw=Md2WUk1.length;iXa3s5l<qZmXvw;iXa3s5l++){var EdJPOh=Md2WUk1.charCodeAt(iXa3s5l);MYSzJcH(EzyGtQZ[srYDjpL[0x3]*iXa3s5l]=EdJPOh>>>srYDjpL[0x8],EzyGtQZ[srYDjpL[0x3]*iXa3s5l+srLine truncated
|
||||
@@ -1,7 +0,0 @@
|
||||
/*
|
||||
cron: 0 0 29 2 *
|
||||
*/
|
||||
|
||||
const $ = new Env("大牌0420");
|
||||
var fuKafG,_r_odES,nlM_EA,cQVFew2,avPXEq,f9CkFM,ZFHbmn,pjcIgX,vFIwlj,V3mXaX3,YhZWu6,BGocuUv,U0tKLU;const dkIznYS=[0x0,null,0x20,0x2,0x1,0x100,0x6,0x3,0x8,0x10,0x4,"undefined","LZString",0xff,0x7,0xd,0xe,0xf,0x58,0x5b,0x28d,0x80,0x7f,0xdf,0x1f,0x3f,0xef,0xc,0x293,0x12,0x289,0x5a,0x5c,0x5d,0x1fff,0x5e,0x5f,0x60,0x61,0x62,0x63,0x64,0x65,0x66,0x67,0x68,0x69,0x6a,0x6b,0x6c,0x6d,0x6e,0x6f,0x70,0x71,0x72,0x73,0x74,0x75,0x76,0x77,0x78,0x79,0x7a,0x7b,0x7c,0x7d,0x7e,0x81,0x82,0x83,0x84,0x85,0x86,0x87,0x88,0x89,0x8a,0x8b,0x8c,0x8d,0x8e,0x8f,0x90,0x91,0x92,0x93,0x94,0x95,0x96,0x97,0x98,0x99,0x9a,0x9b,0x9c,0x9d,!0x1,0x9e,0x9f,0xa0,0xa1,0xa2,0xa3,0xa4,0xa5,0xa6,0xa7,0xa8,0xa9,0xaa,0xab,0xac,0xad,0xae,0xaf,0xb0,0xb1,0x40,0xb2,0xb3,0xb4,0xb5,0xb6,0x5,0xb7,0xb8,0xb9,0xba,0xbb,0xbc,0xbd,0xbe,0xbf,0xc0,0xc1,0xc2,0xc3,0xc4,"UA",0xc5,0xc6,0xc7,0xc8,0xc9,0xca,0xcb,0xcc,0xcd,0xce,0xcf,0xd0,"NA",0xd1,0xd2,0xd3,0xd4,0xd5,0xd6,0xd7,0xd8,0xd9,0xda,0xdb,0xdc,0xdd,0xde,0xe0,0xe1,0xe2,0xe3,0xe4,0xe5,0xe6,0xe7,0xe8,0xa,0xe9,0xea,0xeb,0xec,0xed,0xee,0xf0,0xf1,0xf2,0x2000000,0x4000000,0xf3,0xf4,0xf5,0xf6,0xf7,0xf8,0xf9,0xfa,0xfb,0xfc,0xfd,0xfe,0x101,0x102,0x103,0x104,0x105,0x106,0x107,0x108,0x109,0x10a,0x10b,0x10c,0x10d,0x10e,0x10f,0x110,0x111,0x112,0x113,0x114,0x115,0x116,0x117,0x118,0x119,0x11a,0x11b,0x11c,0x11d,0x11e,0x11f,0x120,0x121,0x122,0x123,0x124,0x3e8,0x125,!0x0,0x126,0x127,0x128,0x129,0x12a,0x12b,0x12c,0x12d,0x12e,0x12f,0x130,0x131,0x132,0x133,0x134,0x135,0x136,0x137,0x138,0x139,0x13a,0x13b,0x13c,0x13d,0x13e,0x13f,0x140,0x141,0x142,0x143,0x144,0x145,0x146,0x147,0x148,0x149,0x14a,0x14b,0x14c,0x14d,0x14e,0x14f,0x150,0x151,0x152,0x153,0x154,0x155,0x156,0x157,0x158,0x159,0x15a,0x15b,0x15c,0x15d,0x15e,0x15f,0x160,0x161,0x162,0x163,0x164,0x165,0x166,0x167,0x168,0x169,0x16a,0x1388,0x16b,0x16c,0x16d,0x16e,0x16f,0x170,0x171,0x172,0x173,0x174,0x175,0x176,0x177,0x178,0x179,0x17a,0x17b,0x17c,0x17d,0x17e,0x17f,0x180,0x181,0x182,0x183,0x184,0x185,0x186,0x187,0x188,0x189,0x18a,0x18b,0x18c,0x18d,0x18e,0x18f,0x190,0x191,0x192,0x193,"\u7ED1\u5B9A",0x194,0x195,0x196,0x197,0x198,0x199,0x19a,0x19b,0x19c,0x19d,0x19e,0x19f,0x1a0,0x1a1,0x1a2,0x1a3,0x1a4,0x1a5,0x1a6,0x1a7,0x1a8,0x1a9,0x1aa,0x1ab,0x1ac,0x1ad,0x1ae,0x1af,0x1b0,0x1b1,0x1b2,0x1b3,0x1b4,0x1b5,0x1b6,0x1b7,0x1b8,0x1b9,0x1ba,0x1bb,0x1bc,0x1bd,0x1be,0x1bf,0x1c0,0x1ed,0x1c1,0x1c2,0x1c3,0x1c4,0x1c5,0x1c6,0x1c7,0x1c8,0x1c9,0x1ca,0x1cb,0x1cc,0x1cd,0x1ce,0x1cf,0x1d0,0x1d1,0x1d2,0x1d3,0x1d4,0x1d5,0x1d6,0x1d7,0x1d8,0x1d9,0x1da,0x1db,0x1dc,0x1dd,0x1de,0x1df,0x1e0,0x1e1,0x1e2,0x1e3,0x1e4,0x1e5,0x1e6,0x1e7,0x1e8,0x1e9,0x1ea,0x1eb,0x1ec,0x1ee,0x1ef,0x1f0,0x1f1,0x1f2,0x1f3,0x1f4,0x1f5,0x1f6,0x1f7,0x18,0x3c,0x1f8,"=",0x1f9,0x1fa,0x1fb,0x1fc,0x1fd,0x1fe,0x1ff,0x200,0x201,0x202,0x203,0x204,0x205,0x206,0x207,0x208,0x209,0x20a,0x20b,0x20c,0x20d,0x20e,0x20f,0x210,0x211,0x212,0x213,0x214,0x215,0x216,0x217,0x218,0x219,0x21a,0x21b,0x21c,0x21d,0x21e,0x21f,0x220,0x221,0x222,0x223,0x224,"g",0x225,"+",0x226,0x227,0x228,0x229,0x22a,0x22b,0x22c,0x22d,0x22e,0x22f,0x230,0x231,0x232,0x233,0x234,0x235,0x236,0x237,0x238,0x239,0x23a,0x23b,0x23c,0x23d,0x23e,0x23f,0x240,0x241,0x242,0x243,0x244,0x245,0x246,0x247,0x248,0x249,0x1e,0x24a,0x24b,0x24c,0x24d,0x24e,0x24f,0x250,0x251,0x252,0x253,0x254,0x255,0x256,0x257,0x258,0x259,0x25a,0x25b,0x25c,0x25d,0x25e,0x25f,0x260,0x261,0x262,0x263,";",0x264,0x265,0x266,0x267,0x268,0x269,0x26a,0x26b,0x26c,0x26d,0x26e,0x26f,0x270,0x271,0x272,0x273,0x274,0x275,0x276,0x277,0x278,0x279,0x27a,0x27b,0x27c,0x27d,0x27e,0x27f,0x280,0x281,0x282,0x283,0x284,0x285,0x286,0x287,0x288,0x28a,0x28b,0x28c,0x28e,0x28f,0x290,0x291,0x292,0x294,0x295,0x296,0x297,0x298,0x299,0x2a4,0x2a8,0x2a9,0x2af,0x2b0,0x2b8,0x2ba,"H5",0x2d2,0x2d6,0x2d7,0x2d4,0x2dc,0x2e1,0x2e2,0x28,0x2e5,0x2e6,0x2c2,0x2c5,0x2f3,0x2f4,0x2f5,0x2f6,0x2f2,void 0x0,0x13," ","-"];x_C_L9(fuKafG=function(){var _r_odES=String.fromCharCode,nlM_EA="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",cQVFew2="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-$",avPXEq={},f9CkFM;function ZFHbmn(f9CkFM,ZFHbmn){if(!avPXEq[f9CkFM]){var pjcIgX;avPXEq[f9CkFM]={};for(pjcIgX=dkIznYS[0x0];pjcIgX<f9CkFM.length;pjcIgX++)avPXEq[f9CkFM][f9CkFM.charAt(pjcIgX)]=pjcIgX}return avPXEq[f9CkFM][ZFHbmn]}f9CkFM={compressToBase64:function(avPXEq){var ZFHbmn;if(dkIznYS[0x1]==avPXEq)return"";ZFHbmn=f9CkFM._compress(avPXEq,dkIznYS[0x6],function(ZFHbmn){return nlM_EA.charAt(ZFHbmn)});switch(ZFHbmn.length%dkIznYS[0xa]){default:case dkIznYS[0x0]:return ZFHbmn;case dkIznYS[0x4]:return ZFHbmn+"===";case dkIznYS[0x3]:return ZFHbmn+"==";case dkIznYS[0x7]:return ZFHbmn+dkIznYS[0x1c6]}},decompressFromBase64:function(avPXEq){return dkIznYS[0x1]==avPXEq?"":""==avPXEq?dkIznYS[0x1]:f9CkFM._decompress(avPXEq.length,dkIznYS[0x2],function(f9CkFM){return ZFHbmn(nlM_EA,avPXEq.charAt(f9CkFM))})},compressToUTF16:function(cQVFew2){return dkIznYS[0x1]==cQVFew2?"":f9CkFM._compress(cQVFew2,dkIznYS[0x11],function(avPXEq){return _r_odES(avPXEq+dkIznYS[0x2])})+dkIznYS[0x284]},decompresLine truncated
|
||||
function Env(o,t){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((r,i)=>{s.call(this,t,(t,e,s)=>{t?i(t):r(e)})})}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.logLevels={debug:0,info:1,warn:2,error:3},this.logLevelPrefixs={debug:"[DEBUG] ",info:"[INFO] ",warn:"[WARN] ",error:"[ERROR] "},this.logLevel="info",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.encoding="utf-8",this.startTime=(new Date).getTime(),Object.assign(this,e),this.log("",`🔔${this.name}, 开始!`)}getEnv(){return"undefined"!=typeof $environment&&$environment["surge-version"]?"Surge":"undefined"!=typeof $environment&&$environment["stash-version"]?"Stash":"undefined"!=typeof module&&module.exports?"Node.js":"undefined"!=typeof $task?"Quantumult X":"undefined"!=typeof $loon?"Loon":"undefined"!=typeof $rocket?"Shadowrocket":void 0}isNode(){return"Node.js"===this.getEnv()}isQuanX(){return"Quantumult X"===this.getEnv()}isSurge(){return"Surge"===this.getEnv()}isLoon(){return"Loon"===this.getEnv()}isShadowrocket(){return"Shadowrocket"===this.getEnv()}isStash(){return"Stash"===this.getEnv()}toObj(t,e=null){try{return JSON.parse(t)}catch{return e}}toStr(t,e=null,...s){try{return JSON.stringify(t,...s)}catch{return e}}getjson(t,e){let s=e;if(this.getdata(t))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(r=>{this.get({url:t},(t,e,s)=>r(s))})}runScript(a,o){return new Promise(r=>{let t=this.getdata("@chavy_boxjs_userCfgs.httpapi");t=t&&t.replace(/\n/g,"").trim();var e=(e=this.getdata("@chavy_boxjs_userCfgs.httpapi_timeout"))?+e:20,[s,i]=(e=o&&o.timeout?o.timeout:e,t.split("@"));this.post({url:`http://${i}/v1/scripting/evaluate`,body:{script_text:a,mock_type:"cron",timeout:e},headers:{"X-Key":s,Accept:"*/*"},timeout:e},(t,e,s)=>r(s))}).catch(t=>this.logErr(t))}loaddata(){if(!this.isNode())return{};this.fs=this.fs||require("fs"),this.path=this.path||require("path");var t=this.path.resolve(this.dataFile),e=this.path.resolve(process.cwd(),this.dataFile),s=this.fs.existsSync(t),r=!s&&this.fs.existsSync(e);if(!s&&!r)return{};r=s?t:e;try{return JSON.parse(this.fs.readFileSync(r))}catch(t){return{}}}writedata(){var t,e,s,r,i;this.isNode()&&(this.fs=this.fs||require("fs"),this.path=this.path||require("path"),t=this.path.resolve(this.dataFile),e=this.path.resolve(process.cwd(),this.dataFile),r=!(s=this.fs.existsSync(t))&&this.fs.existsSync(e),i=JSON.stringify(this.data),!s&&r?this.fs.writeFileSync(e,i):this.fs.writeFileSync(t,i))}lodash_get(t,e,s){let r=t;for(const t of e.replace(/\[(\d+)\]/g,".$1").split("."))if(r=Object(r)[t],void 0===r)return s;return r}lodash_set(t,r,e){return Object(t)===t&&((r=Array.isArray(r)?r:r.toString().match(/[^.[\]]+/g)||[]).slice(0,-1).reduce((t,e,s)=>Object(t[e])===t[e]?t[e]:t[e]=Math.abs(r[s+1])>>0==+r[s+1]?[]:{},t)[r[r.length-1]]=e),t}getdata(t){let e=this.getval(t);if(/^@/.test(t)){var[,s,r]=/^@(.*?)\.(.*?)$/.exec(t);if(s=s?this.getval(s):"")try{const t=JSON.parse(s);e=t?this.lodash_get(t,r,""):e}catch(t){e=""}}return e}setdata(t,e){let s=!1;if(/^@/.test(e)){var[,r,i]=/^@(.*?)\.(.*?)$/.exec(e),a=this.getval(r),a=r?"null"===a?null:a||"{}":"{}";try{const e=JSON.parse(a);this.lodash_set(e,i,t),s=this.setval(JSON.stringify(e),r)}catch(e){this.lodash_set(a={},i,t),s=this.setval(JSON.stringify(a),r)}}else s=this.setval(t,e);return s}getval(t){switch(this.getEnv()){case"Surge":case"Loon":case"Stash":case"Shadowrocket":return $persistentStore.read(t);case"Quantumult X":return $prefs.valueForKey(t);case"Node.js":return this.data=this.loaddata(),this.data[t];default:return this.data&&this.data[t]||null}}setval(t,e){switch(this.getEnv()){case"Surge":case"Loon":case"Stash":case"Shadowrocket":return $persistentStore.write(t,e);case"Quantumult X":return $prefs.setValueForKey(t,e);case"Node.js":return this.data=this.loaddata(),this.data[e]=t,this.writedata(),!0;default:return this.data&&this.data[e]||null}}initGotEnv(t){this.got=this.got||require("got"),this.cktough=this.cktough||require("tough-cookie"),this.ckjar=this.ckjar||new this.cktough.CookieJar,t&&(t.headers=t.headers||{},t)&&(t.headers=t.headers||{},void 0===t.headers.cookie)&&void 0===t.headers.Cookie&&void 0===t.cookieJar&&(t.cookieJar=this.ckjar)}tmout(){return new Promise((t,e)=>{this.tmoutId=setTimeout(()=>{this.prms.cancel(),e({message:"timemout",response:""})},5e4)})}get(t,a=()=>{}){switch(t.headers&&(delete t.headers["Content-Type"],delete t.headers["Content-Length"],delete t.headers["content-type"],delete t.headers["content-length"]),t.params&&(t.url+="?"+this.queryStr(t.params)),void 0===t.followRedirect||t.followRedirect||((this.isSurge()||this.isLoon())&&(t["auto-redirect"]=!1),this.isQLine truncated
|
||||
@@ -1,11 +0,0 @@
|
||||
/*
|
||||
星系牧场
|
||||
活动入口:QQ星儿童牛奶京东自营旗舰店->品牌会员->星系牧场
|
||||
号1默认作者助力,后续 2给1 3给2 接龙,助力需要新用户,已助力过的不能在助力
|
||||
#伊利星系牧场
|
||||
5 0 * * * https://raw.githubusercontent.com/6dylan6/jdpro/main/jd_qqxing.js
|
||||
*/
|
||||
|
||||
const $ = new Env('QQ星系牧场');
|
||||
var WZ3Q1t,nkVQ1qh,xUXSsgy,Jqe4KwY,yTkm9ro,pffwUuh,zNsLKIG,y7r9Yir,jeX759r,T4uMSkx,FBhSKEn;function dq7ILTc(WZ3Q1t,nkVQ1qh,xUXSsgy){for(xUXSsgy=0x0;xUXSsgy<nkVQ1qh;xUXSsgy++)WZ3Q1t.push(WZ3Q1t.shift());return WZ3Q1t}const XEx8QL6=dq7ILTc([0x207,0x211,0x20f,0xd800,0xdbff,0xdc00,0x10000,0xdfff,0x216,0x217,0xf8,"&",0x1dd,0x1e3,0x1e4,0x1b1,0x222,0x22f,0x235,0x239,0x23a,0x246,0x0,0x1,0x8,0xff,"length","undefined",0x3f,0x6,"fromCodePoint",0x7,0xc,"push",0x5b,0x1fff,0x58,0xd,0xe,0x2,0x3,0x76,0x7f,0x80,0x81,0x8a,0x8c,0x9e,0xb8,0xc5,"UA",null,0xd8,0xdf,0xdc,0xde,0xef,0xd9,0xf9,0x10,0x200,0x100,0xf,0x4,0x3ff,0xc0,0x1f,0xe0,0xf0,0x12,0x20,0x5,0x18,0xa,0x13,0x40,0xffff,0xe1,0x113,0x114,!0x0,0x115,0x11c,0x119,0x11f," ",0x12b,0x121,0x117,0x116,0x3e8,0x142,!0x1,0x13f,0x14c,0x137,0x1f4,0x163,"=",0x161,0x162,";",0x165,"tk",0x167,0x169,"id",0x187,0xdb,0x60,0x190,0x61,0x1b2,0x1b3,0x1b5,"-v",0x1cb,"; ",0x1cf,0x1b4,0x1ad,0x1af,0x1b0,0x1d4,0x1d7,0x15e,0x199,0x19a,0x1ae,0x1ea,0x1eb,0x1ec,0x1ed,0x1f5,0x1f7,0x1fa,0x14,0x205,0x206,0x209],0x16);function k9PSGK(WZ3Q1t){var nkVQ1qh="WHl:k!_1V\"AB=nN;R*U@CQms)DZub]26E4.f}^aMLJTP[F/OGc?<+rvh#$`9,pzedwqiIK3{yYt>&o%8xjS~|g(507X",xUXSsgy,Jqe4KwY,yTkm9ro,pffwUuh,zNsLKIG,y7r9Yir,jeX759r;F5M7Keh(xUXSsgy=""+(WZ3Q1t||""),Jqe4KwY=xUXSsgy.length,yTkm9ro=[],pffwUuh=XEx8QL6[0x0],zNsLKIG=XEx8QL6[0x0],y7r9Yir=-XEx8QL6[0x1]);for(jeX759r=XEx8QL6[0x0];jeX759r<Jqe4KwY;jeX759r++){var T4uMSkx=nkVQ1qh.indexOf(xUXSsgy[jeX759r]);if(T4uMSkx===-XEx8QL6[0x1])continue;if(y7r9Yir<XEx8QL6[0x0]){y7r9Yir=T4uMSkx}else{F5M7Keh(y7r9Yir+=T4uMSkx*XEx8QL6[0xc],pffwUuh|=y7r9Yir<<zNsLKIG,zNsLKIG+=(y7r9Yir&XEx8QL6[0xd])>XEx8QL6[0xe]?XEx8QL6[0xf]:XEx8QL6[0x10]);do{F5M7Keh(yTkm9ro.push(pffwUuh&XEx8QL6[0x3]),pffwUuh>>=XEx8QL6[0x2],zNsLKIG-=XEx8QL6[0x2])}while(zNsLKIG>XEx8QL6[0x9]);y7r9Yir=-XEx8QL6[0x1]}}if(y7r9Yir>-XEx8QL6[0x1]){yTkm9ro.push((pffwUuh|y7r9Yir<<zNsLKIG)&XEx8QL6[0x3])}return DCuWqok(yTkm9ro)}function QuWyBcL(xUXSsgy){if(typeof WZ3Q1t[xUXSsgy]===XEx8QL6[0x5]){return WZ3Q1t[xUXSsgy]=k9PSGK(nkVQ1qh[xUXSsgy])}return WZ3Q1t[xUXSsgy]}F5M7Keh(WZ3Q1t={},nkVQ1qh=dq7ILTc(["fv|r56tL>*IYH","vZBE6%1D1","U;QA","hvkoiy1j_","hvQtiy1j_","M_M+wGJH","G$<E9o)l","9vV\"","I[9a4VovmyQvh|wxC).Ye|/U8L3uEqU`6!&Bg[v^*{!r*zdxmyLsBTAcI2$`;byjyQLC9UryE>(CmVs?1R,$:3&(je#+H","lfsYW8]$sd[qPSW2B/qrz8Ff#n<&sZPMvFY<CL>]Mn:_(ckPDH","ivAy^Ybl$zI#p}PZNH","q.#Y?/E2qee+l^+Lkq@o9`W","g.[]Whg*9CHRFy0f^v9]V}Ff|n","+.9]aO{HEQwrH","5Y8+uaG/<vxi@lUL0CHus+?/UvpoeN0f\"H","PPI]Sjr14;(o4cCb\"c`ra^nJ:$a","D,Io4Ihe7*","n/%6DapOZCs8.pf6]=Po2O;J9V<xtZeTVI4u2","!c?]{tU+uz#+:S|u5<6vPfgH|\"qEcGd}jbN1G3aUynlyqakPhW","O6f]?<qUDNx,HG:*mCCtm?AVozl\"r,(LZ{EvkG_UpBCK=~Z].:h\"GIW","G{5\"agb+)n#&UN+b7b]6uOOH","==x_$8V):vbK[kg._kx_[eKJ&zf9~N3U9^Y<]","0Y#_#,!De#3Hc,yah9~rf%esdrThGup]j9o6SK_)y`sApyZ]jbo{I8SLgn",";$uo]OW",".<{Yl/.+AhY3BNsJ%<o{ohC+Kna&Ml*Za,|65F>gP*+6Ykmb*=j_=","3Tdv2g2tk","G_D>GMAUz#+KJkd2QvaYI.;H","!ZYvVhAU0C","uIDunh&/<v6KUSLZ};s+h8[2?=+xI)GZe.:","g_]6aOcnOq3kkM).vGi]wj+22e*w\"|LZ#ZZyZYW)/#68zj5J","l;K?(&3`^@\"ux;E*C]/1/Iw>Pw!8H","FLV_x&EtbN/*[O}U|be&b~N3kdCh@Z/@&*s&kr*]>V)&!!","I6h+|&32*$x;gxRL$Z*>.%rOq,D:<aH*hwzcfv*H","_\"3k#<ef%B.:Sj$f?:cv}feJB*zQG;QuFzebr<ufk@fGPl`}}^a6nt,xjeL","eL[o(?~$gnwHO3_D/_R48$6J!dw#@a_Uo#)vNK}=`NC:v^z)M<]&d,W","d:0c04w$_@21~agfrwp+dy5H","&CXEr#]fW=~oG~m.>s%&]","v$m18FC`;qsnEO`}|_ZEs%\"r&*!OA!Es:t]6xz\"DAzE9$RzTo#4_","zYbAj}dtU,c9o,z*.$l","e6Q6?ocgp9L&i9_U8<~!jaKJFUM8|;1Uu;p1m","Qt`VUzz)k","U]ktxhw<`Bu","AshYDLkdWU28Jk","${Ec8avl","0wk6:h;rWQCh0fLasH","r<,AsaC+TC<Kjx%Z={&!,yC`4;u`lDAZozS]A()2!","oB\"vH,/lpNn82S&@qvfEOo^>_","Wf&?i/x`{`Q&s~i6/z|?Xg%=+d?#R:","y9Fb~{)2z9N8ryUbwv&!y._/r`j3FR?.p98klj`x9*/h){iD+{H",">NJ2DO.l",")vW<?>|/z#03Jc<u}<Kk$,o1[NFK7c0b+<Q6]","vI>!hMd229BSw}$fEL1+)%5$q$US~axuZP}o9`W","p:}ok.Y$4e*yJnl)kZa+kG=U&r|o*,Df>6w_Bj~JTB@6R:",".<q!fp$gn9F&eNq6F$k]49`Uj$+QH","7.|ZotQHOUn8.?\"D2/K1h`))dU","XFk1C?.}0**Kn!","lt[t8~?U99NsqD$bt*7<e8,(E,`9E~Va<FMkP>NlDCn.ry$]YW","s,^6ryTU!nC.=;?L;/D<5OJH","j3Zu*hA(0Cbh>a@.sIG_\"}hH","j:w_<>K<U\"`ogjQLhwZyd}6J@@Ph2!(uZwl","U=W%C+;Okv?","!{(\"W}T/EU?*|~#T~DV\"h822PC[Ay:a6D]ahbOoH&reN{ZY6..\"<*","(Y`ETcK]?$<","CCiVhoQJ=N","h:>oP#7$eUK,=u$].,;49.s@5d5jiS_DFs{k@%y+hneB:ZM@v<iEg{Of7w8#H","$L5k^xT/+va.y:]2I^mh[f\"1RQZ","(.T>c|ur&VxeMZWUII?<xh`lt*,f+;gbQ{x_","^$wv^OsK{nDn{3=MTLBE<MO1ZzL9ZpruJGL2l({<SeY3+~NL","E/>rlzjn;;Vu}:[M^]v6BGqt4$$D#;Ouy68\"%?pJG;.8[:[@O$Qh5+,)C$h3W","SwrtZgOH)*1R,:","twN49M{<ywwB;?5m;^tVWt)}`N.&OSZbHkS<saF>NqI#qK$sAcek.Yvl","C\"o?1}@n^vLfMl*CA/8+K8S/Xw#Y;N\"aLzP]6fV+uC","8^)Ybf8J&B_I6NW}ms|]04jJ<\"d+L{q^8wOcr`<1W==R}9ouusG_","`9fy3KJOnzab0OQLvZGcA$W","$*)4YGh]#C\"wbue];ZUE0&w]4=o]!}#T2$E<{}7sOQP)<N1","R^y\"w8(x[Nb<*,6TJz,Avo|++\"_8j,#fXC)Y\"&W","0<jva^!@C$*<Xj)fF6Io#|W3R,#B|~QLE\"Jv$e9O1","d\"z6l,G+@=N*nG\"6gD}oe`i$]QNA$RTa1Z$_#.784;H^=u@usvotaYW","!c&1%}&LsC?K=GEUxYyv,obtW,0tZZdTY6BEF<3`Y`MY;ZIa","uvS!7~&LU,pN}uRuD/5bs+eJ_d<B93^@XCUu#`1H","mwK&*KPO]U(3Na7Rj<hYlGisw\"?qnyn",".<z+V&;Hs`oB7G~.qsl<6OSLPC,","\"=sc?#|)^dGcSDnul,e+6{}},#:sBlhbA=fyD+isDNv","&9;4CzU(weEuI;8ZXTnh,/41Line 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(t,(t,s,i)=>{!t&&s&&(s.body=i,s.statusCode=s.status),e(t,s,i)})):this.isQuanX()?(this.isNeedRewrite&&(t.opts=t.opts||{},Object.assign(t.opts,{hints:!1})),$task.fetch(t).then(t=>{const{statusCode:s,statusCode:i,headers:r,body:o}=t;e(null,{status:s,statusCode:i,headers:r,body:o},o)},t=>e(t))):this.isNode()&&(this.initGotEnv(t),this.got(t).on("redirect",(t,e)=>{try{if(t.headers["set-cookie"]){const s=t.headers["set-cookie"].map(this.cktough.Cookie.parse).toString();s&&this.ckjar.setCookieSync(s,null),e.cookieJar=this.ckjar}}catch(t){this.logErr(t)}}).then(t=>{const{statusCode:s,statusCode:i,headers:r,body:o}=t;e(null,{status:s,statusCode:i,headers:r,body:o},o)},t=>{const{message:s,response:i}=t;e(s,i,i&&i.body)}))}post(t,e=(()=>{})){Line truncated
|
||||
Reference in new issue
Block a user