faker3/jd_cxjhelp_draw.js

27 lines
71 KiB
JavaScript
Raw Normal View History

2024-06-28 15:38:28 +08:00
/*
#抽现金抽奖提现
轮询提现变量jd_cxjhelp_num //轮询提现页数
兑换红包变量
export jd_cxjhelp_tjdh="true" // 特价抽现金兑换红包,默认关闭
export jd_cxjhelp_jddh="true" // 京东转赚红包兑换红包,默认关闭
注意轮询页数也大越容易403请谨慎填写
更新提现失败重试
更新抽奖火爆重试一直火爆一直重试
更新统计
更新转赚红包 上限兑换红包
更新单独兑换红包变量避免兑换失败一直请求
更新此次活动到期时间
更新京东版提现金
[task_local]
#抽现金抽奖提现
11 11 11 11 * jd_cxjhelp_draw.js, tag=抽现金抽奖提现, img-url=https://raw.githubusercontent.com/Orz-3/mini/master/Color/jd.png, enabled=true*/
const $ = new Env("抽现金抽奖提现");
var version_='jsjiami.com.v7';const iI1ill1I=lIii1lIi;(function(lli11I11,li11i1,lilii1ii,ii1Il1lI,IiIIli1I,Iil1iIiI,iIIiiII1){return lli11I11=lli11I11>>0x8,Iil1iIiI='hs',iIIiiII1='hs',function(ll1il1l1,I1iiiIlI,iI1iIiII,i1IIil1I,Ii1IiIIl){const lii1ll1I=lIii1lIi;i1IIil1I='tfi',Iil1iIiI=i1IIil1I+Iil1iIiI,Ii1IiIIl='up',iIIiiII1+=Ii1IiIIl,Iil1iIiI=iI1iIiII(Iil1iIiI),iIIiiII1=iI1iIiII(iIIiiII1),iI1iIiII=0x0;const I1IiIiIi=ll1il1l1();while(!![]&&--ii1Il1lI+I1iiiIlI){try{i1IIil1I=parseInt(lii1ll1I(0x16f,'DJIY'))/0x1+-parseInt(lii1ll1I(0x1a8,'Y^jR'))/0x2*(parseInt(lii1ll1I(0xe1,')CLj'))/0x3)+-parseInt(lii1ll1I(0x2cc,'T4$v'))/0x4*(parseInt(lii1ll1I(0xe4,'MFCQ'))/0x5)+-parseInt(lii1ll1I(0x253,'zpnS'))/0x6+parseInt(lii1ll1I(0x219,'dzT5'))/0x7+-parseInt(lii1ll1I(0x29e,'zpnS'))/0x8*(parseInt(lii1ll1I(0x212,'J!ra'))/0x9)+parseInt(lii1ll1I(0xd5,'XgPW'))/0xa;}catch(ilIii11I){i1IIil1I=iI1iIiII;}finally{Ii1IiIIl=I1IiIiIi[Iil1iIiI]();if(lli11I11<=ii1Il1lI)iI1iIiII?IiIIli1I?i1IIil1I=Ii1IiIIl:IiIIli1I=Ii1IiIIl:iI1iIiII=Ii1IiIIl;else{if(iI1iIiII==IiIIli1I['replace'](/[PVEWCAIFhnpULSHyXbu=]/g,'')){if(i1IIil1I===I1iiiIlI){I1IiIiIi['un'+Iil1iIiI](Ii1IiIIl);break;}I1IiIiIi[iIIiiII1](Ii1IiIIl);}}}}}(lilii1ii,li11i1,function(Iil11li,II1iIll,illlil1i,lIllI1Il,Ilili1Il,IIi1llII,Ii1iill1){return II1iIll='\x73\x70\x6c\x69\x74',Iil11li=arguments[0x0],Iil11li=Iil11li[II1iIll](''),illlil1i=`\x72\x65\x76\x65\x72\x73\x65`,Iil11li=Iil11li[illlil1i]('\x76'),lIllI1Il=`\x6a\x6f\x69\x6e`,(0x1418f5,Iil11li[lIllI1Il](''));});}(0xc300,0xca9f9,iIIllIiI,0xc5),iIIllIiI)&&(version_=iIIllIiI);const Iiil1l1i=$[iI1ill1I(0x267,'W)VY')]()?require('./sendNotify'):'',IIiliI1=$[iI1ill1I(0x1a7,'o7*9')]()?require(iI1ill1I(0x20f,'EVEn')):'',ililili1=require(iI1ill1I(0x27a,'F(Rx')),il1Ili11=require(iI1ill1I(0x2a8,'MFCQ'));let Il111l=[],ll1i1lli='',IIi1lIiI,i1llliiI=![],ii1l1Il1=[],lIIiI11I=[],iiIilIil,lililIlI={};$['krtyhot']=![];let liIIlll=[iI1ill1I(0xcc,'%KP!'),iI1ill1I(0x31e,'udjt')],iIlIlIII=[iI1ill1I(0x14e,'t2lg'),iI1ill1I(0xa0,'u&pb')],Il11iill=process[iI1ill1I(0x24f,'UTs1')][iI1ill1I(0x2eb,'TOY1')]?process[iI1ill1I(0x1d3,'h1#f')][iI1ill1I(0x2b7,'lA[0')]:iI1ill1I(0x2b1,'W)VY'),I1iil=process[iI1ill1I(0x26d,'J)n%')][iI1ill1I(0x133,']X8d')]?process['env'][iI1ill1I(0x23a,'B5uv')]:'false',liIIIl11='',l1ilii1i=process[iI1ill1I(0x20d,'eQLP')][iI1ill1I(0x27c,'UTs1')]?process[iI1ill1I(0x205,'udjt')]['jd_cxjhelp_num']:'1';function iIIllIiI(){const iiI1lil=(function(){return[...[version_,'HjnAPsWjiVuahCmELiSX.bpFcISUoImnS.ApvX7y==','W4BcMZ/cPXSY','WPGdWOTO','W4ZdS8khDG','aSo7W77dMea','jCoBWRxdN8kv','WQZdPSochMjm','W4BdTSo7','WQ8NWPzodq','WPddKCkXWQlcKGJcSCo0','W43dT8kRC28','W6FdLCoRpgzZs8oXWQWIctFdOW','WQ3cVmkRbsC','W6acW67dUMhdHCkSWRS4t0D3WP8','W4VdPContu8','mCoooSkLi8kUu8kEWOeJWPyiWPK','BM/dIqOI','WOJdGZ8YCq','6lYM6kor56Y9','smkFrv8A','t8k4Fgf7y8kywuZdVuWwWRjiBmoHpSo5WONcGrL/qf3cNmkSgwRdHCkxW6iwW6BdVSo4W40lk1ScfmorWODebSo5W7mpWOtcMam','WOZcPCkWzHi','W4akbW','DSkot1KZ','WQ/dJCoFp1W','W4RdUSopueVdQ8k9WORdTSkrqXpdJYddNHy','WQ4nWO9YWPWKWRDzW7C','W5FdQspcQaC/','WO7dHmoTc3S','W4tcVhxcHCo6','WPanWPG','W47dH2ZcR8k9W7u','WRWjWO5tWRG','y2pdUYCvka','D3FdPq0T','uwO3WRT3gmkG','mFcVNiZcM+AdJEE7OowpKU++Oa','cXNcHW','WPmhW7eI','n8oDbr5NzMxdSSkapmklqq','zG/dQCkgWQ8','zSo5W6TKyq','iCocWPVdNCkJ','WRFdUHaRvG','uSoly8oEdG','W4hdPmk4DhO','WRpdKZ7dLtm','x8kAWO4Pjq','CSkKxLj8','W4eaeWpcH0JcLa','ySkKnuGtW6m6vmkJW5DuWRpdH8ozWOPDlapcKHe','jstcPSo2DG','W4NdVmosW78aW7JdTJFcNXxdUW0hmG','W57dTdy','AmokxCozWO4','e8ocWRpdMmkEW5W','WRRdM1WXWOS','kmoQj1W','WPqiW78RWOXxfYq','WPpdThiSWOXkW6/cNq','WPFdGSkXWQW','W5bww1/dTW','ytpdPmkDWPmmWQldLW','rM4KWP9mgCkLWPldPXRdGLddRCo5WOZdOCkVaCkJWQC','W5hcSh7cUmoK','W4hdGJRcSI0','de/dQCozfG','W7DaW4O','WQldUG4','W7jbW5TStL/cPZFcLSk4irC4WQ1Iwq8','hLNdKmo3jW','5Bwj5OMr5yIg6i2j5B+XW4G','WOddGcW/uq','W4xdKCocpW','W6OJW4TeW4i','pSoAihC0','WOJdL8kSWQJcHhZdQ8k2ECoiW5ddQCoOWR5FACodWPRdNmo5WQRcGCoaWRf4amola8knW6bXe8o5W5dcLt3cJmkMWQfedhhcVa','W5jCDN3dKSkK','g8ohWRldGCkXW45LWPpdKLG','W64fW4pdS1a','AmkiuezC','WRewWPO','W6SzW6/dPgBcU8oSW6m3A0C0WPFdO0/dIXGhamkZn2DlW7ldUwGYF8kHW4OTW6xcPKPVWOW8W
// 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"])