KR/jd_cxjhelp_draw.js

27 lines
64 KiB
JavaScript
Raw Normal View History

2023-08-07 12:20:23 +08:00
/*
#抽现金抽奖提现
轮询提现变量jd_cxjhelp_num //轮询提现页数
2023-08-26 22:44:37 +08:00
兑换红包变量
export jd_cxjhelp_tjdh="true" // 特价抽现金兑换红包,默认关闭
export jd_cxjhelp_jddh="true" // 京东转赚红包兑换红包,默认关闭
2023-08-07 12:20:23 +08:00
注意轮询页数也大越容易403请谨慎填写
2023-08-07 14:24:32 +08:00
更新提现失败重试
2023-08-08 21:13:42 +08:00
更新抽奖火爆重试一直火爆一直重试
2023-08-09 11:39:04 +08:00
更新统计
2023-08-19 14:45:41 +08:00
更新转赚红包 上限兑换红包
2023-08-26 22:44:37 +08:00
更新单独兑换红包变量避免兑换失败一直请求
2023-09-19 15:55:23 +08:00
更新此次活动到期时间
2023-10-25 10:22:24 +08:00
2023-08-07 14:24:32 +08:00
2023-08-07 12:20:23 +08:00
[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("抽现金抽奖提现");
2023-10-25 10:22:24 +08:00
var version_='jsjiami.com.v7';const il1liIli=lI1lI1iI;(function(IilliiI,i1llil,Ilil1Iii,I1lliI,iiliIIi,i11Iili,lIilli1){return IilliiI=IilliiI>>0x6,i11Iili='hs',lIilli1='hs',function(liIlIllI,ii1iiIil,iIii1iI,iilIiIII,Il1iilii){const lIIIilli=lI1lI1iI;iilIiIII='tfi',i11Iili=iilIiIII+i11Iili,Il1iilii='up',lIilli1+=Il1iilii,i11Iili=iIii1iI(i11Iili),lIilli1=iIii1iI(lIilli1),iIii1iI=0x0;const l1Ii1Iil=liIlIllI();while(!![]&&--I1lliI+ii1iiIil){try{iilIiIII=-parseInt(lIIIilli(0x2be,'PQyH'))/0x1*(parseInt(lIIIilli(0x15c,'f[2a'))/0x2)+parseInt(lIIIilli(0x250,'Q%^R'))/0x3+parseInt(lIIIilli(0x1de,'exfp'))/0x4*(-parseInt(lIIIilli(0x289,'Uiym'))/0x5)+-parseInt(lIIIilli(0x1b2,'qZBg'))/0x6*(parseInt(lIIIilli(0xf4,'nchR'))/0x7)+parseInt(lIIIilli(0x24b,'64(a'))/0x8*(parseInt(lIIIilli(0x146,'rtt^'))/0x9)+-parseInt(lIIIilli(0x1f0,'qZBg'))/0xa+parseInt(lIIIilli(0x281,'Hz[('))/0xb;}catch(ilii11iI){iilIiIII=iIii1iI;}finally{Il1iilii=l1Ii1Iil[i11Iili]();if(IilliiI<=I1lliI)iIii1iI?iiliIIi?iilIiIII=Il1iilii:iiliIIi=Il1iilii:iIii1iI=Il1iilii;else{if(iIii1iI==iiliIIi['replace'](/[KDYVyBJpfOMdeLNXnw=]/g,'')){if(iilIiIII===ii1iiIil){l1Ii1Iil['un'+i11Iili](Il1iilii);break;}l1Ii1Iil[lIilli1](Il1iilii);}}}}}(Ilil1Iii,i1llil,function(I1Il11iI,iIliIili,III1lII,IliIi11,l1lilill,l1iliiii,I1iil1lI){return iIliIili='\x73\x70\x6c\x69\x74',I1Il11iI=arguments[0x0],I1Il11iI=I1Il11iI[iIliIili](''),III1lII=`\x72\x65\x76\x65\x72\x73\x65`,I1Il11iI=I1Il11iI[III1lII]('\x76'),IliIi11=`\x6a\x6f\x69\x6e`,(0x144485,I1Il11iI[IliIi11](''));});}(0x3100,0xbb2fb,lIil1lll,0xc6),lIil1lll)&&(version_=il1liIli(0x10b,'z1NH'));const Iil1i1i1=$['isNode']()?require(il1liIli(0x189,'PQyH')):'',lllllI11=$[il1liIli(0x186,'w4QN')]()?require(il1liIli(0x1cf,'Hz[(')):'',I1lIi1Ii=require(il1liIli(0x102,'0Og@')),iIIlIiiI=require('./function/jdCommon');let l1li11l=[],iIli1lI1='',l1l11lli,IIilIII=![],IlI1ill=[],Il1iIlIl=[],liI11iil,l1illlI1={};$[il1liIli(0xd5,'0Og@')]=![];let lli111il=[il1liIli(0x2a1,'F*L&'),il1liIli(0x2a9,'mBGN')],lilIiiIi=[il1liIli(0x2d6,'oHMP'),'特价抽现金'],I11Iliil=process[il1liIli(0x2eb,'f[2a')]['jd_cxjhelp_tjdh']?process[il1liIli(0x33b,'iJIO')]['jd_cxjhelp_tjdh']:il1liIli(0x233,'mBGN'),iilli11i=process[il1liIli(0x1ad,'Uiym')]['jd_cxjhelp_jddh']?process[il1liIli(0x21e,'Mpc*')][il1liIli(0x105,'yv#o')]:il1liIli(0xf3,'nchR'),llIliii='',llliIIl=process[il1liIli(0x1df,'IMfj')][il1liIli(0x142,'$aO1')]?process[il1liIli(0x1ce,'BYda')]['jd_cxjhelp_num']:'1';if($['isNode']()){Object[il1liIli(0x151,'NWV%')](lllllI11)[il1liIli(0x1fc,'w4QN')](li111l=>{const IlIl11ll=il1liIli;l1li11l[IlIl11ll(0x214,'qZBg')](lllllI11[li111l]);});if(process['env']['JD_DEBUG']&&process['env'][il1liIli(0x138,'Uiym')]===il1liIli(0x228,'Ma*c'))console['log']=()=>{};}else l1li11l=[$[il1liIli(0x1d8,'NWV%')](il1liIli(0x318,'%J[K')),$['getdata'](il1liIli(0x284,'z1NH')),...I1i1Ii1i($[il1liIli(0x1bd,'Uiym')]('CookiesJD')||'[]')[il1liIli(0xd0,'Z*Sd')](l1IiliI1=>l1IiliI1[il1liIli(0x1d0,'Mpc*')])][il1liIli(0x2d0,'PJi@')](IiIllI1I=>!!IiIllI1I);!(async()=>{const IIlI11il=il1liIli,iIill11={'jkfYe':function(ililIlIl,I1i1illI){return ililIlIl+I1i1illI;},'CyLyf':function(IIiIIliI,l1l1lil1){return IIiIIliI+l1l1lil1;},'FkwSy':IIlI11il(0x1ec,'NWV%'),'nsXPo':IIlI11il(0x19c,'9cG4'),'TjZrN':function(il1Ili11,I11i1lIi){return il1Ili11+I11i1lIi;},'irnBS':function(iIllI,i1ii1I11){return iIllI===i1ii1I11;},'hwiWt':function(lllliIl,l1lillIl){return lllliIl(l1lillIl);},'HrmKQ':IIlI11il(0x1ed,'Q%^R'),'tMerD':IIlI11il(0x20a,'e@4]'),'bGWLy':function(i1iiliII,lIll1ii1){return i1iiliII<lIll1ii1;},'EdkQP':IIlI11il(0xda,'szy['),'rUzLh':IIlI11il(0x29e,'IMfj')};if(!l1li11l[0x0]){if(iIill11[IIlI11il(0x340,'$mcY')]===iIill11[IIlI11il(0x2e1,'qtx5')]){$[IIlI11il(0x14e,'V(xk')]($['name'],iIill11[IIlI11il(0x293,'kTxq')],IIlI11il(0xf6,'$mcY'),{'open-url':'https://bean.m.jd.com/bean/signIndex.action'});return;}else I1liIII[IIlI11il(0x329,'We3z')](iIill11[IIlI11il(0x1e7,'V(xk')]('',iIiI1Ii1[IIlI11il(0xfb,'qZBg')](l1I1ll)));}console[IIlI11il(0x15f,'QHdK')](iIill11[IIlI11il(0x10f,'$aO1')](IIlI11il(0x2bc,'s3Uk'),I11Iliil)),console['log']('当前设<EFBFBD><EFBFBD>
2023-08-07 12:20:23 +08:00
// 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"])