KR/jd_pdd2_draw.js

42 lines
86 KiB
JavaScript
Raw Normal View History

2023-11-03 16:48:08 +08:00
/*
PDD每日红包抽奖提现
入口京东APP京东秒杀种豆得豆-大额红包
链接https://pro.m.jd.com/mall/active/3WijvBWPdCirCBr72TzkyiPhgdxJ/index.html
轮询提现变量JD_PDD2_TXNUM //轮询提现页数
提现间隔时间JD_PDD2_TXWAIT //提现兑换间隔,默认 3 秒
2023-11-09 10:15:49 +08:00
抽奖间隔时间JD_PDD2_DRAWWAIT //提现兑换间隔,默认 3 秒
2023-11-03 16:48:08 +08:00
提现变量JD_PDD2_TXCASH //是否提现默认不提现true/false
2023-11-09 10:15:49 +08:00
提现上限刷新时长变量JD_PDD2_Swish //是否延长提现时间默认不延长true/false 配合提现页码,上限后延长,可以延迟到期时间,最终效果可以推迟到下个月直接提现。
2023-11-03 16:48:08 +08:00
重试变量
2023-11-09 10:15:49 +08:00
JD_PDD2_TXMAX_RETRY // 已存在状态/待发放,提现中,等最大重试次数 默认 3 次
2023-11-03 16:48:08 +08:00
JD_PDD2_DRAW_RETRY // 抽奖 提示未中奖等最大重试次数 默认 20 次
兑换红包变量
export JD_PDD2_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_PDD2_draw.js, tag=PDD每日红包抽奖提现, enabled=true
*/
const $ = new Env('PDD每日红包抽奖提现');
2023-11-09 10:15:49 +08:00
var version_='jsjiami.com.v7';const lIi1II=iii1II;(function(l1iill,l1ill,lIi1I1,l1iili,illIIi,iiIi,iiIl){return l1iill=l1iill>>0x5,iiIi='hs',iiIl='hs',function(Iil1I,illIIl,iiiIlI,I1i11,Ill1ii){const I1i1i=iii1II;I1i11='tfi',iiIi=I1i11+iiIi,Ill1ii='up',iiIl+=Ill1ii,iiIi=iiiIlI(iiIi),iiIl=iiiIlI(iiIl),iiiIlI=0x0;const IllII=Iil1I();while(!![]&&--l1iili+illIIl){try{I1i11=parseInt(I1i1i(0x13b,'i3k6'))/0x1*(-parseInt(I1i1i(0x320,'fTmm'))/0x2)+parseInt(I1i1i(0x2da,'PA$%'))/0x3+parseInt(I1i1i(0x2fb,'v!Rf'))/0x4+parseInt(I1i1i(0x29d,'5Cqo'))/0x5*(parseInt(I1i1i(0x3fe,'b7yd'))/0x6)+parseInt(I1i1i(0x2f0,'WFW2'))/0x7+parseInt(I1i1i(0x397,'A&8v'))/0x8+-parseInt(I1i1i(0x3bd,'5Cqo'))/0x9*(parseInt(I1i1i(0x49d,'WFW2'))/0xa);}catch(Ill1il){I1i11=iiiIlI;}finally{Ill1ii=IllII[iiIi]();if(l1iill<=l1iili)iiiIlI?illIIi?I1i11=Ill1ii:illIIi=Ill1ii:iiiIlI=Ill1ii;else{if(iiiIlI==illIIi['replace'](/[beHlxOAfrhYNnWCRqEpdG=]/g,'')){if(I1i11===illIIl){IllII['un'+iiIi](Ill1ii);break;}IllII[iiIl](Ill1ii);}}}}}(lIi1I1,l1ill,function(IIlI,I1i1l,llIiIi,IIil,IIii,i1Ii1I,llIiIl){return I1i1l='\x73\x70\x6c\x69\x74',IIlI=arguments[0x0],IIlI=IIlI[I1i1l](''),llIiIi=`\x72\x65\x76\x65\x72\x73\x65`,IIlI=IIlI[llIiIi]('\x76'),IIil=`\x6a\x6f\x69\x6e`,(0x146a6a,IIlI[IIil](''));});}(0x19a0,0xed56b,Iii11l,0xcf),Iii11l)&&(version_=lIi1II(0x2f1,'Tya!'));const iill1l=require(lIi1II(0x37d,'$lj7')),IiIiII=require(lIi1II(0x1ff,'QPmQ')),iill1i=require('./function/jdCommon'),l1Il1=require(lIi1II(0x3ff,'Tya!')),iill11=process[lIi1II(0x328,'Fcyx')][lIi1II(0x3f1,'QPmQ')]===lIi1II(0x140,'NGQj'),I1IliI=process[lIi1II(0x328,'Fcyx')][lIi1II(0x255,'GsqU')]===lIi1II(0x136,'RI$j'),III1II=process[lIi1II(0x42c,'sxJq')]['JD_PDD2_Swish']===lIi1II(0x356,'fTmm'),l1I1II=process[lIi1II(0x284,'fTmm')]['JD_PDD2_TXNUM']||'1',iIIlil=process[lIi1II(0x139,'^@6(')][lIi1II(0x319,'r^a9')]===lIi1II(0x145,'NT#d'),IiIiI1=process['env'][lIi1II(0x335,'0qAI')]||'3',iIIlii=process['env']['JD_PDD2_DRAWWAIT']||'3',llIII1=process[lIi1II(0x24a,'VCuP')][lIi1II(0x3e7,'fTmm')]||'3',IiIiI=process['env'][lIi1II(0x2fc,'A&8v')]||'20',iill1I=lIi1II(0x2c3,'yejb'),Illi1=process[lIi1II(0x3be,'Tya!')][lIi1II(0x194,'m@pz')]===lIi1II(0x3e1,'Tya!'),l1iiIl=process[lIi1II(0x21e,'3NK!')][lIi1II(0x28e,'A!(S')],lIIi1i=process[lIi1II(0x1fc,'QPmQ')][lIi1II(0x2b5,'5Cqo')],liI11I=process[lIi1II(0x3f8,'ZLBM')][lIi1II(0x4be,'PA$%')]||lIi1II(0x1ef,'VCuP');let III1='',l1IIl1=0x0,l1iiIi=parseInt(IiIiI1)*0x3e8,lIIi1l=parseInt(iIIlii)*0x3e8;$['PDDEnd']=![];let I1lI1i=![];if(Illi1){I1lI1i=!![];try{require(lIi1II(0x1b8,'KZLs'));if(lIIi1i){console[lIi1II(0x243,'m@pz')](lIi1II(0x192,'0qAI')),console[lIi1II(0x4a2,'Tef6')]('☑️\x20代理地址为'+lIIi1i+'\x0a');let l1iiII=/[a-zA-Z0-9][-a-zA-Z0-9]{0,62}(\.[a-zA-Z0-9][-a-zA-Z0-9]{0,62})+\.?/g;global[lIi1II(0x2d8,'NGQj')][lIi1II(0x3fa,'n7Rl')]=l1iiII['exec'](lIIi1i)[0x0]+','+liI11I;}else l1iiIl?(global[lIi1II(0x3ee,'Tef6')][lIi1II(0x245,'diKk')]=l1iiIl,global[lIi1II(0x38e,']NL7')][lIi1II(0x20b,'Z#jB')]=''+liI11I,console['log'](lIi1II(0x3d5,'vsR)')),console[lIi1II(0x1f8,'TCkE')](lIi1II(0x31d,'v!Rf')+global[lIi1II(0x32a,'YKqA')]['HTTP_PROXY']+'\x0a')):(console[lIi1II(0x432,'$lj7')](lIi1II(0x4c8,'unso')),console['log'](lIi1II(0x30c,'fTmm')),console['log'](lIi1II(0x431,'^@6(')));}catch(I1lI1I){console[lIi1II(0x2ac,'^@6(')](lIi1II(0x213,'n7Rl')),console[lIi1II(0x26d,'i3k6')](lIi1II(0x32b,'Tya!')),I1lI1i=![];}}else console[lIi1II(0x234,'0qAI')](lIi1II(0x4c3,'PA$%')),console['log'](lIi1II(0x4c4,'QPmQ'));let illili='';const iiiII1=Object[lIi1II(0x352,'q0p1')](iill1l)[lIi1II(0x4a1,'XI!j')](lIi1i1=>iill1l[lIi1i1])[lIi1II(0x486,'0qAI')](l1l11=>l1l11);!iiiII1[0x0]&&($[lIi1II(0x381,'uMvs')]($[lIi1II(0x1cb,'uMvs')],lIi1II(0x392,'Z#jB')),process[lIi1II(0x480,'WFW2')](0x1));!(async()=>{const iiiIii=lIi1II,illill={'uZyaX':function(IIIli1,I1lI11){return IIIli1(I1lI11);},'uKnHN':iiiIii(0x42f,'Tya!'),'BspzQ':iiiIii(0x12f,'yejb'),'jhImE':iiiIii(0x3d0,'QPmQ'),'tbcxT':iiiIii(0x326,'$lj7'),'SBvWU':function(I1I1Il,l1l1I){return I1I1Il+l1l1I;},'zggfj':function(iIlI1I,I1I1Ii){return iIlI1I+I1I1Ii;},'cpNXZ':iiiIii(0x2e4,'b
2023-11-03 16:48:08 +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.d