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-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-09-19 15:55:23 +08:00
|
|
|
|
var version_='jsjiami.com.v7';const lI1IlIl=Iii1lii1;(function(lI1Il1Il,iIi1iliI,i1IiIiii,IlI111i1,Iii1i1l,il11iI1l,iIlI11il){return lI1Il1Il=lI1Il1Il>>0x5,il11iI1l='hs',iIlI11il='hs',function(iII1Ill,I1i1i11,l1IlII11,Iil1ii,iiIlI111){const llIIlliI=Iii1lii1;Iil1ii='tfi',il11iI1l=Iil1ii+il11iI1l,iiIlI111='up',iIlI11il+=iiIlI111,il11iI1l=l1IlII11(il11iI1l),iIlI11il=l1IlII11(iIlI11il),l1IlII11=0x0;const I11i11=iII1Ill();while(!![]&&--IlI111i1+I1i1i11){try{Iil1ii=-parseInt(llIIlliI(0x33a,'3(^D'))/0x1*(-parseInt(llIIlliI(0x237,'@N)u'))/0x2)+parseInt(llIIlliI(0x38e,'fspw'))/0x3*(parseInt(llIIlliI(0x315,']Lp$'))/0x4)+-parseInt(llIIlliI(0x439,'MRbM'))/0x5+parseInt(llIIlliI(0x40e,'0uBT'))/0x6+-parseInt(llIIlliI(0x317,'LKFS'))/0x7*(parseInt(llIIlliI(0x208,'Xje)'))/0x8)+-parseInt(llIIlliI(0x2df,'3(^D'))/0x9*(-parseInt(llIIlliI(0x250,'P!Fs'))/0xa)+parseInt(llIIlliI(0x3e2,'P!Fs'))/0xb*(-parseInt(llIIlliI(0x321,'WPqP'))/0xc);}catch(lIl1Il1I){Iil1ii=l1IlII11;}finally{iiIlI111=I11i11[il11iI1l]();if(lI1Il1Il<=IlI111i1)l1IlII11?Iii1i1l?Iil1ii=iiIlI111:Iii1i1l=iiIlI111:l1IlII11=iiIlI111;else{if(l1IlII11==Iii1i1l['replace'](/[gEyFVSCnLNwOWrkKdX=]/g,'')){if(Iil1ii===I1i1i11){I11i11['un'+il11iI1l](iiIlI111);break;}I11i11[iIlI11il](iiIlI111);}}}}}(i1IiIiii,iIi1iliI,function(lI1I1li1,ill1Il1i,i1Ii1l1I,lll1IIi1,IIi11Il1,iIIIllII,Iil1i11i){return ill1Il1i='\x73\x70\x6c\x69\x74',lI1I1li1=arguments[0x0],lI1I1li1=lI1I1li1[ill1Il1i](''),i1Ii1l1I=`\x72\x65\x76\x65\x72\x73\x65`,lI1I1li1=lI1I1li1[i1Ii1l1I]('\x76'),lll1IIi1=`\x6a\x6f\x69\x6e`,(0x13ef15,lI1I1li1[lll1IIi1](''));});}(0x17a0,0x31060,IiIl11i1,0xbf),IiIl11i1)&&(version_=IiIl11i1);const ii1I1ill=$['isNode']()?require('./sendNotify'):'',ilii1IlI=$[lI1IlIl(0x2f1,'vohr')]()?require('./jdCookie'):'',iIii1111=require(lI1IlIl(0x3dc,'MRbM')),I1illlIl=require(lI1IlIl(0x258,'@N)u'));let lIiliIiI=[],I1l1ill='',lIII,IIlll11I=![],i1l1lI1I=[],iIIIIlii=[],lIII1ili,iIilIlll={};function Iii1lii1(_0x25c303,_0x5ca82b){const _0x23406d=IiIl11i1();return Iii1lii1=function(_0x4929a4,_0x4f9117){_0x4929a4=_0x4929a4-0x1d5;let _0x276d37=_0x23406d[_0x4929a4];if(Iii1lii1['CrhOtj']===undefined){var _0x3991c7=function(_0xc346e3){const _0x4f9dd5='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x1856f7='',_0x5b4332='';for(let _0x2a7ac5=0x0,_0x4820e3,_0x4d0ffb,_0x20f82d=0x0;_0x4d0ffb=_0xc346e3['charAt'](_0x20f82d++);~_0x4d0ffb&&(_0x4820e3=_0x2a7ac5%0x4?_0x4820e3*0x40+_0x4d0ffb:_0x4d0ffb,_0x2a7ac5++%0x4)?_0x1856f7+=String['fromCharCode'](0xff&_0x4820e3>>(-0x2*_0x2a7ac5&0x6)):0x0){_0x4d0ffb=_0x4f9dd5['indexOf'](_0x4d0ffb);}for(let _0x283675=0x0,_0x56da21=_0x1856f7['length'];_0x283675<_0x56da21;_0x283675++){_0x5b4332+='%'+('00'+_0x1856f7['charCodeAt'](_0x283675)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x5b4332);};const _0x1d16fc=function(_0x44b8f,_0x40516d){let _0x2b2356=[],_0x198109=0x0,_0x3cc692,_0x11a840='';_0x44b8f=_0x3991c7(_0x44b8f);let _0x5bfe56;for(_0x5bfe56=0x0;_0x5bfe56<0x100;_0x5bfe56++){_0x2b2356[_0x5bfe56]=_0x5bfe56;}for(_0x5bfe56=0x0;_0x5bfe56<0x100;_0x5bfe56++){_0x198109=(_0x198109+_0x2b2356[_0x5bfe56]+_0x40516d['charCodeAt'](_0x5bfe56%_0x40516d['length']))%0x100,_0x3cc692=_0x2b2356[_0x5bfe56],_0x2b2356[_0x5bfe56]=_0x2b2356[_0x198109],_0x2b2356[_0x198109]=_0x3cc692;}_0x5bfe56=0x0,_0x198109=0x0;for(let _0x1024ad=0x0;_0x1024ad<_0x44b8f['length'];_0x1024ad++){_0x5bfe56=(_0x5bfe56+0x1)%0x100,_0x198109=(_0x198109+_0x2b2356[_0x5bfe56])%0x100,_0x3cc692=_0x2b2356[_0x5bfe56],_0x2b2356[_0x5bfe56]=_0x2b2356[_0x198109],_0x2b2356[_0x198109]=_0x3cc692,_0x11a840+=String['fromCharCode'](_0x44b8f['charCodeAt'](_0x1024ad)^_0x2b2356[(_0x2b2356[_0x5bfe56]+_0x2b2356[_0x198109])%0x100]);}return _0x11a840;};Iii1lii1['EhMWQY']=_0x1d16fc,_0x25c303=arguments,Iii1lii1['CrhOtj']=!![];}const _0x4e8378=_0x23406d[0x0],_0x1c35ef=_0x4929a4+_0x4e8378,_0xec5fb7=_0x25c303[_0x1c35ef];return!_0xec5fb7?(Iii1lii1['FcILRt']===undefined&&(Iii1lii1['FcILRt']=!![]),_0x276d37=Iii1lii1['EhMWQY'](_0x276d37,_0x4f9117),_0x25c303[_0x1c35ef]=_0x276d37):_0x276d37=_0xec5fb7,_0x276d37;},Iii1lii1(_0x25c303,_0x5ca82b);}$[
|
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"])
|