faker3/jd_qqxing.js

11 lines
161 KiB
JavaScript
Raw Normal View History

2024-06-28 15:38:28 +08:00
/*
星系牧场
活动入口QQ星儿童牛奶京东自营旗舰店->品牌会员->星系牧场
号1默认作者助力,后续 2给1 3给2 接龙,助力需要新用户已助力过的不能在助力
#伊利星系牧场
33 0-23/6 * * * https://raw.githubusercontent.com/6dylan6/jdpro/main/jd_qqxing.js
*/
const $ = new Env('伊利星系牧场');
function _0xc665(){const _0x2eb816=['WPO6W7Pg','qCoeCZiI','W5ldQdT3WOCRWQFdImoKWPhcRCk7txVdR8olW5/cLmoWW6mTeSkTW4XxfmojWRtdSvBdL8ohW5qQwG7dLmkmWPhdP8oTpJXSgv7cRHHHWPrYW79lW5j5WOtdI8k+W4i5CJ8TwrRdRxWSWPyefvVcV3/dImoHW54ExtycWOjKWQRcH8o4WR8ZghVdN2BcGSo0CHNdISofdaFcQcmxWP84W5WBWQ3cJKZcHeFdHmkbAG9AvCo+WOemtmkhuCovAr7dO28KW7BcJ8khk8kqnmkace3cRqJdPJLzW5BcM2/dTCo/dGz3WRGicSkBWRG7xW02WRakWORcNmkVdLD/p8oVWO7cQSkyWRaQWORdO8kvWOVdPbxcN8okWO/cRvBdJmoeW4tdUgRdKmkbw8odW4pdN3OxWPVcHM5FWQXAwtmFeCoFjdjkfSoyihGVeCksWPqTnI7cJCk3WPKJW7RdSX86j8kIW7HXr2X8dG/dTSkWvxhdU8kaW5BdKmkoxmoMW4X8WQHkWP7dVmo+W7v2W7KqWQddUq','WPxdUteTWOnZWQtdMmkZWRVcPSoR','sZ5CWODSBmkoWR4','WPRdLcuFW7VcHSk2','BgNcRCkcrG','z2JcNmkNqmoWWQO2gCkpjeK','gJNcQSofWRG','W4rohCkBoW','fsPNWOFdGZe2W7KqecSfWP5wW7lcHmoLaNtdUq','CmkiW4iHAW','WPS3aIO3g3S','rchdRaKf','WQ96WR0','vwP2','WPZdJICdW7BcGW','W7RcNSkIW79B','CmkfW5mnrq','WORdGx8','W7jznSk7t1T8cq','w8kQsJC3W7C','q18zxW','W4PLo8ktfW','W6vHW5xcUIe','w8kTl8kmW44','gSkamCk9WQVcOq','hCkrlSkO','W4hcVmkIW7j4kW','5lQY5lMr6lsF5yYc','WQ13WP0','omoKvf8','cSkap8kKWQW','WQP7WR7dKMy','W6PypCkFfa','tCkAzdei','nSkoWO4TtCk8EW','w8oPuHeJ','mWqhsmoidCktyWz7DSkcg8o4hXFcVx/cRrScWRDgWP3cU8kSWO9IWO5M','xmkokSkuW4m','W4JcUSoFtSkz','WQ4DnCk/','obVcKmoEWOVdM8kcFmo+','x2r1WPm','ofBdNqhcJG','WRVdIIitWOL/','jgrzeSk9BW','jxxdMW','W6Liimk+lKD9ewG','hSoDcmkkW4T+W68','rqNdS8k8WPjSW4xcPSkDabJdGaRcTCoqW4tcK8oCwZlcK8o9bCokWRjwkg9cW5K','u2yZW7ZcSq','wCokdmoXW7b+W4pcVXhcRa','WPzzWQ/dPvK','WOK3gWO4','f8kFWPOHuCk+ymo3W5e','gbCaASo8','WO5SW6dcOUIUPEAYUEwMPoI1PE+8O+ITUUAHJEAEQ+E8OUI3K+MhOoISOq','WRiimSkKiIdcSW7dPejyWOT2B8kFW7rrnwWvDNxcGSoWbgRdQqNcQCkG','WPS3hWS','WRRdSsldOsaUemkbC8oScWpcSLpcMqddIMBdMv17v8oXkbq7lX4','WQfQWP3cOdfEWPRcJW','WOtcOCoPWRe','W5VcRCkLW7DNzCkzW6LieWtdUxBcRSoTE0pcHSozl8kPl8olfmkMWRNcH8oop8kJ','WQD0WQ7dLG','WRH4WPNcHZS','WP96WP/cKZO','wmoeoSkmW7y','W5ddGbBdSqS','Bu4sW4hdPSoX','kSkzWQqmCa','sCoPsa','bGldVq','W58VW6H3W7jRhSoHxfRcRJy/eCoItfBdMs0FWOhcTMpcGGeYW5tdT8ozra','WPa0sNSR','kNxdKYVcSZC','WP3dPYXMWPW8WQ3dIa','W47cTSo0zCk5CmkXWRbBWPxdMvVdNIHm','cSkjW69r','WRb8WR3dMq','FcjDWOW','kNxdKJpcRIdcMfWGwmoW','WRlcOti','WQxdRCozWQe','W7fgna','d31Cgq','sSk4wYq','44co5O6D56sd44oK6k+v5ywf6i2u5yYnWOioWQxcK2FcNadNM4xMJ4FKVypNL6NdLNSzltJdS+EBVos7HEs6RUESOUwjR+InUowmVW','uhG0dwq','W5BcJ0dcQKpcLa','W7zSjSk/cG','W6FcUSoKDa','WPJdNHy0W6W','wNvXWP7dHdeJW6qwewPoWP8xW6tcNCoQaxJdPCo6hSoyWPxcUIlcUXxdObpcNCoweq','WOldQSoHWRiTe8ovWRv+bZm','W4hcSSktW5DX','oM7dJINcTdxcHfKT','WRNdVSoXWRzt','WROuA1S2','lwf5fCk+','igjdoSk8rSoeWOG','W4dcRCkJW656omoFWQbD','Dw8wpKXewW','F1qxW4FdVmkQF8oKW6S9W6vtW6dcGuOT','f8kiWOC6wG','W4xdTW/dMXa','WPu9W79gW51h','WOlcQfdcRbW','WQRcSapcNIy','W4/cKKS','W7yaW6lcJIpcJSoWm1VdQmoPyYrvwCkC','cCkkWPG','WRdcOsi','5yAL5O+GgW','B34wW6xcT8oa','xMutlhC','dXtcT8o2WPG','rSoaWRmEWR3dNmoRqSoIlGKl','W4/cK0lcOutcIW','tCoDf8kRW4zH','WOVdNcu4W5S','wwPLWOS','WP7dRmkJmmo8nCkUWOXIWRddMuhdIa','pSoKr3FcIG','AvVdRaNORk3MSjdLP5ZOTjRVVzJOR4dMOylMNkhNVONOTjtPHRpORj4','vSkVcHtdHfXZ5B+y5Awl44gC5lU35lIc6lET5y+V','WOC2W7HNW4lcHa','F0GvW5ddRCkX','WP3dNdeA','CYXbWRThAmkh','W7NdOJpdUJSvhmkgECoecfS','WPaEcmkmjW','WRldUCoAWOLOvZldQmoZpvJcPCocnq','5RwK6ksx772C','xmoVwW','Fg8hpKvvvSow','WQbGWQJdUwVcMG','W5uxW61bW60','bw/dNIhcJW','yqNcSSkD','l8klW7HvW6BcGq','W4XmW5FcMa','cCkhW5n+W4y','W5dcTSkM','CM/cNCkG','WQ0fC1m','BrldVbyA','hGtdMmkHWQa','WQ4DnCk/oh4','WOldHqqqW4W','WQm1W5jJW7u','E3axW53dHq','W4ZcUSo5DmkSASoOW7foWOldJKS','WRWxyNW3qG','D3Gqnv99x8ovzSktWReu','WQqdW5TgW6a','W6iOW7L1W48WxmkR','WOBdRcT2WOiP','W4RcIuK','5OcM5zEI5l6t5OIr5lUdWO8','5PMd57g+54Mh5zYe','WPFdVcPnWPSW','WRFdQd5kWPy','iIJcN8oyWQa','DLeCW4RdI8kIySoUWPHJW5GpWRxdMa','AKqAW5BdRCk3qmoJWQu','aSknW7vxW6lcNq','CKjYWORdOG','W7fgnmkqefW','WRSmnSk4ohNdVvxdOvDsW54Jk8kBW7uiCxKmBNVdG8oQa2lcOGtcPCkIW6OkWPe','WRHWWOu','wmokd8k9W6f1W6lcTrxcRa','t8k3ysWU','WQ89fGOKhwe','nSkcW48QDff7W5zuWRrljZiyfvVdOZNcIq5yWP3cTqJcTLFcLJWmwCoKW7XyWOO','r1WFwmoY','DSkuyW0kW6FcU8ongIZcMsvOWOe','WQmBW7T5W4a','CxlcGCk4E8oz','oc5tWOXAxCkkWRxdNeFcQCkszSkawLGmaCoNW6T8gIyzW4Cnamowyq','WR7cPrVcKZpcRCoo','j2HukCk1FmoHWOWi','WOOEW7PWW6W','emkoWPS8','tCkWkCks','WQr2W
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"])