KR/jd_cxjhelp_draw.js

20 lines
64 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-08 21:13:42 +08:00
更新抽奖火爆重试一直火爆一直重试
2023-08-09 11:39:04 +08:00
更新统计
2023-08-19 14:45:41 +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-08-19 14:45:41 +08:00
var version_='jsjiami.com.v7';const _0x325fb8=_0x2e28;(function(_0x5949ea,_0x5715a5,_0x3e13b9,_0x36d12a,_0x51e143,_0x580598,_0xcb613){return _0x5949ea=_0x5949ea>>0x3,_0x580598='hs',_0xcb613='hs',function(_0x3f962e,_0xc960bc,_0x292388,_0x1b4bc4,_0xf62e78){const _0x3e1f11=_0x2e28;_0x1b4bc4='tfi',_0x580598=_0x1b4bc4+_0x580598,_0xf62e78='up',_0xcb613+=_0xf62e78,_0x580598=_0x292388(_0x580598),_0xcb613=_0x292388(_0xcb613),_0x292388=0x0;const _0x401df7=_0x3f962e();while(!![]&&--_0x36d12a+_0xc960bc){try{_0x1b4bc4=-parseInt(_0x3e1f11(0x297,'$sjE'))/0x1*(parseInt(_0x3e1f11(0x3c9,'mRlS'))/0x2)+-parseInt(_0x3e1f11(0x20b,'x0Iw'))/0x3*(parseInt(_0x3e1f11(0x3d2,'$huz'))/0x4)+parseInt(_0x3e1f11(0x3c4,'jgeM'))/0x5+-parseInt(_0x3e1f11(0x281,'R0*R'))/0x6+parseInt(_0x3e1f11(0x303,'O@O1'))/0x7+parseInt(_0x3e1f11(0x311,'Vkah'))/0x8+parseInt(_0x3e1f11(0x393,'btP['))/0x9;}catch(_0xc89622){_0x1b4bc4=_0x292388;}finally{_0xf62e78=_0x401df7[_0x580598]();if(_0x5949ea<=_0x36d12a)_0x292388?_0x51e143?_0x1b4bc4=_0xf62e78:_0x51e143=_0xf62e78:_0x292388=_0xf62e78;else{if(_0x292388==_0x51e143['replace'](/[yFWTHOBLGUEbePthKNXn=]/g,'')){if(_0x1b4bc4===_0xc960bc){_0x401df7['un'+_0x580598](_0xf62e78);break;}_0x401df7[_0xcb613](_0xf62e78);}}}}}(_0x3e13b9,_0x5715a5,function(_0xce9dbc,_0x5e819d,_0x131772,_0x4e803,_0x11a067,_0x55b334,_0x112800){return _0x5e819d='\x73\x70\x6c\x69\x74',_0xce9dbc=arguments[0x0],_0xce9dbc=_0xce9dbc[_0x5e819d](''),_0x131772='\x72\x65\x76\x65\x72\x73\x65',_0xce9dbc=_0xce9dbc[_0x131772]('\x76'),_0x4e803='\x6a\x6f\x69\x6e',(0x13a190,_0xce9dbc[_0x4e803](''));});}(0x640,0x90aaf,_0x48cf,0xca),_0x48cf)&&(version_=_0x48cf);const _0x1e37d3=$['isNode']()?require(_0x325fb8(0x42c,'EZWw')):'',_0x1b11c7=$['isNode']()?require('./jdCookie'):'',_0x1959e5=require(_0x325fb8(0x25d,'#oc(')),_0x2431dc=require(_0x325fb8(0x25f,')Fep'));let _0x366522=[],_0x4a14eb='',_0x4947b1,_0xe21911=![],_0x43232c=[],_0x33e612=[],_0xdb35e7,_0x132782={};$[_0x325fb8(0x35f,'pWEO')]=![];let _0x3f660a=[_0x325fb8(0x35a,'O@O1'),_0x325fb8(0x373,'pWEO')],_0x11ccc3=[_0x325fb8(0x248,'$huz'),_0x325fb8(0x30a,'Vkah')],_0x13b53f='',_0x393165=process[_0x325fb8(0x2bf,'x0Iw')][_0x325fb8(0x414,'Vkah')]?process[_0x325fb8(0x3f6,'R0*R')][_0x325fb8(0x1ff,'mlpH')]:'1';if($[_0x325fb8(0x2e0,'Yfr6')]()){Object['keys'](_0x1b11c7)[_0x325fb8(0x334,'E&[*')](_0x2b51b9=>{_0x366522['push'](_0x1b11c7[_0x2b51b9]);});if(process[_0x325fb8(0x37f,'ut8p')][_0x325fb8(0x3a5,'CW@^')]&&process['env']['JD_DEBUG']===_0x325fb8(0x26f,'iK[g'))console[_0x325fb8(0x31c,'O@O1')]=()=>{};}else _0x366522=[$[_0x325fb8(0x3a7,'9siB')](_0x325fb8(0x424,'teMq')),$[_0x325fb8(0x275,'M*YJ')]('CookieJD2'),..._0x54c1e5($[_0x325fb8(0x3ad,'O@O1')](_0x325fb8(0x302,'CW@^'))||'[]')[_0x325fb8(0x1f5,'EZWw')](_0x4e58ec=>_0x4e58ec[_0x325fb8(0x2f8,'M*YJ')])][_0x325fb8(0x24e,'i7Px')](_0x10d349=>!!_0x10d349);!(async()=>{const _0x577e61=_0x325fb8,_0x3a84a4={'ZSsZv':function(_0x403a89,_0x424908){return _0x403a89<_0x424908;},'CEoAp':function(_0x417d1e,_0x38012f){return _0x417d1e===_0x38012f;},'yYlTA':'EspSf','sgzIp':_0x577e61(0x422,'ka]u'),'cUOrX':_0x577e61(0x30b,'S2L#'),'bcWax':'nIUzG','erbkB':function(_0x5e2ee9,_0x26fb9f){return _0x5e2ee9(_0x26fb9f);},'NtiXJ':function(_0x2c9f87,_0x269bd5){return _0x2c9f87+_0x269bd5;},'ymUsq':function(_0x5cc063,_0x1cfa60){return _0x5cc063+_0x1cfa60;},'XsPSu':_0x577e61(0x3b8,'$sjE'),'hihVl':'******\x0a','VWHpA':function(_0x29c9f1,_0x1961f7){return _0x29c9f1<_0x1961f7;},'UmQpz':'1|0|4|3|2','Pvpke':function(_0x2a245a){return _0x2a245a();}};if(!_0x366522[0x0]){if(_0x3a84a4['CEoAp']('EspSf',_0x3a84a4['yYlTA'])){$[_0x577e61(0x2ec,'V[0C')]($[_0x577e61(0x415,'$sgj')],_0x3a84a4[_0x577e61(0x2d9,'BVKC')],_0x3a84a4[_0x577e61(0x3ec,'iiM8')],{'open-url':_0x577e61(0x3a6,'ut8p')});return;}else{_0x13973c=_0x42270c||0x20;let _0x3addbb=_0x577e61(0x386,'O@O1'),_0x462569=_0x3addbb[_0x577e61(0x2fc,'ka]u')],_0x3dd352='';for(let _0x4a1841=0x0;_0x3a84a4[_0x577e61(0x36f,'n*@P')](_0x4a1841,_0x54e399);_0x4a1841++)_0x3dd352+=_0x3addbb[_0x577e61(0x31e,'pWEO')](_0x1f7f3b['floor'](_0x182781[_0x577e61(0x3f0,'Yfr6')]()*_0x462569));return _0x3dd352;}}for(l
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"])