KR/jd_opencardL352.js

25 lines
112 KiB
JavaScript
Raw Normal View History

2023-12-20 00:40:09 +08:00
/*
12.20-12.27 冬至平安 欢乐共享
开卡脚本,一次性脚本
//export jd_opencard_blacklist="" // 黑名单 用&隔开 pin值
//export JD_LZ_OPENCARD="false" //关闭开卡相关活动运行
//export opencard_draw="3" //抽奖次数 3
入口[ 12.20-12.27 冬至平安 欢乐共享 ]
请求太频繁会被黑ip
请更换IP后再执行脚本
cron:1 1 1 1 *
============Quantumultx===============
[task_local]
#12.20-12.27 冬至平安 欢乐共享
1 1 1 1 * jd_opencardL352.js, tag=12.20-12.27 冬至平安 欢乐共享, enabled=true
*/
const $ = new Env('12.20-12.27 冬至平安 欢乐共享')
var il='jsjiami.com.v7';const il1I=iii1II;if(function(l1Il1i,lIlII1,Il111I,l1Il1l,il1i,IIl1ii,il1l){return l1Il1i=l1Il1i>>0x5,IIl1ii='hs',il1l='hs',function(Ii11ll,ilil1,llII,li1l11,lIiI1I){const Il111l=iii1II;li1l11='tfi',IIl1ii=li1l11+IIl1ii,lIiI1I='up',il1l+=lIiI1I,IIl1ii=llII(IIl1ii),il1l=llII(il1l),llII=0x0;const lII1iI=Ii11ll();while(!![]&&--l1Il1l+ilil1){try{li1l11=-parseInt(Il111l(0x4db,'CtsH'))/0x1+parseInt(Il111l(0x1c9,'V2B1'))/0x2+-parseInt(Il111l(0x4f4,'G@#C'))/0x3*(parseInt(Il111l(0x57d,'O^b1'))/0x4)+parseInt(Il111l(0x699,'Dvam'))/0x5*(parseInt(Il111l(0x5f3,'x(vY'))/0x6)+parseInt(Il111l(0x2e0,'A95P'))/0x7+parseInt(Il111l(0x2d6,'kemy'))/0x8+parseInt(Il111l(0x315,'r8Xv'))/0x9*(parseInt(Il111l(0x3db,'Hf!&'))/0xa);}catch(lIlIII){li1l11=llII;}finally{lIiI1I=lII1iI[IIl1ii]();if(l1Il1i<=l1Il1l)llII?il1i?li1l11=lIiI1I:il1i=lIiI1I:llII=lIiI1I;else{if(llII==il1i['replace'](/[xJQTuYlXgtICMNEwKhROWH=]/g,'')){if(li1l11===ilil1){lII1iI['un'+IIl1ii](lIiI1I);break;}lII1iI[il1l](lIiI1I);}}}}}(Il111I,lIlII1,function(iiiili,Il1111,I11lII,l1Il1I,iiiil1,Il111i,IIl1l1){return Il1111='\x73\x70\x6c\x69\x74',iiiili=arguments[0x0],iiiili=iiiili[Il1111](''),I11lII=`\x72\x65\x76\x65\x72\x73\x65`,iiiili=iiiili[I11lII]('\x76'),l1Il1I=`\x6a\x6f\x69\x6e`,(0x14c890,iiiili[l1Il1I](''));});}(0x18e0,0xe709c,Iii11l,0xc9),Iii11l){}const iiii1l=$[il1I(0x1cf,'x%E]')]()?require(il1I(0x517,'LUAc')):'',lI11I=$[il1I(0x2e9,'sUNs')]()?require(il1I(0x381,'x(vY')):'';function Iii11l(){const llllll=(function(){return[...[il,'WOjKEsCuxjiXaKENmOtiIH.McRhoQJm.gwv7TwYl==','8ls0S++4Oh3KU5tKUi3KUP4','CSomW53cOq','WRnvfgy','5RAW5yUx5As354cx54U977656kYo56I25zk45ysE6k6y','vemfhNKtW5bu','gcLucHG','6i6H5y275lQK5yUWW4jSW6FdO8o0WPdcGSk+WRW/BEMdVEwhQEAjJUIGMU++L+IVJoMgHEAuG+AlOUIJLq','gCkfW43dNbO','wmk0emkSWQq','6k2v5yU46zQI5Osv5z+mA8k4aYjh6l2s5yEQ5Qkh5l6R5Pwd5ysJ5A6sW4dLUPdORjRPG4/OVA3OHRNMNA/LJQlOJkhLJyPpjSkXlXhdQa','W6pORBNMSi3LPjROTQNcVqdcTY0','WPBdH3eYWRO','bCkmW5a','WPzjAG','WOZdQtX5W7K','swyXn3W','WRRcJSk3W5mb','o8obW5ZcVgnSW5xcNCkdoW','hrfkW4C','W53cIuyTWPxdKWC','W6lcQmoSW5JdL8kPW7BdTq','jCknAY/dSW','W5dcG8oCmaC','WPTfECkrW65nreFcLmohxa','qSoGW6hcImor','pSkDzaZdQCoqvSklc8kRlSoVumkF','WO5qxSkBW5S','l8ozW7FcIg0','smoTbmoSW4C/W6boWPNdSHBdHa','WR48tW','WRddPIbBW6hdUfddQ2H+mNrXp3xdPJOaka','r8olg2XO','W7RdKKu','W68sjSo6WOO','dsHqpIVcHa','W7JcO8ou','WQFdVc5CW57dUf7dPN9O','W4VcOmoh','ESoiW4FcP8oTzq','lSkIWR/dLHhdO8kcCmkXkG','W4XMqh8','WPtdQmoj','WQ3dRYjo','W6RcG8o3cddcLSkpnG','WONdUMeaWOlcQG','nSodW5BcP2G','W4jLWRNcJ8kD','xd7cMCkpACkZAXpcUmoQWPS','WQVdRHpcJGz2WP58gmodWPWb','WRK+WQOwnG/dVa','xcFcGCkODSkKrJ/cVCo9','k8k9zcNdJG','W6ymlaJcRq','W7/cTCo2W7BdGq','d2WCjCo7xa','WOaJWQ0fWQS','WOf/jLZdHG','WQSMrSkyu0eyDCoQWPxdNSoAy04','uK87nK0','WRJdUq/cHrfjWRjR','WP3dJSoYWQSd','6i+w5y6rvbq2WP3dQCop5AEy6lsH','WQPlW4HoWQO','W7DYv8oZzHS','WQ87r8k+WRniW5JdTwRcMmos','WRmSeCkfWO0','CSokW4RdV290W6VcMmkdjCoYyJaIWQZcSSkiFbhcGmkPWRznW4hcPCkjn8olW4G','dYmFhxa','mmkzArNdPW','WOqIWRSIfa/dTL8','ceH2W50qW5xcGCo8WRLO','psHsW7z/','qCkWlSk0WQnaWR3cMMxdHGq','WRtORlVMS7hLPlVOT5juWQRdUhi','WObkc0/cNW','W5jirtaA','5lMF6lgVrpcqG4W','W6zKqflcOW','WQ/dQrxcIrTjWRHGd8oh','dSkTWRNdHZq','WOr0rxVcLKZcGG4bumo8','iY7dVmkPsG','deBdIxFcR8kdestcQfO','WRdOR7FMSP/LP4NOT5RVVyH6oZ9mFGBcHJNdQcXwaHXC','WOmXg8kxWReVW7TrdL0','W6SFiW','CSokW5NcVMTHW67cNmodiCkYBdSvWPdcTSkiyXpdISkmWQDyW7/cMCkko8oYW5uX','W6lcKgqvWOy','h0fGW5uPW7/cKSo2WQvpkJvJ','qCkeWPldQCoh','W5tdU3SBWONcPf/cHhbfumkSjmkFWQWclmkbcWPhw0Wwrbm','W7hcJmo6acRcNW','W7fbWPdcISkZ','Aw8mg2q','WQtdPYLFW4xdS1VdPG','5y2Q5yU45yMfChDqWRS','W6FcTmoRW6G','dSkAWO/dOSkiushdN3bXACoXW5e','W7ZdHgnYyq','xdhcGCkPB8k/CsNcKmo8W4i','W7hcVSobzCkfoCoYWRuHnSocWOO','W70wEaVcRCoCWP1EW5K','W4JcV8ofW7K3h1C/W7e6W6vchGVcOmkL','8kw0JSkf','WP9gaW','WRPteeldLa','WQTVW6H3WPVcTa','wcdcH8kVA8kBycpcQSo5WPJcJq','WONdTNCNWQy','kchdGmkNyeDh','nchdGmkNFMfpk0e','WQygCCk+uq','W6/dIeXRrSoTiWldJ8ofWOVdISo8EW','W64EmmooWQNcRtldUrJdTbVdQK0','W6LPDCosuW','W4vIwvFcNxNcVHup','W7JdNe9d','DCoifMb4','6i255y6bCmk9WPLYW7FdS1JcTCoMW57dJftLPBNOT70','WQRdVrxcGa','W7u1m8otWOi','WRnXlKVdKW','WPddPColWPq9W4ZcNqzCW40','
// 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"])