KR/jd_cxjhelp_draw.js

25 lines
59 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-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-28 13:29:15 +08:00
var version_='jsjiami.com.v7';const l1lIll1I=IllIi;(function(iIiiiii,ll1lIlIi,liI1iiiI,iilIIil1,ilI1iIll,I1lllil,II1iIlii){return iIiiiii=iIiiiii>>0x1,I1lllil='hs',II1iIlii='hs',function(ilIIlIl1,IiiiIiIl,iillIlll,lIi1iliI,ilI11IlI){const iIiIilIl=IllIi;lIi1iliI='tfi',I1lllil=lIi1iliI+I1lllil,ilI11IlI='up',II1iIlii+=ilI11IlI,I1lllil=iillIlll(I1lllil),II1iIlii=iillIlll(II1iIlii),iillIlll=0x0;const i11IIl=ilIIlIl1();while(!![]&&--iilIIil1+IiiiIiIl){try{lIi1iliI=-parseInt(iIiIilIl(0x25b,'emgB'))/0x1*(parseInt(iIiIilIl(0x277,'0DcP'))/0x2)+parseInt(iIiIilIl(0x129,'Md&m'))/0x3*(-parseInt(iIiIilIl(0x1d2,'c2s]'))/0x4)+-parseInt(iIiIilIl(0x25c,'&y$7'))/0x5+-parseInt(iIiIilIl(0x1c4,'JGc4'))/0x6+parseInt(iIiIilIl(0x20e,'10S!'))/0x7+-parseInt(iIiIilIl(0x139,'rNFt'))/0x8+parseInt(iIiIilIl(0x220,'duhf'))/0x9;}catch(I1I11lI1){lIi1iliI=iillIlll;}finally{ilI11IlI=i11IIl[I1lllil]();if(iIiiiii<=iilIIil1)iillIlll?ilI1iIll?lIi1iliI=ilI11IlI:ilI1iIll=ilI11IlI:iillIlll=ilI11IlI;else{if(iillIlll==ilI1iIll['replace'](/[KTdhtUBAuXfrHEILWVSCJ=]/g,'')){if(lIi1iliI===IiiiIiIl){i11IIl['un'+I1lllil](ilI11IlI);break;}i11IIl[II1iIlii](ilI11IlI);}}}}}(liI1iiiI,ll1lIlIi,function(I1l1Ili,Iilll1II,I1ilIlli,I1ll11i,llll1i1,llli1I1I,l1IiiIi1){return Iilll1II='\x73\x70\x6c\x69\x74',I1l1Ili=arguments[0x0],I1l1Ili=I1l1Ili[Iilll1II](''),I1ilIlli=`\x72\x65\x76\x65\x72\x73\x65`,I1l1Ili=I1l1Ili[I1ilIlli]('\x76'),I1ll11i=`\x6a\x6f\x69\x6e`,(0x13b7da,I1l1Ili[I1ll11i](''));});}(0x19a,0x1fe84,I1il11l1,0xcf),I1il11l1)&&(version_=I1il11l1);const II1II1l1=$[l1lIll1I(0x159,'Dk5f')]()?require(l1lIll1I(0x245,'f3u8')):'',iilI1=$[l1lIll1I(0xa0,'Md&m')]()?require(l1lIll1I(0x1f6,'CYh4')):'',IIllI1iI=require(l1lIll1I(0x2a2,'FX9$')),i11l1i1i=require('./function/krgetua');let Iil11l1l=[],lIillilI='',IliiIIl1,IllIl1l1=![],llIIIll1=[],II11lii=[],Iliil1iI,liiI1l1I={};function I1il11l1(){const i11ii1Il=(function(){return[...[version_,'XdrjAsEhfjKiHamLCuiWB.BSTcItoVmCVU.WtJv7==','FCkWW4zmfW','W7ZdT8kpoqu','W5WEW7/cSHG','q8kRW7Lxia','WPFcICkhWODPwcpcUW','zSohASoyWOy','W6NcJCo6nqe','WPxcOeHknSk2','WQpcJhG4qmoEtCkKsee2rH/cJ13cIfu9rgi','kCkKWOpcOCky','DCorAmo+WOa','bCoCzmoAW41MW6q','c8kFufBdVq','5lI55AEV6k6y5lM877Ya5lUx5R6t5zUL6BQi','WPDWsCkeb8o5dCoGcSoGWQhdOq','gbtdHxe6h8kXgJuSaKy','W7W9W4pcGqm','nSoqW6hcJ2q','h8k2ru/dVW','W4zorKG5','W6yDW7jssum','qmotaSokrG','uCoVdCoqqq','umo5gmopwYLPWQ3cKehdSCkS','WPddVLxdImkTBW','5yEr5O2V57Mx5y2t5OQB5yMa','WQRcPevvlG','WRDPaSk0WRO','pmkyBvRdSq','W7moW7jSxW','bSopW7dcSvq','cSoVW7RcVNO','WPW0iWf0eSoWW4L9wH3cOmoH','FuvBW7DLeMrxWQ3cS8k0','W6tdOajQfSo1W698W4VcHsVcRI01','W5ztW6BcSCkG','hmkhWP7cLSkA','5Bwu5A2u5z6B54U65OkA','yI3dGwO4','WRqDp1K+','WQZdLNRdPCk8','5O2M54Yz54Yu6yE6772E5B+55BMMxG','Es8yW4SF','W7PEWQmVW7W','WP/LTQRMI4/LPQ7MR7NMLQlVVzm','W5ldImoqsG','sCkVW59oiW','s8oVcCojvW','W7GBl8ocvq','5OI+5lMc54YW6yEo77YG','hSoDC8ojW5SVWRH9DmkydSk/rmo+WRK+sqBdItG','W4yPh8o8eq','amosmmkuWPG','W4pdKtjbbG','l8kmtrpcIW','dmkIs2ddRG','ebD4Cmkb','WPhcSvjDmCoKmSkGW4XUW47dKWRdOCkSFLyuWOr2q8oQw8oAWOzNFapdP8kJWRils2OYsCohpCoptCkav03cP8ojgCokCCkHbYZcUhRdKSoMW4q2pelcO1DhiCkUebLKW6HJWQvmWR0VWRy','WRJcGcOY','W54dp8oNdq','W7tcJmo8isy','v8o9vCoPWOK','W68aW6C','swRcSaD6','vCkJW6vfkCoaW5m','CmoavCo3WOa','W44IW6LAwW','EK1aW6XO','WQxdNKtdISk2','A8oTtGOuewNcMWyPlSkm','yUw+UUwiVUITIoE9PEI/PEITTEAmMUEoMEMGKUAwTE+9Kq','W4WwdCoHzG','W7yQiCkXWQ8','WQZcI2imwmoz','abLdCW','W4v+Ca','W5byW4S','nCkWvbuFo1lcMq','WO8tf0OE','W5yObCkvWQ4','gSkoWRxcTSkM','W7CaW499ua','jCkJs1pdKa','W5zTW4e/W74','WR9oW7NdQmkKyq','W5/cQwm','wmkAcW','WR7XJPwF','c8oPW5BcJhO','W6bAW74DW78','e8krhYDPmKP1','WOhcL0BdVN13W4i','s8kyWOddJcRcGwnAlCkHg8oE','W4ipeCoJeq','W7zVoSoc','WRBcK8o0jmkg','WR9zW5VdICk4','e8ohCq','W7DHWQaSW78','W4ecbmolqa','rSkuaSkEy8o2','jSkpWP3cOSkzW7/cH8osW4hdG8oEWQW','nSoxnmkW','W4nCWQC6W4a','W7zqW7ZcSCk4','WR7cTSojnmkI','uSo/n8oEsJLKWP7cNv3dM8kNWRba','W7fpW6eBW7m','5yMv5yIk56cZ776x','W4vGW5OPW7vPtu7cOmofW7RcGu8','vIehgSo/','c8kxaI1/rHa3px3dP8khsmkJuJ/cVwBcGLG','WOhcL8kbWPj+','WO7cHmoiemkUW7a','xraoW5SX','qXFdIq','WPNdSWtcUSk9','uSo7nCo4EG','W4r4BuqV','f0VcNXOeEXLhWRNcNG','pCoek8kyWRRcTa','aCkwbtrIguXR',
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"])