KR/jd_pdd_draw.js

41 lines
80 KiB
JavaScript
Raw Normal View History

2023-11-01 21:14:01 +08:00
/*
PDD特价转盘抽奖提现
入口特价版APP幸运抽奖
链接https://pro.m.jd.com/jdlite/active/23CeE8ZXA4uFS9M9mTjtta9T4S5x/index.html
轮询提现变量JD_PDD_TXNUM //轮询提现页数
提现间隔时间JD_PDD_TXWAIT //提现兑换间隔,默认 3 秒
2023-11-09 10:15:49 +08:00
抽奖间隔时间JD_PDD_DRAWWAIT //提现兑换间隔,默认 3 秒
2023-11-01 21:14:01 +08:00
2023-11-03 02:10:59 +08:00
提现变量JD_PDD_TXCASH //是否提现默认不提现true/false
2023-11-09 10:15:49 +08:00
提现上限刷新时长变量JD_PDD_Swish //是否延长提现时间默认不延长true/false 配合提现页码,上限后延长,可以延迟到期时间,最终效果可以推迟到下个月直接提现。
2023-11-03 02:10:59 +08:00
重试变量
2023-11-09 10:15:49 +08:00
JD_PDD_TXMAX_RETRY // 已存在状态/待发放,提现中,等最大重试次数 默认 3 次
2023-11-03 02:10:59 +08:00
JD_PDD_DRAW_RETRY // 抽奖 提示未中奖等最大重试次数 默认 20 次
2023-11-01 21:14:01 +08:00
兑换红包变量
export JD_PDD_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_pdd_draw.js, tag=PDD特价转盘抽奖提现, enabled=true
*/
2023-11-03 02:10:59 +08:00
const $ = new Env('PDD特价转盘抽奖提现');
2023-12-26 03:15:42 +08:00
var il='jsjiami.com.v7';const i1IiIl=iii1II;if(function(i1IiI1,l1lIII,iII11i,l1iI1i,lIlllI,III1lI,I11i){return i1IiI1=i1IiI1>>0x1,III1lI='hs',I11i='hs',function(ll1IlI,I11l,Ili1l1,iilIil,illI1i){const ll1Ili=iii1II;iilIil='tfi',III1lI=iilIil+III1lI,illI1i='up',I11i+=illI1i,III1lI=Ili1l1(III1lI),I11i=Ili1l1(I11i),Ili1l1=0x0;const i1IiII=ll1IlI();while(!![]&&--l1iI1i+I11l){try{iilIil=-parseInt(ll1Ili(0x22b,'hvo^'))/0x1*(parseInt(ll1Ili(0x507,'$C(H'))/0x2)+-parseInt(ll1Ili(0x1ed,'GbUZ'))/0x3+-parseInt(ll1Ili(0x37a,'USuI'))/0x4+parseInt(ll1Ili(0x43e,'bX*!'))/0x5*(parseInt(ll1Ili(0x356,'Bts%'))/0x6)+parseInt(ll1Ili(0x450,'*SP7'))/0x7+-parseInt(ll1Ili(0x379,'Pe#i'))/0x8+parseInt(ll1Ili(0x3de,'LfaI'))/0x9*(parseInt(ll1Ili(0x29c,'!rS('))/0xa);}catch(illI1l){iilIil=Ili1l1;}finally{illI1i=i1IiII[III1lI]();if(i1IiI1<=l1iI1i)Ili1l1?lIlllI?iilIil=illI1i:lIlllI=illI1i:Ili1l1=illI1i;else{if(Ili1l1==lIlllI['replace'](/[WwPTlChkAXuBbYRHn=]/g,'')){if(iilIil===I11l){i1IiII['un'+III1lI](illI1i);break;}i1IiII[I11i](illI1i);}}}}}(iII11i,l1lIII,function(l1ll1I,i1lI1,l1ll11,I1I111,lIllli,lIllll,I11I){return i1lI1='\x73\x70\x6c\x69\x74',l1ll1I=arguments[0x0],l1ll1I=l1ll1I[i1lI1](''),l1ll11=`\x72\x65\x76\x65\x72\x73\x65`,l1ll1I=l1ll1I[l1ll11]('\x76'),I1I111=`\x6a\x6f\x69\x6e`,(0x14d563,l1ll1I[I1I111](''));});}(0x194,0xabe0e,Iii11l,0xcc),Iii11l){}const iIIli1=require(i1IiIl(0x255,'bX*!')),Ii1l1i=require('./function/sendJDNotify'),l1lIl=require(i1IiIl(0x49a,'imzl')),Ii1l1l=require('./function/krgetH5st'),i1Iiil=process[i1IiIl(0x270,'GbUZ')]['JD_PDD_Notify']===i1IiIl(0x2da,'&oj#'),i1Iiii=process[i1IiIl(0x418,'Pe#i')][i1IiIl(0x27a,'P%d&')]===i1IiIl(0x457,'9OFb'),l1lIi=process['env']['JD_PDD_Swish']==='true',l1lili=process['env'][i1IiIl(0x316,'imzl')]||'1',IIlI1l=process[i1IiIl(0x51d,'RcBE')][i1IiIl(0x1f5,'LfaI')]===i1IiIl(0x335,'5HJ%'),lI1I11=process[i1IiIl(0x327,'H!lv')][i1IiIl(0x31d,'!rS(')]||'3',IilIl=process[i1IiIl(0x296,'f8wd')][i1IiIl(0x42a,'0E1(')]||'3',IilIi=process['env'][i1IiIl(0x3ad,'CKS*')]||'3',Ili1Il=process['env'][i1IiIl(0x4ba,'&oj#')]||'20',i1liI=i1IiIl(0x307,'7E!5'),iilIIi=process[i1IiIl(0x211,'qd(L')][i1IiIl(0x286,'G(6G')]===i1IiIl(0x461,'IX$P'),I1iII=process[i1IiIl(0x41a,'CKS*')][i1IiIl(0x47c,'*SP7')],IIlI1i=process['env'][i1IiIl(0x3c3,'FTxq')],iiiI1i=process[i1IiIl(0x41a,'CKS*')][i1IiIl(0x3cf,'$A8J')]||i1IiIl(0x3a8,'EUj%');let iiiI1l='',Ili1Ii=0x0,Ii1l1I=parseInt(lI1I11)*0x3e8,iilII1=parseInt(IilIl)*0x3e8;$['PDDEnd']=![];let iiiI11=![];if(iilIIi){iiiI11=!![];try{require(i1IiIl(0x4ce,'Bts%'));if(IIlI1i){console[i1IiIl(0x3d9,'Pe#i')](i1IiIl(0x469,'J4@j')),console[i1IiIl(0x42b,'g1Nh')](i1IiIl(0x213,'d0sC')+IIlI1i+'\x0a');let iiiI1I=/[a-zA-Z0-9][-a-zA-Z0-9]{0,62}(\.[a-zA-Z0-9][-a-zA-Z0-9]{0,62})+\.?/g;global['GLOBAL_AGENT']['NO_PROXY']=iiiI1I[i1IiIl(0x3a6,'YE[)')](IIlI1i)[0x0]+','+iiiI1i;}else I1iII?(global[i1IiIl(0x218,'qd(L')][i1IiIl(0x525,'fHf)')]=I1iII,global[i1IiIl(0x30b,'(&V0')][i1IiIl(0x1f2,'4[$g')]=''+iiiI1i,console[i1IiIl(0x4f1,'P%d&')](i1IiIl(0x48a,'Pe#i')),console['log'](i1IiIl(0x3f6,'&oj#')+global[i1IiIl(0x38f,'LfaI')][i1IiIl(0x289,'f8wd')]+'\x0a')):(console['log'](i1IiIl(0x23c,'g1Nh')),console[i1IiIl(0x487,'!rS(')](i1IiIl(0x2b3,'g1Nh')),console[i1IiIl(0x256,'WfPj')](i1IiIl(0x4da,'bX*!')));}catch(lilI11){console[i1IiIl(0x3d5,'$C(H')](i1IiIl(0x2b4,'P%d&')),console['log'](i1IiIl(0x242,'pQ7M')),iiiI11=![];}}else console[i1IiIl(0x256,'WfPj')](i1IiIl(0x4ff,'Wwz@')),console['log']('⚠\x20开启代理变量export\x20JD_PDD_PROXY_OPEN=\x27true\x27\x20\x0a');let l1lilI='';const i1Iil1=Object['keys'](iIIli1)['map'](Ili1II=>iIIli1[Ili1II])['filter'](ili1i=>ili1i);!i1Iil1[0x0]&&($[i1IiIl(0x4a2,'7E!5')]($[i1IiIl(0x46f,'G(6G')],'【提示】请先获取Cookie'),process[i1IiIl(0x438,'9OFb')](0x1));!(async()=>{const i1IiIi=i1IiIl,IiIi1={'ZvKTS':i1IiIi(0x37e,'7E!5'),'beDzz':function(l1Ii1,i1IilI){return l1Ii1==i1IilI;},'nbIRP':'不提现','ndrGE':function(III1I1,ilI111){return III1I1==ilI111;},'iKUZd':i1IiIi(0x3b3,'^EG$'),'bfLHJ':function(I1IllI,IIlI11){return I1IllI==IIlI11;},'xtQMs':'不延长','nKDtf':'KuZIO','tdTWH':function(iI
2023-11-01 21:14:01 +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