2024-07-03 16:44:49 +08:00
|
|
|
|
var iil='jsjiami.com.v7';const I1IlIi=iii1II;(function(llIiii,IlII,IiIili,llIiil,IlIi11,l1ll1l,III1iI){return llIiii=llIiii>>0x5,l1ll1l='hs',III1iI='hs',function(iIIlIl,iIIlIi,iilIll,iilIli,IlIi1I){const l1I1i1=iii1II;iilIli='tfi',l1ll1l=iilIli+l1ll1l,IlIi1I='up',III1iI+=IlIi1I,l1ll1l=iilIll(l1ll1l),III1iI=iilIll(III1iI),iilIll=0x0;const i111I=iIIlIl();while(!![]&&--llIiil+iIIlIi){try{iilIli=-parseInt(l1I1i1(0x196,'WQ31'))/0x1*(-parseInt(l1I1i1(0x1cb,'VSA6'))/0x2)+-parseInt(l1I1i1(0x210,'EBDx'))/0x3*(parseInt(l1I1i1(0x27d,'T$2s'))/0x4)+-parseInt(l1I1i1(0x322,'8N&O'))/0x5+-parseInt(l1I1i1(0xb1,'9NmH'))/0x6*(parseInt(l1I1i1(0x1d0,'z83Y'))/0x7)+parseInt(l1I1i1(0x2f7,'oENe'))/0x8*(parseInt(l1I1i1(0x3ad,'WQ31'))/0x9)+-parseInt(l1I1i1(0x2dd,'WQ31'))/0xa+parseInt(l1I1i1(0x17e,'sVqO'))/0xb;}catch(llIiiI){iilIli=iilIll;}finally{IlIi1I=i111I[l1ll1l]();if(llIiii<=llIiil)iilIll?IlIi11?iilIli=IlIi1I:IlIi11=IlIi1I:iilIll=IlIi1I;else{if(iilIll==IlIi11['replace'](/[yGdUlYkSXDFRAxpngTJBK=]/g,'')){if(iilIli===iIIlIi){i111I['un'+l1ll1l](IlIi1I);break;}i111I[III1iI](IlIi1I);}}}}}(IiIili,IlII,function(IiIilI,lIiIl1,iilIl1,l1II1,III1i1,IlI1,I1IlIl){return lIiIl1='\x73\x70\x6c\x69\x74',IiIilI=arguments[0x0],IiIilI=IiIilI[lIiIl1](''),iilIl1=`\x72\x65\x76\x65\x72\x73\x65`,IiIilI=IiIilI[iilIl1]('\x76'),l1II1=`\x6a\x6f\x69\x6e`,(0x159f9d,IiIilI[l1II1](''));});}(0x18e0,0x91572,Iii11l,0xc9),Iii11l)&&(iil=0xc1c);const notify=$[I1IlIi(0x1a0,'P!B@')]()?require('./sendNotify'):'',jdCookieNode=$[I1IlIi(0x44d,'sVqO')]()?require('./jdCookie.js'):'';let cookiesArr=[],cookie='',jdFruitShareArr=[],isBox=![],allMessage='',message='',subTitle='',option={},isFruitFinished=![];if($[I1IlIi(0x319,'QyP&')]()){Object['keys'](jdCookieNode)[I1IlIi(0xc2,')6Vh')](l1lil1=>{const l1ll1i=I1IlIi,i1lil={'meEnD':function(I1iIl,IilII){return I1iIl<IilII;},'CZhIk':function(ili1l,i1lii){return ili1l*i1lii;},'CRsge':function(iilIII,liI1Il){return iilIII===liI1Il;},'vybNf':'QYcxa'};if(jdCookieNode[l1lil1]){if(i1lil[l1ll1i(0x3a1,'WNKq')]('IsUVv',i1lil[l1ll1i(0x9c,'fEdu')])){let iiiI1I='';for(let lilI11=0x0;i1lil['meEnD'](lilI11,II11l);lilI11++){iiiI1I+=iI1Iil[il1iI[l1ll1i(0xf2,'QyP&')](i1lil[l1ll1i(0xe3,')6Vh')](i1iIii[l1ll1i(0x3ee,'JpmX')](),i1iIil[l1ll1i(0x3a0,'N!XX')]))];}return iiiI1I;}else cookiesArr['push'](jdCookieNode[l1lil1]);}});if(process['env'][I1IlIi(0x2c1,'yO9u')]&&process[I1IlIi(0x1c2,'2nWu')]['JD_DEBUG']===I1IlIi(0x124,'a]]1'))console[I1IlIi(0x1e7,'0(nQ')]=()=>{};}else cookiesArr=[$[I1IlIi(0x2cf,'T$QW')]('CookieJD'),$['getdata']('CookieJD2'),...jsonParse($[I1IlIi(0x31e,'2nWu')](I1IlIi(0x16e,'k4JU'))||'[]')[I1IlIi(0x1b0,'$1wB')](Ili1II=>Ili1II[I1IlIi(0x2be,'$1wB')])]['filter'](ili1i=>!!ili1i);console[I1IlIi(0x449,'4WUT')]('共'+cookiesArr[I1IlIi(0x2c0,'mG7C')]+I1IlIi(0x3b2,'P!B@'));let shareCodes=[],newShareCodes=[];const retainWater=$[I1IlIi(0x35d,'WlGp')]()?process['env'][I1IlIi(0x335,'WQ31')]?process[I1IlIi(0x32a,'W1d%')][I1IlIi(0x211,'kqxS')]:0x64:$[I1IlIi(0x336,'GM3H')](I1IlIi(0x398,'oENe'))?$['getdata'](I1IlIi(0x318,'fEdu')):0x64;let jdNotify=!![],jdFruitBeanCard=![],randomCount=$[I1IlIi(0x1e9,'kqxS')]()?0x14:0x5;const JD_API_HOST=I1IlIi(0x220,'0(nQ'),urlSchema=I1IlIi(0x3af,'k4JU'),common=require(I1IlIi(0x24e,'N!XX')),{H5st}=require('./utils/Rebels_H');let uuid=randomString(0x28),addressid=randomString(0xa,'123456789'),sid=randomString(0x20,I1IlIi(0x3f2,'p49i')),un_area=randomString(0x2,I1IlIi(0xd6,'sVqO'))+'-'+randomString(0x4,'1234567890')+'-'+randomString(0x4,I1IlIi(0x306,'S18b'))+'-'+randomString(0x5,I1IlIi(0x1e4,'WNKq')),lng=I1IlIi(0x2c5,'W1d%')+Math['floor'](Math['random']()*0x383+0x64),lat=I1IlIi(0x1ec,'dvmt')+Math[I1IlIi(0x1fa,'N!XX')](Math[I1IlIi(0x341,'p49i')]()*0x383+0x64),appId='',NowHour=new Date()[I1IlIi(0x1bc,'2nWu')](),llhelp=!![];const fs=require('fs');let boolneedUpdate=![],strShare=I1IlIi(0xa6,'sVqO'),Fileexists=fs[I1IlIi(0x1a6,'q63q')](strShare),TempShareCache=[];Fileexists&&(console['log'](I1IlIi(0x33d,'T@le')),TempShareCache=fs['readFileSync'](strShare,I1IlIi(0x3d5,'RCjY')),TempShareCache&&(TempShareCache=TempShareCache['toString'](),T
|
|
|
|
|
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"])
|