KR/jd_cxjhelp_draw.js

17 lines
50 KiB
JavaScript
Raw Normal View History

2023-08-07 12:20:23 +08:00
/*
#抽现金抽奖提现
轮询提现变量jd_cxjhelp_num //轮询提现页数
注意轮询页数也大越容易403请谨慎填写
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-08-07 14:24:32 +08:00
var version_='jsjiami.com.v7';const Illlii=iii1II;function iii1II(_0x5f76ce,_0x1792b1){const _0x496b43=Iii11l();return iii1II=function(_0x5c251b,_0x486ecd){_0x5c251b=_0x5c251b-0x1d8;let _0x3a773a=_0x496b43[_0x5c251b];if(iii1II['yZcNHi']===undefined){var _0x2fcc92=function(_0x1107e0){const _0x26967b='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x145845='',_0x409264='';for(let _0x6cb995=0x0,_0x57f3cf,_0x7ba094,_0x1850d0=0x0;_0x7ba094=_0x1107e0['charAt'](_0x1850d0++);~_0x7ba094&&(_0x57f3cf=_0x6cb995%0x4?_0x57f3cf*0x40+_0x7ba094:_0x7ba094,_0x6cb995++%0x4)?_0x145845+=String['fromCharCode'](0xff&_0x57f3cf>>(-0x2*_0x6cb995&0x6)):0x0){_0x7ba094=_0x26967b['indexOf'](_0x7ba094);}for(let _0x10e25b=0x0,_0x9a036d=_0x145845['length'];_0x10e25b<_0x9a036d;_0x10e25b++){_0x409264+='%'+('00'+_0x145845['charCodeAt'](_0x10e25b)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x409264);};const _0x12fb4c=function(_0x5071e8,_0xacbdd){let _0x2868ac=[],_0x2c5599=0x0,_0x267a23,_0x13078b='';_0x5071e8=_0x2fcc92(_0x5071e8);let _0x2c8e88;for(_0x2c8e88=0x0;_0x2c8e88<0x100;_0x2c8e88++){_0x2868ac[_0x2c8e88]=_0x2c8e88;}for(_0x2c8e88=0x0;_0x2c8e88<0x100;_0x2c8e88++){_0x2c5599=(_0x2c5599+_0x2868ac[_0x2c8e88]+_0xacbdd['charCodeAt'](_0x2c8e88%_0xacbdd['length']))%0x100,_0x267a23=_0x2868ac[_0x2c8e88],_0x2868ac[_0x2c8e88]=_0x2868ac[_0x2c5599],_0x2868ac[_0x2c5599]=_0x267a23;}_0x2c8e88=0x0,_0x2c5599=0x0;for(let _0x3604c1=0x0;_0x3604c1<_0x5071e8['length'];_0x3604c1++){_0x2c8e88=(_0x2c8e88+0x1)%0x100,_0x2c5599=(_0x2c5599+_0x2868ac[_0x2c8e88])%0x100,_0x267a23=_0x2868ac[_0x2c8e88],_0x2868ac[_0x2c8e88]=_0x2868ac[_0x2c5599],_0x2868ac[_0x2c5599]=_0x267a23,_0x13078b+=String['fromCharCode'](_0x5071e8['charCodeAt'](_0x3604c1)^_0x2868ac[(_0x2868ac[_0x2c8e88]+_0x2868ac[_0x2c5599])%0x100]);}return _0x13078b;};iii1II['GjkaJH']=_0x12fb4c,_0x5f76ce=arguments,iii1II['yZcNHi']=!![];}const _0x20ef4d=_0x496b43[0x0],_0x37f471=_0x5c251b+_0x20ef4d,_0x35457b=_0x5f76ce[_0x37f471];return!_0x35457b?(iii1II['HUTXRp']===undefined&&(iii1II['HUTXRp']=!![]),_0x3a773a=iii1II['GjkaJH'](_0x3a773a,_0x486ecd),_0x5f76ce[_0x37f471]=_0x3a773a):_0x3a773a=_0x35457b,_0x3a773a;},iii1II(_0x5f76ce,_0x1792b1);}(function(li1i,ilIIil,lIili1,li1l,iliiII,iiI1li,IIliii){return li1i=li1i>>0x3,iiI1li='hs',IIliii='hs',function(i1111I,IliIl1,lIl1lI,iiI1ll,lIiliI){const lI1ill=iii1II;iiI1ll='tfi',iiI1li=iiI1ll+iiI1li,lIiliI='up',IIliii+=lIiliI,iiI1li=lIl1lI(iiI1li),IIliii=lIl1lI(IIliii),lIl1lI=0x0;const iIiill=i1111I();while(!![]&&--li1l+IliIl1){try{iiI1ll=-parseInt(lI1ill(0x38c,'mJ*G'))/0x1*(parseInt(lI1ill(0x255,'QkPX'))/0x2)+parseInt(lI1ill(0x232,'eJfb'))/0x3*(-parseInt(lI1ill(0x377,'wOe#'))/0x4)+-parseInt(lI1ill(0x358,'5FLv'))/0x5+parseInt(lI1ill(0x268,'^]1['))/0x6*(-parseInt(lI1ill(0x365,'QkPX'))/0x7)+-parseInt(lI1ill(0x350,'g#J0'))/0x8*(-parseInt(lI1ill(0x334,'eJfb'))/0x9)+-parseInt(lI1ill(0x372,'edtf'))/0xa*(-parseInt(lI1ill(0x367,'bHKM'))/0xb)+parseInt(lI1ill(0x37c,'lvi!'))/0xc*(parseInt(lI1ill(0x294,'d[N4'))/0xd);}catch(Ii1IIi){iiI1ll=lIl1lI;}finally{lIiliI=iIiill[iiI1li]();if(li1i<=li1l)lIl1lI?iliiII?iiI1ll=lIiliI:iliiII=lIiliI:lIl1lI=lIiliI;else{if(lIl1lI==iliiII['replace'](/[xTgGrOSBflJeLnPyFWH=]/g,'')){if(iiI1ll===IliIl1){iIiill['un'+iiI1li](lIiliI);break;}iIiill[IIliii](lIiliI);}}}}}(lIili1,ilIIil,function(Ii1IIl,l111I,ll1lli,ll1lll,Illlil,I1iili,lililI){return l111I='\x73\x70\x6c\x69\x74',Ii1IIl=arguments[0x0],Ii1IIl=Ii1IIl[l111I](''),ll1lli='\x72\x65\x76\x65\x72\x73\x65',Ii1IIl=Ii1IIl[ll1lli]('\x76'),ll1lll='\x6a\x6f\x69\x6e',(0x1381dc,Ii1IIl[ll1lll](''));});}(0x608,0x3db97,Iii11l,0xc3),Iii11l)&&(version_=Iii11l);const ili11i=$[Illlii(0x32e,')X25')]()?require('./sendNotify'):'',iiIi1l=$[Illlii(0x2a5,'WSw#')]()?require(Illlii(0x384,'^!!q')):'',li11I=require(Illlii(0x2db,'NY4o')),lliiII=require(Illlii(0x340,'lIUg'));let iiIi1i=[],liI1ll='',ll1II,IllIii=![],liI1li=[],IllIil=[],ill1Ii,llIIl1={};$[Illlii(0x374,')vJi')]=![];let ill1Il=['3orGfh1YkwNLksxOcN8zWQ','Wvzc_VpNTlSkiQdHT8r7QA'],i1lll1=[Illlii(0x25b,'WJkZ'),Illlii(0x2b7,'WJkZ')],Ii1I1I='',l1i1Ii=process['env']
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"])