KR/jd_pdd1_draw.js

39 lines
77 KiB
JavaScript
Raw Normal View History

2023-11-03 15:48:58 +08:00
/*
PDD转赚红包抽奖提现
入口京东APP玩一玩转赚红包
链接https://pro.m.jd.com/mall/active/3BwUqhLsJYrHP4qgAgDDJGrSVngK/index.html
轮询提现变量JD_PDD1_TXNUM //轮询提现页数
提现间隔时间JD_PDD1_TXWAIT //提现兑换间隔,默认 3 秒
提现变量JD_PDD1_TXCASH //是否提现默认不提现true/false
重试变量
JD_PDD1_TXMAX_RETRY // 已存在状态/待发放,提现中,等最大重试次数 默认 5 次
JD_PDD1_DRAW_RETRY // 抽奖 提示未中奖等最大重试次数 默认 20 次
兑换红包变量
export JD_PDD1_Exchange="true" // 上限后兑换红包,默认关闭
注意轮询页数也大越容易403请谨慎填写
代理变量
JD_PDD_PROXY_OPEN // 代理启用变量默认不开启true/false
JD_PDD_PROXY_TUNNRL // 代理池代理地址变量,默认不开启,仅支持代理池模式(auto-proxy-pool)格式为http://ip:port
JD_PDD_PROXY_URL // API代理地址变量默认不开启仅支持 数据格式:txt;提取数量:每次一个格式为http://api.xxx.xxx
JD_PDD_NO_PROXY // 禁止走代理,默认 127.0.0.1,*.baidu.com 需要自行修改
cron:1 1 1 1 *
============Quantumultx===============
[task_local]
#PDD转赚红包抽奖提现
1 1 1 1 * jd_pdd1_draw.js, tag=PDD转赚红包抽奖提现, enabled=true
*/
const $ = new Env('PDD转赚红包抽奖提现');
var version_='jsjiami.com.v7';const lIlll1=iii1II;(function(li1li,iIIIll,ll1Ii1,li1ll,iliii1,i1IiI,lIllil){return li1li=li1li>>0x4,i1IiI='hs',lIllil='hs',function(iilIi1,I111,I1I11l,I1I11i,l1iI1l){const Ili1iI=iii1II;I1I11i='tfi',i1IiI=I1I11i+i1IiI,l1iI1l='up',lIllil+=l1iI1l,i1IiI=I1I11l(i1IiI),lIllil=I1I11l(lIllil),I1I11l=0x0;const III1ll=iilIi1();while(!![]&&--li1ll+I111){try{I1I11i=parseInt(Ili1iI(0x2ed,'h^7m'))/0x1*(-parseInt(Ili1iI(0x3f6,'dyk]'))/0x2)+-parseInt(Ili1iI(0x456,'lhgt'))/0x3*(-parseInt(Ili1iI(0x336,'samD'))/0x4)+parseInt(Ili1iI(0x3e9,'OYXP'))/0x5*(parseInt(Ili1iI(0x290,'PfnT'))/0x6)+-parseInt(Ili1iI(0x23c,'dyk]'))/0x7+-parseInt(Ili1iI(0x1a7,'p3qE'))/0x8*(parseInt(Ili1iI(0x3fa,'Ax6R'))/0x9)+parseInt(Ili1iI(0x40c,'*A8e'))/0xa*(-parseInt(Ili1iI(0x431,'r)QW'))/0xb)+-parseInt(Ili1iI(0x1fa,'PfnT'))/0xc*(-parseInt(Ili1iI(0x30f,'GSUp'))/0xd);}catch(l1lIIi){I1I11i=I1I11l;}finally{l1iI1l=III1ll[i1IiI]();if(li1li<=li1ll)I1I11l?iliii1?I1I11i=l1iI1l:iliii1=l1iI1l:I1I11l=l1iI1l;else{if(I1I11l==iliii1['replace'](/[TJnWgDEeHkYhCMuLR=]/g,'')){if(I1I11i===I111){III1ll['un'+i1IiI](l1iI1l);break;}III1ll[lIllil](l1iI1l);}}}}}(ll1Ii1,iIIIll,function(iII11I,IiIii1,l1lIIl,i1lIl,i1lIi,iilIiI,III1li){return IiIii1='\x73\x70\x6c\x69\x74',iII11I=arguments[0x0],iII11I=iII11I[IiIii1](''),l1lIIl=`\x72\x65\x76\x65\x72\x73\x65`,iII11I=iII11I[l1lIIl]('\x76'),i1lIl=`\x6a\x6f\x69\x6e`,(0x145e1f,iII11I[i1lIl](''));});}(0xcd0,0x74703,Iii11l,0xcf),Iii11l)&&(version_=lIlll1(0x22a,'$bsk'));function iii1II(_0x45f229,_0x34f139){const _0x125073=Iii11l();return iii1II=function(_0x54451d,_0x20cb69){_0x54451d=_0x54451d-0x179;let _0x315fcf=_0x125073[_0x54451d];if(iii1II['mJzeJB']===undefined){var _0x29e6ef=function(_0x28bd8d){const _0x180460='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x43caa7='',_0x554352='';for(let _0x1ebad2=0x0,_0x404e4d,_0x3d1d34,_0x690f58=0x0;_0x3d1d34=_0x28bd8d['charAt'](_0x690f58++);~_0x3d1d34&&(_0x404e4d=_0x1ebad2%0x4?_0x404e4d*0x40+_0x3d1d34:_0x3d1d34,_0x1ebad2++%0x4)?_0x43caa7+=String['fromCharCode'](0xff&_0x404e4d>>(-0x2*_0x1ebad2&0x6)):0x0){_0x3d1d34=_0x180460['indexOf'](_0x3d1d34);}for(let _0x2975fc=0x0,_0xdba97=_0x43caa7['length'];_0x2975fc<_0xdba97;_0x2975fc++){_0x554352+='%'+('00'+_0x43caa7['charCodeAt'](_0x2975fc)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x554352);};const _0x1771de=function(_0x1c7357,_0x40fbf8){let _0x139165=[],_0x6ae5f5=0x0,_0x49521b,_0x43e673='';_0x1c7357=_0x29e6ef(_0x1c7357);let _0x48355a;for(_0x48355a=0x0;_0x48355a<0x100;_0x48355a++){_0x139165[_0x48355a]=_0x48355a;}for(_0x48355a=0x0;_0x48355a<0x100;_0x48355a++){_0x6ae5f5=(_0x6ae5f5+_0x139165[_0x48355a]+_0x40fbf8['charCodeAt'](_0x48355a%_0x40fbf8['length']))%0x100,_0x49521b=_0x139165[_0x48355a],_0x139165[_0x48355a]=_0x139165[_0x6ae5f5],_0x139165[_0x6ae5f5]=_0x49521b;}_0x48355a=0x0,_0x6ae5f5=0x0;for(let _0x1f6b62=0x0;_0x1f6b62<_0x1c7357['length'];_0x1f6b62++){_0x48355a=(_0x48355a+0x1)%0x100,_0x6ae5f5=(_0x6ae5f5+_0x139165[_0x48355a])%0x100,_0x49521b=_0x139165[_0x48355a],_0x139165[_0x48355a]=_0x139165[_0x6ae5f5],_0x139165[_0x6ae5f5]=_0x49521b,_0x43e673+=String['fromCharCode'](_0x1c7357['charCodeAt'](_0x1f6b62)^_0x139165[(_0x139165[_0x48355a]+_0x139165[_0x6ae5f5])%0x100]);}return _0x43e673;};iii1II['yTUrqc']=_0x1771de,_0x45f229=arguments,iii1II['mJzeJB']=!![];}const _0x3cfc9f=_0x125073[0x0],_0x412e99=_0x54451d+_0x3cfc9f,_0x1a75d0=_0x45f229[_0x412e99];return!_0x1a75d0?(iii1II['faFZVn']===undefined&&(iii1II['faFZVn']=!![]),_0x315fcf=iii1II['yTUrqc'](_0x315fcf,_0x20cb69),_0x45f229[_0x412e99]=_0x315fcf):_0x315fcf=_0x1a75d0,_0x315fcf;},iii1II(_0x45f229,_0x34f139);}const l1liii=require(lIlll1(0x2e4,'SUO1')),I1Ili1=require(lIlll1(0x1b3,'PfnT')),l1liil=require(lIlll1(0x17e,'LSPw')),i1ll1=require(lIlll1(0x4aa,'$bi2')),lilI1I=process[lIlll1(0x49b,'#qAB')]['JD_PDD1_Notify']===lIlll1(0x269,']UK&'),lI1I1l=process[lIlll1(0x195,'9zw$')][lIlll1(0x236,'nG]%')]===lIlll1(0x27c,'dv7@'),Il1Il=process[lIlll1(0x2dd,'mD9V')][lIlll1(0x310,'Ax6R')]||'1',i1IiiI=process[lIlll1(0x381,'CTwm')][lIlll1(0x3fc,'3Q!!')]===lIlll1(0x2de,'
// 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.d