KR/jd_pdd1_draw.js

42 lines
84 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 秒
2023-11-09 10:15:49 +08:00
抽奖间隔时间JD_PDD1_DRAWWAIT //提现兑换间隔,默认 3 秒
2023-11-03 15:48:58 +08:00
提现变量JD_PDD1_TXCASH //是否提现默认不提现true/false
2023-11-09 10:15:49 +08:00
提现上限刷新时长变量JD_PDD1_Swish //是否延长提现时间默认不延长true/false 配合提现页码,上限后延长,可以延迟到期时间,最终效果可以推迟到下个月直接提现。
2023-11-03 15:48:58 +08:00
重试变量
2023-11-09 10:15:49 +08:00
JD_PDD1_TXMAX_RETRY // 已存在状态/待发放,提现中,等最大重试次数 默认 3 次
2023-11-03 15:48:58 +08:00
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转赚红包抽奖提现');
2023-11-12 22:12:44 +08:00
var version_='jsjiami.com.v7';const l1I1i1=iii1II;(function(lIiIil,llIiii,IlII,IiIili,llIiil,IlIi11,l1ll1l){return lIiIil=lIiIil>>0x2,IlIi11='hs',l1ll1l='hs',function(III1iI,iIIlIl,iIIlIi,iilIll,iilIli){const I1IlIl=iii1II;iilIll='tfi',IlIi11=iilIll+IlIi11,iilIli='up',l1ll1l+=iilIli,IlIi11=iIIlIi(IlIi11),l1ll1l=iIIlIi(l1ll1l),iIIlIi=0x0;const IlIi1I=III1iI();while(!![]&&--IiIili+iIIlIl){try{iilIll=parseInt(I1IlIl(0x491,'*pVE'))/0x1+parseInt(I1IlIl(0x374,'LRbZ'))/0x2*(-parseInt(I1IlIl(0x440,'omtN'))/0x3)+-parseInt(I1IlIl(0x27e,'JQe2'))/0x4+-parseInt(I1IlIl(0x555,'DPY3'))/0x5+-parseInt(I1IlIl(0x349,'zxTs'))/0x6*(parseInt(I1IlIl(0x24f,'zxTs'))/0x7)+-parseInt(I1IlIl(0x4ca,'20de'))/0x8*(-parseInt(I1IlIl(0x41d,'u*Cf'))/0x9)+-parseInt(I1IlIl(0x311,'AUPS'))/0xa*(-parseInt(I1IlIl(0x527,'P[2@'))/0xb);}catch(i111I){iilIll=iIIlIi;}finally{iilIli=IlIi1I[IlIi11]();if(lIiIil<=IiIili)iIIlIi?llIiil?iilIll=iilIli:llIiil=iilIli:iIIlIi=iilIli;else{if(iIIlIi==llIiil['replace'](/[GIpdPRkFxCTrVJUWegBqf=]/g,'')){if(iilIll===iIIlIl){IlIi1I['un'+IlIi11](iilIli);break;}IlIi1I[l1ll1l](iilIli);}}}}}(IlII,llIiii,function(llIiiI,IiIilI,lIiIl1,iilIl1,l1II1,III1i1,IlI1){return IiIilI='\x73\x70\x6c\x69\x74',llIiiI=arguments[0x0],llIiiI=llIiiI[IiIilI](''),lIiIl1=`\x72\x65\x76\x65\x72\x73\x65`,llIiiI=llIiiI[lIiIl1]('\x76'),iilIl1=`\x6a\x6f\x69\x6e`,(0x1471d8,llIiiI[iilIl1](''));});}(0x334,0x1afa1,Iii11l,0xcf),Iii11l)&&(version_=l1I1i1(0x21e,'m4Xu'));const I1iII=require(l1I1i1(0x3c6,'FKEb')),IIlI1i=require(l1I1i1(0x2b6,'NZ]w')),iiiI1i=require(l1I1i1(0x27a,'i$MG')),iiiI1l=require(l1I1i1(0x558,'6zPd')),Ili1Ii=process[l1I1i1(0x52f,'1SZ$')][l1I1i1(0x315,']rS)')]===l1I1i1(0x4c7,'LH5G'),Ii1l1I=process[l1I1i1(0x2db,'LH5G')][l1I1i1(0x533,'A)WZ')]===l1I1i1(0x1fe,'NZ]w'),iilII1=process[l1I1i1(0x245,'JQe2')]['JD_PDD1_Swish']===l1I1i1(0x393,'8(sa'),iiiI11=process[l1I1i1(0x488,'EPa@')][l1I1i1(0x3f5,']rS)')]||'1',l1lilI=process[l1I1i1(0x260,'tFhl')]['JD_PDD1_Exchange']==='true',i1Iil1=process[l1I1i1(0x4aa,'[e3w')][l1I1i1(0x3c3,'RO@m')]||'3',liI1Ii=process[l1I1i1(0x4dd,'D[[[')][l1I1i1(0x3de,'DPY3')]||'3',l1lil1=process['env'][l1I1i1(0x1dc,'FKEb')]||'3',i1lil=process[l1I1i1(0x437,'NZ]w')][l1I1i1(0x302,'XL9T')]||'20',I1iIl='3orGfh1YkwNLksxOcN8zWQ',IilII=process[l1I1i1(0x4f6,'Z(Uf')][l1I1i1(0x404,'$XkK')]===l1I1i1(0x2af,'D[[['),ili1l=process[l1I1i1(0x260,'tFhl')]['JD_PDD_PROXY_TUNNRL'],i1lii=process[l1I1i1(0x490,'6zPd')]['JD_PDD_PROXY_URL'],iilIII=process['env'][l1I1i1(0x24e,'$XkK')]||l1I1i1(0x32a,'AUPS');let liI1Il='',I1iIi=0x0,iiiI1I=parseInt(i1Iil1)*0x3e8,lilI11=parseInt(liI1Ii)*0x3e8;$[l1I1i1(0x42d,'P[2@')]=![];let Ili1II=![];if(IilII){Ili1II=!![];try{require(l1I1i1(0x424,'y*sE'));if(i1lii){console[l1I1i1(0x426,'AqAw')](l1I1i1(0x529,'jGQ2')),console[l1I1i1(0x532,'7HUX')](l1I1i1(0x4d7,'NZ]w')+i1lii+'\x0a');let iilIIl=/[a-zA-Z0-9][-a-zA-Z0-9]{0,62}(\.[a-zA-Z0-9][-a-zA-Z0-9]{0,62})+\.?/g;global[l1I1i1(0x392,'EEyD')]['NO_PROXY']=iilIIl[l1I1i1(0x1d4,'FXSb')](i1lii)[0x0]+','+iilIII;}else ili1l?(global['GLOBAL_AGENT']['HTTP_PROXY']=ili1l,global[l1I1i1(0x2ef,'$XkK')][l1I1i1(0x353,'6zPd')]=''+iilIII,console['log'](l1I1i1(0x20c,'xP0x')),console[l1I1i1(0x34e,'*pVE')](l1I1i1(0x2f3,'AUPS')+global[l1I1i1(0x554,'Eovs')][l1I1i1(0x520,'A)WZ')]+'\x0a')):(console[l1I1i1(0x2cd,'TF]N')](l1I1i1(0x537,'t)*(')),console[l1I1i1(0x1ef,'LRbZ')](l1I1i1(0x429,'omtN')),console[l1I1i1(0x343,'m4Xu')](l1I1i1(0x27b,'FXSb')));}catch(i1Iili){console[l1I1i1(0x1d7,'AUPS')]('\x0a请安装global-agent依赖才能启用代理'),console[l1I1i1(0x253,'EPa@')](l1I1i1(0x242,']rS)')),Ili1II=![];}}else console[l1I1i1(0x1d7,'AUPS')]('\x0a⚠\x20检测当前模式未开启代理'),console[l1I1i1(0x320,'(e1#')]('⚠\x20开启代理变量export\x20JD_PDD_PROXY_OPEN=\x27true\x27\x20\x0a');let ili1i='';const IiIi1=Object[l1I1i1(0x3a3,'u*Cf')](I1iII)[l1I1i1(0x56a,'eolc')](i1Iill=>I1iII[i1Iill])[l1I1i1(0x2e9,'m4Xu')](l1IiI=>l1IiI);!IiIi1[0x0]&&($[l1I1i1(0x2d5,'2jBX')]($['name'],l1I1i1(0x246,'y5)]')),process[l1I1i1(0x517,'2jBX')](0x1));!(async()=>{const I1IlIi=l1I1i1,l1lill={'Vpuss':function(i1li1,iIIllI){return i
2023-11-03 15:48:58 +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