jdpro/jd_newfarmlottery.js

6 lines
224 KiB
JavaScript
Raw Permalink Normal View History

2024-06-28 07:47:44 +00:00
/*
26 5,13 * * * jd_newfarmlottery.js
*/
const $ = new Env('新农场幸运转盘');
const bdy_0x4cbd78=bdy_0x30c3;(function(_0x3ff467,_0x251c8f){const bdy_0x53c9fa={_0x43f36f:'0xc4',_0x4714c3:'!M0N',_0x1422eb:'0x3f3',_0x453167:'G2YD',_0x353df3:'0x22a',_0x35f1e3:'N7D[',_0x10e9f0:'0x57a',_0x4220d5:'j(6o',_0x423e08:'0x32b',_0x174993:'vsvh',_0xcc97ee:'0x14c',_0x5dfa8f:'*6mw',_0x2f10c7:'0x647',_0x42eae7:'vcf!',_0xf89f62:'0x539',_0x4e1dea:'8]bQ',_0x2a6d31:'0x2bb',_0x922013:'vcf!',_0x3aea83:'0x3b0',_0x56ae2a:'FXP3',_0x73287:'0x152',_0x3146f4:'P3wL',_0x248627:'0x43d',_0x3f8164:'VSHr',_0x1a3c1f:'0x2a9',_0x3b7835:'2vwR'},_0x227430=bdy_0x30c3,_0x2808e2=_0x3ff467();while(!![]){try{const _0x2a556d=-parseInt(_0x227430(bdy_0x53c9fa._0x43f36f,bdy_0x53c9fa._0x4714c3))/(-0xcee*-0x1+-0x113f*-0x1+-0x1e2c)*(-parseInt(_0x227430(bdy_0x53c9fa._0x1422eb,bdy_0x53c9fa._0x453167))/(-0x1ed0+0x3ef+0x1ae3))+-parseInt(_0x227430(bdy_0x53c9fa._0x353df3,bdy_0x53c9fa._0x35f1e3))/(0x327+0xc*-0xe1+0x278*0x3)*(parseInt(_0x227430(bdy_0x53c9fa._0x10e9f0,bdy_0x53c9fa._0x4220d5))/(-0x2425*0x1+0x7f5*-0x1+-0x2c1e*-0x1))+parseInt(_0x227430(bdy_0x53c9fa._0x423e08,bdy_0x53c9fa._0x174993))/(0xabd+-0x61d+0x83*-0x9)*(-parseInt(_0x227430(bdy_0x53c9fa._0xcc97ee,bdy_0x53c9fa._0x5dfa8f))/(-0x1*-0x86+-0xdcf+0xd4f))+parseInt(_0x227430(bdy_0x53c9fa._0x2f10c7,bdy_0x53c9fa._0x42eae7))/(0x294*0x5+-0xdf4*-0x2+-0x47*0x93)+parseInt(_0x227430(bdy_0x53c9fa._0xf89f62,bdy_0x53c9fa._0x4e1dea))/(-0x449*0x5+0x167+0x12e*0x11)*(-parseInt(_0x227430(bdy_0x53c9fa._0x2a6d31,bdy_0x53c9fa._0x922013))/(0x1929+0x4f6*0x4+-0x2cf8))+-parseInt(_0x227430(bdy_0x53c9fa._0x3aea83,bdy_0x53c9fa._0x56ae2a))/(0x1*-0x1cda+-0x1ea9+0x3b8d)*(parseInt(_0x227430(bdy_0x53c9fa._0x73287,bdy_0x53c9fa._0x3146f4))/(0x1f7*-0x11+0x1130+-0x1042*-0x1))+-parseInt(_0x227430(bdy_0x53c9fa._0x248627,bdy_0x53c9fa._0x3f8164))/(-0x20f8+-0x21e6*0x1+0x2*0x2175)*(-parseInt(_0x227430(bdy_0x53c9fa._0x1a3c1f,bdy_0x53c9fa._0x3b7835))/(0x1*0x911+-0x136d*-0x1+-0x1c71));if(_0x2a556d===_0x251c8f)break;else _0x2808e2['push'](_0x2808e2['shift']());}catch(_0x4bbe07){_0x2808e2['push'](_0x2808e2['shift']());}}}(bdy_0x789f,-0x3b0aa+-0x1c9e2+0x2*0x5d28a));let bdy_0x4b0e82=![],bdy_0x213fd6=[],bdy_0x3147e0='',bdy_0x4d1e9e,bdy_0x38b594,bdy_0x26e83c='',bdy_0x456112='',bdy_0x1aec99='',bdy_0x3f2d9a={},bdy_0x59faf7=![],bdy_0x182995=0xe14+-0x3*0x403+-0x20b;const bdy_0x1faee2=bdy_0x4cbd78('0x3d4','xBQr'),bdy_0x2643f3=require(bdy_0x4cbd78('0x481','ukl!')),bdy_0x4b28dd=require('fs'),bdy_0x48f5a8=require(bdy_0x4cbd78('0x48d','5DAJ')),bdy_0x6d6a1f=require(bdy_0x4cbd78('0x45b','eHqV')),bdy_0xe6157e=require(bdy_0x4cbd78('0x37c','RGGU'));function bdy_0x789f(){const _0x40ca33=['zH3cJwzT','WQ/cLmopW7C','o8kTyg9+oG','WP3cMKtdOG','W4ldQYFcJCoDWPn0F0u','FCkcha','z8kicCkCWOZdJvG','WO3dPZ4aaq','pSolpW0j','W6FdUG4','ANxcJCoaAW','WRJcOvZcMmkJWRjJgG','5y245zkQ55w05OMC','yX7cQgH+W7DOWOe','5O265PAN6yoF6k655OI15lQF5AEX5y2a57Ur5P2+5OIT5yIlBoAbOEw1TEAiN+s5Pa','W4XZxSkLW6C','W5ZdOJxcI8oDWQjtFKZcUaLiaCk3suTO','WQtdU8kUxxqDhmklWOq','WR4hWPSFdmooW7xdQX/cPmkLWPu','WRhdSdiR','8lIXPwq','W4X/CCkRW6O','WPfBbCoCW68','5BYS6yc/5REi5RgW5y+bpq','W4mAW64nFW','WRddTCk+xq','dttcTxPmmmktW7qGhqrtW69yja','DMqBc0JcKuldQCoXWQGSzCkNWOT3WQK0W4Oe','W6ZcUalcH8koWR9ezW8','bvddJ8kP','WRJdTcSdsSolW7JdOW','rX1xvSkwBWhcHfm','5y6i5zkG55Ei5OMi','W5v7uSkTW5VdJNlcTSkDWQT0W4rU','W5n6W6fKtayKlW','WQSGANyOo8ozySo0otXkW67dUmo6WRG','h2NcH15g','pY4j','W5S9kSoQimoSqa','W4PRWONdTuflWPa','W747der3','WQ7cTmotWPxdICklovGlhdRcLG','W6NcOXPzyCo2W4VcMbi','b8o6WQxcPCod','W4hdIsVcMCou','W5L1W6DVvW0ZnsJcKsa','W4CdvG','sK3cH8odxW','pCokWQpcQSoVmq','WO3dVJiNua','WOhcOsziWOa','ltpcSLPsiComW584','W43cJL1DzY5lW4WFWR3dTr3cU8oVWOBdOGtdRfdcIG','WQlcSu/cLG','W5v1W6u','W5uRemobjCo9','fSkaW7ZdN8kHW7/dUuOfW7rfWOSfumoV','W4upW7KYEIi','wu4XW51jW4zYzq','FSoGW6GpWOnSWRS1W7u5xSkGW7VcKSoCBdeTWP3dRSoRo8oTvvZcMfGLW6e0','W6yYmSk7','5Ro45RIH6zMz5lIl5yIe77+e5Q6E5Asq5lMb5Q2t772t5P+65AAn5y6S5B2ArHz15Rc/5RMW','seKqy1RcR8oM','6z+V6kwU5RwV5RkZ55I45Awu5yYaWO0lW5nXW4/dT28NWRhdTmkd','kCoopWaSwCogW6q','W45/smkVW53dTa','DrhdRxNcIrG+W4hdIY8','c0hcKSkVha','qvWbA1BcVSo0WRGqWQ1gqCkGW7xcM8ogumkcW6xcIN4LWQ7dQCk/hI9LW7VdS8kHWQ7cVa','uSkjq8kiW7CKWP9r','DuZd
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.setValueF