faker2/jd_wyw_worldCupdraw.js

15 lines
44 KiB
JavaScript
Raw Normal View History

2024-06-28 07:27:40 +00:00
/*
活动名称玩一玩竞猜欧洲杯抽奖
活动说明必须参与竞猜且竞猜正确后才有抽奖次数
环境变量jd_wyw_worldCupdraw_notify // 是否推送通知true/false默认不推送
jd_wyw_worldCupdraw_pinFilter // 账号pin过滤多个用@进行分割
cron:1 1 1 1 *
*/
const $ = new Env('玩一玩竞猜欧洲杯抽奖')
var il='jsjiami.com.v7';const I1I1iI=iii1II;(function(ii1i1,Iiii,llIl11,IIIll,I1I1il,l1llii,liII1){return ii1i1=ii1i1>>0x6,l1llii='hs',liII1='hs',function(I1I1ii,l1llil,IIIlIi,llIl1I,i1lIl1){const l1lliI=iii1II;llIl1I='tfi',l1llii=llIl1I+l1llii,i1lIl1='up',liII1+=i1lIl1,l1llii=IIIlIi(l1llii),liII1=IIIlIi(liII1),IIIlIi=0x0;const liIli1=I1I1ii();while(!![]&&--IIIll+l1llil){try{llIl1I=-parseInt(l1lliI(0x157,'x3bx'))/0x1+parseInt(l1lliI(0x1fa,'$$)R'))/0x2*(-parseInt(l1lliI(0x236,'8C9)'))/0x3)+parseInt(l1lliI(0x285,'InRB'))/0x4*(-parseInt(l1lliI(0x230,'wQAL'))/0x5)+parseInt(l1lliI(0x142,'sa8N'))/0x6*(-parseInt(l1lliI(0x1c7,'9Nzu'))/0x7)+-parseInt(l1lliI(0x28e,'H9M5'))/0x8+parseInt(l1lliI(0x12d,'t&^8'))/0x9+parseInt(l1lliI(0x24e,'7zUu'))/0xa;}catch(IIIlIl){llIl1I=IIIlIi;}finally{i1lIl1=liIli1[l1llii]();if(ii1i1<=IIIll)IIIlIi?I1I1il?llIl1I=i1lIl1:I1I1il=i1lIl1:IIIlIi=i1lIl1;else{if(IIIlIi==I1I1il['replace'](/[LrAxyPkwWOMFIYqCKgJSDT=]/g,'')){if(llIl1I===l1llil){liIli1['un'+l1llii](i1lIl1);break;}liIli1[liII1](i1lIl1);}}}}}(llIl11,Iiii,function(IIIlI,IiiI,iIi1i,l1iIll,l1iIli,iIi1l,i1lIlI){return IiiI='\x73\x70\x6c\x69\x74',IIIlI=arguments[0x0],IIIlI=IIIlI[IiiI](''),iIi1i=`\x72\x65\x76\x65\x72\x73\x65`,IIIlI=IIIlI[iIi1i]('\x76'),l1iIll=`\x6a\x6f\x69\x6e`,(0x171fa0,IIIlI[l1iIll](''));});}(0x32c0,0x4a7f5,Iii11l,0xcd),Iii11l)&&(il=0xcd);const jdCookie=require('./jdCookie'),notify=require(I1I1iI(0x229,'akc[')),common=require('./utils/Rebels_jdCommon'),{H5st}=require('./utils/Rebels_H');let linkId,taskThreads=process[I1I1iI(0x262,'x3^c')][I1I1iI(0x208,')B*%')]||'1';function Iii11l(){const IlI1lI=(function(){return[...[il,'IMjLsywjiLDJaFmgOiC.kAxcTqoYmSW.AvTr7KPO==','W7mUWQb9W5a','W63cHMO7iq','W78lqHCw','W7vLFW','twKNggq','W4m6WPhdNSkg','AxufhuatjW','WO/cVsC1oa','W7lcJuJcMxXFW5dcMrOM','W7ddK8k6WRhdHZW4WOG','W6uGWRvWW70','WQ3cHSoFWR4','WQatW6VcQ3JdQhK','zYpcOmkkWOGuEmkhW59OW70NsCoUi8oJsCokimodW4FdUsFdOmkfrSoUWOW2qHddLK4','WRiDW77cLZC','W44QFdCuhrZcKLq','W7xdG8kzWPvd','re7cNfm','W6pcOLpcQ8oPD8kaW6xcVSkzdmkCDmkYW5n7WRhdGfa','evFcIb7cRq','n8oMW6xcMXJcPtWoW4tdSCknCCk7WRVcJmova8k9qGfm','cXBcTmofzSkg','EwJcMdz5sq','W7mIWRPhW6BcJSkRDq','lhbu','W7dcMvtcVx9i','WOiuW5JcOr0','WOf4W6fZW7e','mCkjWQVcRW','W5NcH8oA','k8k6WOxcLZS','e8oZW4PJW7NdJmkk','WPFdRv/cL8kcW7lcLSokhW','W4LfgCoYW4y','W73cLgemkG','u8oCpwZcRf1XW41iW4q','y8kwpG','WQ9Nqt7dOCkEW5W','iCk4W7hcMG','WPJdSMfiW5JcT3/cUW','mrVdU2b9pG','W5mbWRDJW4u','h8onWRpdQbTbjKarW7G','WPlWMRo7z+I9QEIIOoE5RoACPSkC','W69BoCoHW4y','WR90WPxcR8oUW5JcQYJdGmoHWQqtW5VdV3a','hWJcM8kmjG','W5hdVbBdHSoDECoSWQ7dM8o0','WRJdTSovWRno','WP/cJmoVWPCI','wmkQf8k1cG','WP9pWR/cMCoe','fKtdGhmO','WQZdN3K6WR4','BZtcQCknW5y','WP/dTv4/WO8','WQpcUdKY','awldTeWy','AhRcMt5ZvaHOW6Wb','j1VcOaRdMSkeW6y','abawW4/cRW','BSkkkSkjlX8','ardcVW','WQFcGSooWRSYWRFcPuCLhcVcVJBcOmkQW4JdIGn6CCou','WP7dQ1fFW6S','nWNcTu7cIa','trVcP8kwhv5u','WPtdUf/cN8kbW6BcU8oneSk0','W6/cQMCcfaqrW5a','reRcMgddJG','WP7cSCorWRaq','mLVcPtpdNSkdW7DNfZr9C8k0ASoyW4ldGSk5W6C','awxdVLe4WP3cV8khWR/dSCoP','A27cMZPSAYLOW78vD0VdMJLg','W6VdG8krWRX0q8k7E8kwogPVjMy7eNq','WRzZWPRcJCoe','WQhcHSoyWO8sWRVcPLWsgHZcMdFcRCkS','WRtcRt86bCkgW7PGdW','a8oqWR0','W69TgmoVW4Wb','W6hcTM4','yGRcPSkqWOO','5A+h54UQ776A','W40vqSkAvq','qmkxlSkPha','W6GuqG','W6BcJu7cMq','56Mz546U5OUd5yMA776F5O225lUt','W63cTv0amW4UW5lcJc4','hIZdQgPS','WORdOxPXW7/cUq','sSoapW','W57dQgZcNCkXiCo8WP3dVqVcOSooWPxdNCkisCoCk8kc','k3pcTW','W5OGW7z1WQ0','nqKtW5dcJCkTW6dcUa','aHZcJSkRnG','f8kXW7RcQ24','WR/dQ08BWPS','hmkdlWRdLq','WQdcImoy','WQmxW6VcGG','rCkJWPytAImbB8oW','W6W3WQDdW4hdNCoPpYldLSofoZxcOSkHpLhcIX9hW7jMW63cSW','W6DSdq','hXlcL8kB','W4tdRXBdQSodBq','W7vZAZtdMmklW5O','s1VdJ8oFFbSfpcWBWRyFWPldTW','W6CSWRDw','WOT1W6DWWRPioaVdHW','nSkEuK/cGMFdPMrN','kHqjW7tcKCoJWQ7dU8oNamoiuNeoASokygSVdvBdSCoAWQK','W4y1Fa','pqBdUG','oIZcLSoKqq','5RAe5yIJ5BEQ57I757Iu5PYx5lIoWOO','A8k3WRJdHNldSbGlW4hdHSkNzG','W5hdRN3cKmkvlCoLWPVdRH3cVSorWPBdL8kvsSo6n8klsx0','hXJcJmkInKS','lSk4W7i','W4uvi3y4xCkM','kSoQW4BcHZ8','WQW4lW','WRxcRcmwbCkf','kmkZW4RcIe7cLmoCfahdOmkHWRyCnulcRviXrJJdQHpdKgdcHZi','W7qQBCkksG','4PY4WRBMNPtNN47ORlVMS73dNG','FhRcNZ4
// prettier-ignore
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"])