KR/jd_pdd1_draw.js

42 lines
83 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-12-26 03:15:42 +08:00
var il='jsjiami.com.v7';const i1lII=iii1II;(function(lIlllI,III1lI,I11i,ll1IlI,I11l,Ili1l1,iilIil){return lIlllI=lIlllI>>0x2,Ili1l1='hs',iilIil='hs',function(illI1i,i1IiII,illI1l,l1ll1I,i1lI1){const Ili1il=iii1II;l1ll1I='tfi',Ili1l1=l1ll1I+Ili1l1,i1lI1='up',iilIil+=i1lI1,Ili1l1=illI1l(Ili1l1),iilIil=illI1l(iilIil),illI1l=0x0;const l1ll11=illI1i();while(!![]&&--ll1IlI+i1IiII){try{l1ll1I=-parseInt(Ili1il(0x22f,'^o&i'))/0x1+parseInt(Ili1il(0x123,'VN$V'))/0x2*(-parseInt(Ili1il(0x398,'#flU'))/0x3)+-parseInt(Ili1il(0x33f,'&uHj'))/0x4+parseInt(Ili1il(0x185,'xEIs'))/0x5*(-parseInt(Ili1il(0x20e,'mDhq'))/0x6)+-parseInt(Ili1il(0x367,'[8bq'))/0x7*(parseInt(Ili1il(0x235,'zW#t'))/0x8)+-parseInt(Ili1il(0x16f,'@G2C'))/0x9*(-parseInt(Ili1il(0x175,'wk*Y'))/0xa)+-parseInt(Ili1il(0x316,'O[Op'))/0xb*(-parseInt(Ili1il(0x18e,'w#)B'))/0xc);}catch(I1I111){l1ll1I=illI1l;}finally{i1lI1=l1ll11[Ili1l1]();if(lIlllI<=ll1IlI)illI1l?I11l?l1ll1I=i1lI1:I11l=i1lI1:illI1l=i1lI1;else{if(illI1l==I11l['replace'](/[bkFERMnPYuALOIGpl=]/g,'')){if(l1ll1I===i1IiII){l1ll11['un'+Ili1l1](i1lI1);break;}l1ll11[iilIil](i1lI1);}}}}}(I11i,III1lI,function(lIllli,lIllll,I11I,ll1Ili,i1IiIl,i1IiIi,ll1Ill){return lIllll='\x73\x70\x6c\x69\x74',lIllli=arguments[0x0],lIllli=lIllli[lIllll](''),I11I=`\x72\x65\x76\x65\x72\x73\x65`,lIllli=lIllli[I11I]('\x76'),ll1Ili=`\x6a\x6f\x69\x6e`,(0x14d565,lIllli[ll1Ili](''));});}(0x2f4,0xc4f7c,Iii11l,0xbf),Iii11l)&&(il=0x31ac);const i1liI=require(i1lII(0x32f,'M)%z')),iilIIi=require(i1lII(0x305,'&uHj')),I1iII=require(i1lII(0x2fd,'tdSP')),IIlI1i=require(i1lII(0x1ac,'Etkh')),iiiI1i=process[i1lII(0x3fa,'FQ3K')][i1lII(0x19a,'mDhq')]===i1lII(0x29b,'#flU'),iiiI1l=process[i1lII(0xf5,'cTPY')][i1lII(0x3ec,'&uHj')]===i1lII(0x19f,'Gtin'),Ili1Ii=process['env']['JD_PDD1_Swish']==='true',Ii1l1I=process[i1lII(0x341,'w*aP')][i1lII(0x387,'yHAa')]||'1',iilII1=process[i1lII(0x1cf,'zW#t')][i1lII(0x1d2,'[8bq')]==='true',iiiI11=process[i1lII(0x38d,'*sZf')][i1lII(0x422,'yF0#')]||'3',l1lilI=process['env'][i1lII(0x1a9,'H8B5')]||'3',i1Iil1=process[i1lII(0x394,'eaEv')][i1lII(0x315,'s@&D')]||'3',liI1Ii=process[i1lII(0x166,'@^Ra')]['JD_PDD1_DRAW_RETRY']||'20',l1lil1=i1lII(0x272,'yHAa'),i1lil=process[i1lII(0xf5,'cTPY')][i1lII(0x3d9,'kwy5')]===i1lII(0xb9,'NHp%'),I1iIl=process[i1lII(0x2b3,'w6AG')]['JD_PDD_PROXY_TUNNRL'],IilII=process[i1lII(0x204,'tcXu')]['JD_PDD_PROXY_URL'],ili1l=process[i1lII(0x26c,'wRC5')][i1lII(0xd5,'@G2C')]||'*.kingran.cf,127.0.0.1,*.baidu.com';let i1lii='',iilIII=0x0,liI1Il=parseInt(iiiI11)*0x3e8,I1iIi=parseInt(l1lilI)*0x3e8;$[i1lII(0x285,'Gtin')]=![];let iiiI1I=![];if(i1lil){iiiI1I=!![];try{require('global-agent/bootstrap');if(IilII){console[i1lII(0x163,'wk*Y')]('\x0a☑\x20API地址代理已开启'),console[i1lII(0x23e,'^o&i')]('☑️\x20代理地址为'+IilII+'\x0a');let ilI11I=/[a-zA-Z0-9][-a-zA-Z0-9]{0,62}(\.[a-zA-Z0-9][-a-zA-Z0-9]{0,62})+\.?/g;global['GLOBAL_AGENT'][i1lII(0xaf,'3d!N')]=ilI11I['exec'](IilII)[0x0]+','+ili1l;}else I1iIl?(global[i1lII(0x14a,'FQ3K')][i1lII(0x16d,'O[Op')]=I1iIl,global['GLOBAL_AGENT'][i1lII(0x1f7,'oc0H')]=''+ili1l,console['log'](i1lII(0x3cf,'NyHV')),console['log']('☑️\x20代理地址为'+global[i1lII(0x397,'#flU')]['HTTP_PROXY']+'\x0a')):(console[i1lII(0x108,'NyHV')]('\x0a⚠\x20当前检测到已开启代理但未填写代理地址变量'),console[i1lII(0x295,'yHAa')](i1lII(0xa7,'@^Ra')),console[i1lII(0x39b,'zW#t')](i1lII(0x101,'xEIs')));}catch(ili1I){console[i1lII(0x171,'mDhq')](i1lII(0x279,'*sZf')),console[i1lII(0x172,'tdSP')](i1lII(0x18f,'qrW9')),iiiI1I=![];}}else console[i1lII(0x2e7,'N[aO')](i1lII(0x346,'Gtin')),console[i1lII(0x28c,'kwy5')](i1lII(0x432,'^o&i'));let lilI11='';const Ili1II=Object['keys'](i1liI)['map'](iilIIl=>i1liI[iilIIl])[i1lII(0x320,'XR$6')](i1Iili=>i1Iili);!Ili1II[0x0]&&($[i1lII(0xdf,'UOB]')]($[i1lII(0x2be,'M)%z')],i1lII(0x146,'UOB]')),process['exit'](0x1));!(async()=>{const iilIii=i1lII,i1Iill={'VTpkR':iilIii(0x168,'eaEv'),'pxAFJ':iilIii(0x2a8,'eW9V'),'SDgOc':function(l1IiI,l1lill){return l1IiI<l1lill;},'pTvdd':function(i1li1,iIIllI){return i1li1+iIIllI;},'XqjGX':iilIii
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