mirror of
https://github.com/6dylan6/jdpro.git
synced 2026-11-06 16:26:43 +08:00
1
This commit is contained in:
1 parent
2e3115ff17
commit
3f50504363
1 file changed
+1
-1
+1
-1
@@ -2,5 +2,5 @@
|
||||
25 0,16 * * * jd_global_task_.js
|
||||
*/
|
||||
const $ = new Env('京豆国际频道任务');
|
||||
var _0xodO='jsjiami.com.v7';const _0x5ef219=_0x1422;(function(_0x470062,_0x51a0f0,_0xe481a4,_0x50ba5c,_0x2a4620,_0x142020,_0x35807d){return _0x470062=_0x470062>>0x9,_0x142020='hs',_0x35807d='hs',function(_0x1f5451,_0x557b9c,_0x5ccf45,_0x1fc537,_0x16dce2){const _0x14c8ff=_0x1422;_0x1fc537='tfi',_0x142020=_0x1fc537+_0x142020,_0x16dce2='up',_0x35807d+=_0x16dce2,_0x142020=_0x5ccf45(_0x142020),_0x35807d=_0x5ccf45(_0x35807d),_0x5ccf45=0x0;const _0x305e5e=_0x1f5451();while(!![]&&--_0x50ba5c+_0x557b9c){try{_0x1fc537=parseInt(_0x14c8ff(0x380,'H]cD'))/0x1*(-parseInt(_0x14c8ff(0x1ed,'uZIv'))/0x2)+parseInt(_0x14c8ff(0x4c2,'!)!s'))/0x3+-parseInt(_0x14c8ff(0x33f,'dUnd'))/0x4*(-parseInt(_0x14c8ff(0x258,'1ONT'))/0x5)+parseInt(_0x14c8ff(0x3b7,'DDAe'))/0x6*(parseInt(_0x14c8ff(0x333,'kRZE'))/0x7)+parseInt(_0x14c8ff(0x360,'l%Zk'))/0x8+parseInt(_0x14c8ff(0x4b3,'*)A9'))/0x9*(parseInt(_0x14c8ff(0x1e9,'S7A!'))/0xa)+-parseInt(_0x14c8ff(0x4da,'txfT'))/0xb;}catch(_0x3e3ca0){_0x1fc537=_0x5ccf45;}finally{_0x16dce2=_0x305e5e[_0x142020]();if(_0x470062<=_0x50ba5c)_0x5ccf45?_0x2a4620?_0x1fc537=_0x16dce2:_0x2a4620=_0x16dce2:_0x5ccf45=_0x16dce2;else{if(_0x5ccf45==_0x2a4620['replace'](/[YgAHeDlhGQxOPdUyLNWw=]/g,'')){if(_0x1fc537===_0x557b9c){_0x305e5e['un'+_0x142020](_0x16dce2);break;}_0x305e5e[_0x35807d](_0x16dce2);}}}}}(_0xe481a4,_0x51a0f0,function(_0x87f53,_0x114df8,_0x3f36bc,_0x25bf64,_0x38e18b,_0x5d3cca,_0x5db06c){return _0x114df8='\x73\x70\x6c\x69\x74',_0x87f53=arguments[0x0],_0x87f53=_0x87f53[_0x114df8](''),_0x3f36bc=`\x72\x65\x76\x65\x72\x73\x65`,_0x87f53=_0x87f53[_0x3f36bc]('\x76'),_0x25bf64=`\x6a\x6f\x69\x6e`,(0x17df9a,_0x87f53[_0x25bf64](''));});}(0x18200,0x630b3,_0x5f21,0xc3),_0x5f21)&&(_0xodO=0x19ee);const _0x13a1b7=$[_0x5ef219(0x35f,'txfT')]()?require(_0x5ef219(0x45d,'o2wk')):'',_0xb4797d=$[_0x5ef219(0x4e4,'4Q6N')]()?require(_0x5ef219(0x39a,'H]cD')):'',_0x1690d2=require(_0x5ef219(0x561,'DDAe')),_0x4ef649=require(_0x5ef219(0x34b,'3$51')),_0x511480=require(_0x5ef219(0x4ec,'WVWw')),_0x2bac81=require(_0x5ef219(0x2d5,'$DJp'));let _0x42d851=!![],_0x54e59a=[],_0x11973a='',_0x11eb8f='',_0x41c3bf={};if(process[_0x5ef219(0x584,'TboT')][_0x5ef219(0x430,'%HDP')]){const _0x497281=process[_0x5ef219(0x1ec,'5&v&')][_0x5ef219(0x407,'7nM0')]?(process[_0x5ef219(0x44a,'IBmA')][_0x5ef219(0x557,'ZIF4')]+_0x5ef219(0x2cb,'5&v&'))[_0x5ef219(0x221,'H]cD')]('&'):'';if(_0x497281=='')try{require(_0x5ef219(0x485,'3v$q')),_0x41c3bf=require(_0x5ef219(0x472,'HX9J')),$[_0x5ef219(0x49a,'!Ilh')]=_0x41c3bf[_0x5ef219(0x56a,'%d$v')]($[_0x5ef219(0x362,'3v$q')][_0x5ef219(0x1fa,'7nM0')]($)),$[_0x5ef219(0x519,'V1FN')]=_0x41c3bf[_0x5ef219(0x1cb,'8v)x')]($[_0x5ef219(0x4a3,'S7A!')][_0x5ef219(0x4fd,'VjVD')]($));}catch{$[_0x5ef219(0x3c5,'txfT')](_0x5ef219(0x225,'3v$q')),$[_0x5ef219(0x3ea,'gYpl')]=$[_0x5ef219(0x1f6,'IBmA')],$[_0x5ef219(0x4e7,'!)!s')]=$[_0x5ef219(0x4bb,'8v)x')];}else{if(_0x497281[_0x5ef219(0x229,'HX9J')](_0x32e31b=>process[_0x5ef219(0x349,'5&v&')][_0x5ef219(0x32c,'8v)x')][_0x5ef219(0x521,'v(Gi')](_0x32e31b))[_0x5ef219(0x520,'eRg#')]!=0x0)try{require(_0x5ef219(0x390,'cyY$')),_0x41c3bf=require(_0x5ef219(0x2db,'7nM0')),$[_0x5ef219(0x369,'H]cD')]=_0x41c3bf[_0x5ef219(0x29a,'jY(p')]($[_0x5ef219(0x2ff,'VjVD')][_0x5ef219(0x211,'8v)x')]($)),$[_0x5ef219(0x3b4,'muJU')]=_0x41c3bf[_0x5ef219(0x356,'S7A!')]($[_0x5ef219(0x289,'2XD3')][_0x5ef219(0x27c,'olC)')]($));}catch{$[_0x5ef219(0x216,'8v)x')](_0x5ef219(0x481,'a7Ua')),$[_0x5ef219(0x405,'kRZE')]=$[_0x5ef219(0x38e,'DDAe')],$[_0x5ef219(0x444,'WVWw')]=$[_0x5ef219(0x32f,'&rxE')];}else $[_0x5ef219(0x376,'%d$v')]=$[_0x5ef219(0x342,'3$51')],$[_0x5ef219(0x3fa,'2Q5y')]=$[_0x5ef219(0x357,'HX9J')];}}else $[_0x5ef219(0x42d,'Pfph')]=$[_0x5ef219(0x2d1,'dUnd')],$[_0x5ef219(0x57f,'4Q6N')]=$[_0x5ef219(0x44b,'gYpl')];if($[_0x5ef219(0x389,'*)A9')]()){Object[_0x5ef219(0x330,'4Q6N')](_0xb4797d)[_0x5ef219(0x1f5,'V1FN')](_0x29cf6f=>{const _0x58ef6a=_0x5ef219;_0x54e59a[_0x58ef6a(0x367,'*)A9')](_0xb4797d[_0x29cf6f]);});if(process[_0x5ef219(0x36e,'8v)x')][_0x5ef219(0x4b0,'IBmA')]&&process[_0x5ef219(0x584,'TboT')][_0x5ef219(0x569,'$DJp')]===_0x5ef219(0x288,'cyY$'))console[_0x5ef219(0x3f6,'VjVD')]=()=>{};}else _0x54e59a=[$[_0x5ef219(0x280,'muJU')](_0x5ef219(0x2dd,'cyY$')),$[_0x5ef219(0x446,'7nM0')](_0x5ef219(0x2ec,'3$51')),..._0x121231($[_0x5ef219(0x445,'5&v&')](_0x5ef219(0x2e2,'%d$v'))||'[]')[_0x5ef219(0x261,'DDAe')](_0x335655=>_0x335655[_0x5ef219(0x24f,'*)A9')])][_0x5ef219(0x2f2,'$DJp')](_0x4e5ce4=>!!_0x4e5ce4);!(async()=>{const _0x53b0c4=_0x5ef219,_0x46601d={'kFDFP':function(_0x871bd2,_0x304ef7){return _0x871bd2==_0x304ef7;},'kvMVF':_0x53b0c4(0x56e,'IBmA'),'IpVwE':_0x53b0c4(0x3d8,'l%Zk'),'wVNaG':_0x53b0c4(0x1fb,'WVWw'),'KbbUZ':_0x53b0c4(0x46d,'uZIv'),'LdDYQ':_0x53b0c4(0x510,'$DJp'),'zUgFE':function(_0x3757b1,_0x5c0cb5){return _0x3757b1!==_0x5c0cb5;},'YzJQv':_0x53b0c4(0x33e,'kRZE'),'VTdpP':_0x53b0c4(0x2f1,'5&v&'),'AzIxT':_0x53b0c4(0x1ef,'H]cD'),'ESkeY':_0x53b0c4(0x23c,'olC)'),'zUiNq':function(_0x14184f,_0x38b93e){return _0x14184f<_0x38b93e;},'RiGBW'Line truncated
|
||||
var _0xodC='jsjiami.com.v7';function _0x357b(_0x52fe3f,_0x2ae216){const _0x438632=_0x3319();return _0x357b=function(_0x417291,_0x277776){_0x417291=_0x417291-0x140;let _0x3319e1=_0x438632[_0x417291];if(_0x357b['XQrxtj']===undefined){var _0x357bce=function(_0x283407){const _0x1d6cb6='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0xa93cbf='',_0x411854='',_0x3c2288=_0xa93cbf+_0x357bce;for(let _0x2a52a0=0x0,_0x4c7abb,_0x23eb63,_0x13b8f9=0x0;_0x23eb63=_0x283407['charAt'](_0x13b8f9++);~_0x23eb63&&(_0x4c7abb=_0x2a52a0%0x4?_0x4c7abb*0x40+_0x23eb63:_0x23eb63,_0x2a52a0++%0x4)?_0xa93cbf+=_0x3c2288['charCodeAt'](_0x13b8f9+0xa)-0xa!==0x0?String['fromCharCode'](0xff&_0x4c7abb>>(-0x2*_0x2a52a0&0x6)):_0x2a52a0:0x0){_0x23eb63=_0x1d6cb6['indexOf'](_0x23eb63);}for(let _0x1db3a2=0x0,_0x14783b=_0xa93cbf['length'];_0x1db3a2<_0x14783b;_0x1db3a2++){_0x411854+='%'+('00'+_0xa93cbf['charCodeAt'](_0x1db3a2)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x411854);};const _0x5ace9a=function(_0x39438b,_0x58534e){let _0x5f16f9=[],_0x4a8ab1=0x0,_0x48b842,_0x5f4c01='';_0x39438b=_0x357bce(_0x39438b);let _0x28ccfc;for(_0x28ccfc=0x0;_0x28ccfc<0x100;_0x28ccfc++){_0x5f16f9[_0x28ccfc]=_0x28ccfc;}for(_0x28ccfc=0x0;_0x28ccfc<0x100;_0x28ccfc++){_0x4a8ab1=(_0x4a8ab1+_0x5f16f9[_0x28ccfc]+_0x58534e['charCodeAt'](_0x28ccfc%_0x58534e['length']))%0x100,_0x48b842=_0x5f16f9[_0x28ccfc],_0x5f16f9[_0x28ccfc]=_0x5f16f9[_0x4a8ab1],_0x5f16f9[_0x4a8ab1]=_0x48b842;}_0x28ccfc=0x0,_0x4a8ab1=0x0;for(let _0x4bbcdf=0x0;_0x4bbcdf<_0x39438b['length'];_0x4bbcdf++){_0x28ccfc=(_0x28ccfc+0x1)%0x100,_0x4a8ab1=(_0x4a8ab1+_0x5f16f9[_0x28ccfc])%0x100,_0x48b842=_0x5f16f9[_0x28ccfc],_0x5f16f9[_0x28ccfc]=_0x5f16f9[_0x4a8ab1],_0x5f16f9[_0x4a8ab1]=_0x48b842,_0x5f4c01+=String['fromCharCode'](_0x39438b['charCodeAt'](_0x4bbcdf)^_0x5f16f9[(_0x5f16f9[_0x28ccfc]+_0x5f16f9[_0x4a8ab1])%0x100]);}return _0x5f4c01;};_0x357b['CwqudM']=_0x5ace9a,_0x52fe3f=arguments,_0x357b['XQrxtj']=!![];}const _0x33db08=_0x438632[0x0],_0x1a8c74=_0x417291+_0x33db08,_0x812a9d=_0x52fe3f[_0x1a8c74];if(!_0x812a9d){if(_0x357b['cQCWkp']===undefined){const _0x2240c8=function(_0x228d8b){this['YZryNo']=_0x228d8b,this['VNfOeS']=[0x1,0x0,0x0],this['bvfSpc']=function(){return'newState';},this['nhQZfr']='\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*',this['NYUteC']='[\x27|\x22].+[\x27|\x22];?\x20*}';};_0x2240c8['prototype']['RhilAy']=function(){const _0x157245=new RegExp(this['nhQZfr']+this['NYUteC']),_0x3de553=_0x157245['test'](this['bvfSpc']['toString']())?--this['VNfOeS'][0x1]:--this['VNfOeS'][0x0];return this['TPpzKf'](_0x3de553);},_0x2240c8['prototype']['TPpzKf']=function(_0x1ea94d){if(!Boolean(~_0x1ea94d))return _0x1ea94d;return this['zCkDQd'](this['YZryNo']);},_0x2240c8['prototype']['zCkDQd']=function(_0x149bfe){for(let _0x2b6f1d=0x0,_0x9829ae=this['VNfOeS']['length'];_0x2b6f1d<_0x9829ae;_0x2b6f1d++){this['VNfOeS']['push'](Math['round'](Math['random']())),_0x9829ae=this['VNfOeS']['length'];}return _0x149bfe(this['VNfOeS'][0x0]);},new _0x2240c8(_0x357b)['RhilAy'](),_0x357b['cQCWkp']=!![];}_0x3319e1=_0x357b['CwqudM'](_0x3319e1,_0x277776),_0x52fe3f[_0x1a8c74]=_0x3319e1;}else _0x3319e1=_0x812a9d;return _0x3319e1;},_0x357b(_0x52fe3f,_0x2ae216);}function _0x3319(){const _0x35f403=(function(){return[...[_0xodC,'BgFjksMBjiJDaqmpTiV.yTJcBfoALkmJD.nrNvw7==','W50OW5O','W4xcGmk/WRu','WQxdK8kyC8oI','5P6p5AYf6kcvCvlcPX5oyZtcJCorW7pdPCkIxquUW73dMos8J+I1Go+8JEAwREAXO+wqHoEuVUs5GoEsPW','lmk4WRVcTa','yYddOSk1pG0pEq','fgxdI8otyG','W7FdOmoDCa','bSkVWPNcPMe','jxfhW6tcTq','wgBdJN8N','rCopW6dcOae','gmoaA8kTW6ZdRSkBW792ase','W7JcMSoEWRtcQW','5P+t5A2a6kovW57cHSk5mmopWONcLxedWPORFw5QW7zLW77KVzpOTQ/VV7ZMLllMSBpLKOtNLP7KU7ZNK5e','W69FWPFdS8o+WOWcWOtdOaW','sColW4SSW70goW','W5tcNCkJWRG6awpdKLG','W7f3y2JdMfjgWQRdRM/dVCksW5LljmoRDfTCzCoa','amkivW','WOpdPmkWD8oRl8kxcZi','ECkAWPPa','DNnMW4mW','CsqEW4BdHW','WQmQnG','W6fTW6NdMdrey2e','mmkPWQ7cLNK','W6q3W5nila','WQldNCkXxmom','deBcLCoE','W5DSvgRdKW','W5uAWPnNWOCWW7WYehVcJcbXpfddSSootf4','cmk1WRdcLeu','g39bW6lcGIRdIGddLq','W7NcOXNcQmoY','WPndWPzRWPW','WPHDWPrGWQGN','xq8pECoc','W4vSW4/dHcq','W7pdQmotAHVdGCkcWQT7W6i','W4/cHSkLWRC4b20','ASkauGNdOq','uSkcWRz3WQi','lCkmWPVcS34','WR3dUsaIaCkd','WRu2W7/dVSo7gmk2','zc/dRmk8','W75sW7JdSIG','gCoAA8kYW43cPSkAW7H8cIZdV1hdLdpdLCkN','i27cHSoVWPS','p8kWW7JdJmkLW4JcPCoTW5iV','W5PWWQddISooWQmQWRNdHdTVb8oyCmouWOmAwYxdQemfemoX','WQ15W7ddVSkH','iCoRtCkpW7FdN8k1W4TdoW','W7JcNYhcOCo4WOWh','W57dPSk1W5y','emkjAHC4','mmkXW4NcNLK','WRlcTqNcOYC','W6pcIrlcOmoS','WOL8W4ZdN8kN','WRZcM3tdGCkt','W6PQW6tdKa','C8o8W5NcVIRcQq','W6/dTSktW6bP','FmoOW4OJW6y','eCkXW4pdRCkP','W6NdR8oxAcFdI8kZWR0','gCobA8kKW5ldQSkn','W57cV8kKA8oRk8kkbctcQZzQWPRdGCkWhSkYv8ogvq','WPfXW4xdKCkj','CxdcHCkt','qSomW6ymW6y','W6akW557fG','g0JcL8oeWPTarMWvaW','5lQ45lI66lsZ5y2y','o8kOWRZcUfzrxG','WPXVW47dH8kf','nSk5W5tdNSkc','W4JdPmkJW5DkWQ0','ywVcK8kFnCoYWQ14aW','W7n2AhhdNL4','44gH5O2+56sL44ot6k2j5yEd6i2D5y2C5lQ/5lMU6lwZ5yYL5lIWW5a5W5tcUmoNpXJNMjFMJyBKVOJNL40mW7/dVrqAd+EzLEs5VEs7SoEVS+wlJULine 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
|
||||
Reference in new issue
Block a user