jdpro/jd_qqxing.js

11 lines
109 KiB
JavaScript
Raw Normal View History

2024-06-28 07:47:44 +00:00
/*
星系牧场
活动入口QQ星儿童牛奶京东自营旗舰店->品牌会员->星系牧场
号1默认作者助力,后续 2给1 3给2 接龙,助力需要新用户已助力过的不能在助力
#伊利星系牧场
2024-07-08 03:56:18 +00:00
45 0-23/6 * * * https://raw.githubusercontent.com/6dylan6/jdpro/main/jd_qqxing.js
2024-06-28 07:47:44 +00:00
*/
2024-07-08 03:56:18 +00:00
const $ = new Env('QQ星系牧场');
var _0xodQ='jsjiami.com.v7';const _0x3ef75f=_0x46cf;(function(_0x401146,_0x1d3302,_0x183c53,_0x225f13,_0x36e79d,_0x301ad0,_0x47b9f3){return _0x401146=_0x401146>>0x8,_0x301ad0='hs',_0x47b9f3='hs',function(_0x1fbe03,_0x4b1b22,_0x3da7a8,_0x190068,_0x1a8847){const _0x131ff7=_0x46cf;_0x190068='tfi',_0x301ad0=_0x190068+_0x301ad0,_0x1a8847='up',_0x47b9f3+=_0x1a8847,_0x301ad0=_0x3da7a8(_0x301ad0),_0x47b9f3=_0x3da7a8(_0x47b9f3),_0x3da7a8=0x0;const _0x4347bd=_0x1fbe03();while(!![]&&--_0x225f13+_0x4b1b22){try{_0x190068=-parseInt(_0x131ff7(0x4ca,'HSh8'))/0x1+parseInt(_0x131ff7(0x1c1,'!!(3'))/0x2*(-parseInt(_0x131ff7(0x541,'!!(3'))/0x3)+-parseInt(_0x131ff7(0x64b,'FCjc'))/0x4+-parseInt(_0x131ff7(0x2a0,'kq2i'))/0x5+parseInt(_0x131ff7(0x225,'X&GG'))/0x6*(parseInt(_0x131ff7(0x450,']%u]'))/0x7)+-parseInt(_0x131ff7(0x292,'nw6P'))/0x8*(-parseInt(_0x131ff7(0x4bf,']%u]'))/0x9)+parseInt(_0x131ff7(0x460,'elOC'))/0xa;}catch(_0x8a75d6){_0x190068=_0x3da7a8;}finally{_0x1a8847=_0x4347bd[_0x301ad0]();if(_0x401146<=_0x225f13)_0x3da7a8?_0x36e79d?_0x190068=_0x1a8847:_0x36e79d=_0x1a8847:_0x3da7a8=_0x1a8847;else{if(_0x3da7a8==_0x36e79d['replace'](/[NPYWkMOJSlDGberwXHK=]/g,'')){if(_0x190068===_0x4b1b22){_0x4347bd['un'+_0x301ad0](_0x1a8847);break;}_0x4347bd[_0x47b9f3](_0x1a8847);}}}}}(_0x183c53,_0x1d3302,function(_0x5c893c,_0x4da54b,_0xf58009,_0x1ad30b,_0x1c40b1,_0x280c17,_0x6c9d6e){return _0x4da54b='\x73\x70\x6c\x69\x74',_0x5c893c=arguments[0x0],_0x5c893c=_0x5c893c[_0x4da54b](''),_0xf58009=`\x72\x65\x76\x65\x72\x73\x65`,_0x5c893c=_0x5c893c[_0xf58009]('\x76'),_0x1ad30b=`\x6a\x6f\x69\x6e`,(0x17757f,_0x5c893c[_0x1ad30b](''));});}(0xca00,0xb4311,_0x3317,0xcc),_0x3317)&&(_0xodQ=_0x3ef75f(0x1a2,'sFBg'));const _0x5ae6bf=$[_0x3ef75f(0x4f0,'jShY')]()?require(_0x3ef75f(0x4e9,'qFy7')):'',_0x496694=$[_0x3ef75f(0x34d,'Z*ih')]()?require(_0x3ef75f(0x355,'Wkw*')):'',_0x4151d1=require(_0x3ef75f(0x1a4,'!uzN'));if(process[_0x3ef75f(0x23d,'%Z0b')][_0x3ef75f(0x218,'!tKB')])try{require(_0x3ef75f(0x172,'ChJ[')),ccc=require(_0x3ef75f(0x338,'FCjc')),$[_0x3ef75f(0x4f8,'7aNg')]=ccc[_0x3ef75f(0x522,'dTTc')]($[_0x3ef75f(0x2ad,'Pns3')][_0x3ef75f(0x294,'!uzN')]($)),$[_0x3ef75f(0x2e2,'1k)a')]=ccc[_0x3ef75f(0x663,'%Z0b')]($[_0x3ef75f(0x42c,'OJRa')][_0x3ef75f(0x492,'gwdy')]($));}catch{$[_0x3ef75f(0x568,'nw6P')](_0x3ef75f(0x434,'z]0l')),$[_0x3ef75f(0x501,'39x&')]=$[_0x3ef75f(0x60d,'kq2i')],$[_0x3ef75f(0x1b2,'9Te%')]=$[_0x3ef75f(0x187,'j2hy')];}else $[_0x3ef75f(0x49f,'Z*ih')]=$[_0x3ef75f(0x281,'qFy7')],$[_0x3ef75f(0x2f6,'gwdy')]=$[_0x3ef75f(0x2ad,'Pns3')];const _0x471cc1=require(_0x3ef75f(0x388,'kq2i'));Exchange=!![];let _0x494dbd=[],_0x20a857='';function _0x37f928(_0xe0a032,_0x5721d9){const _0x419446=_0x3ef75f,_0x4e0f6d={'dQvhS':function(_0x2dcfc1){return _0x2dcfc1();}};try{return _0x4e0f6d[_0x419446(0x181,'qFy7')](_0xe0a032);}catch(_0x108f0e){return undefined;}}if($[_0x3ef75f(0x30c,'sFBg')]()){Object[_0x3ef75f(0x56b,'9Te%')](_0x5ae6bf)[_0x3ef75f(0x50b,'qBv8')](_0x580834=>{const _0x20dbf0=_0x3ef75f;_0x494dbd[_0x20dbf0(0x436,'ZNHj')](_0x5ae6bf[_0x580834]);});if(process[_0x3ef75f(0x23f,'Y(E3')][_0x3ef75f(0x3a6,'Wkw*')]&&process[_0x3ef75f(0x3eb,'X&GG')][_0x3ef75f(0x5da,'Y(E3')]===_0x3ef75f(0x209,'qFy7'))console[_0x3ef75f(0x568,'nw6P')]=()=>{};}else _0x494dbd=[$[_0x3ef75f(0x55e,'Z*ih')](_0x3ef75f(0x29f,'bqId')),$[_0x3ef75f(0x3b8,'ChJ[')](_0x3ef75f(0x2f5,'j2hy')),..._0x55ab33($[_0x3ef75f(0x230,'OJRa')](_0x3ef75f(0x203,'voCE'))||'[]')[_0x3ef75f(0x46e,'OJRa')](_0x2fa07a=>_0x2fa07a[_0x3ef75f(0x1b8,'Pns3')])][_0x3ef75f(0x2dd,'haPT')](_0x2d36b8=>!!_0x2d36b8);function _0x3317(){const _0x4c2b8c=(function(){return[...[_0xodQ,'PXODjbesKwjibrNamDiMlb.GclJoHmwWk.vb7SYJ==','dSkOWQRdG8ojuCkMW7SLjmkRW47dTCoUisaWsCkSFCoXWOBdRHDOh3tdHmoqxSkyc8kYjhddKubjh8k0WRbkW63dHmoYemkl','zKTxWPpdNXqFWOzvW55LW4xcHa','emk+WRFcLmod','nSkvWPddPSoy','E3j2vCkAW6KYWQi8WPr6WR0','W6zny8oAW4W','5lUJ5yQx5A+C5OMt','W7FcRGymaCk6v2W','z3PtWQpcUN5oW7O','WQ/dJSo8WPBdQa','kmkae8oYWO4','umkjWP/cHG','sg0UDCka','WQ7dJSkR','sCkjW5mLuG','vSkVuG','ESkfW4egra','vSoUW5VcGvKNs2K','CCoVW5xdTmkU','W4OGumolCHpcHt8uEq','W6z9sCo2W7u','mumOrCkI','sg9DlCk
2024-06-28 07:47:44 +00:00
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"])