KR/jd_pdd_draw.js

39 lines
78 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-03 02:10:59 +08:00
提现变量JD_PDD_TXCASH //是否提现默认不提现true/false
重试变量
JD_PDD_TXMAX_RETRY // 已存在状态/待发放,提现中,等最大重试次数 默认 5 次
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-11-03 15:48:58 +08:00
var version_='jsjiami.com.v7';const Ii1Iil=iii1II;(function(iliiii,IIlIIi,iliiil,li11ll,i1Il1,li1l1,IIiI1l){return iliiii=iliiii>>0x7,li1l1='hs',IIiI1l='hs',function(IIiI1i,ilIllI,I1IIli,Il1I1i,lIilI1){const Ii1Iii=iii1II;Il1I1i='tfi',li1l1=Il1I1i+li1l1,lIilI1='up',IIiI1l+=lIilI1,li1l1=I1IIli(li1l1),IIiI1l=I1IIli(IIiI1l),I1IIli=0x0;const Il1I1l=IIiI1i();while(!![]&&--li11ll+ilIllI){try{Il1I1i=-parseInt(Ii1Iii(0x266,'ZS5T'))/0x1+-parseInt(Ii1Iii(0x32e,'@!3f'))/0x2*(-parseInt(Ii1Iii(0x384,'t*Pd'))/0x3)+parseInt(Ii1Iii(0x2dd,'XTQ('))/0x4+parseInt(Ii1Iii(0x3ca,'pv6V'))/0x5+-parseInt(Ii1Iii(0x23e,'^gww'))/0x6*(parseInt(Ii1Iii(0x412,'@c7f'))/0x7)+parseInt(Ii1Iii(0x1fc,'5e$J'))/0x8*(-parseInt(Ii1Iii(0x375,'6Yap'))/0x9)+parseInt(Ii1Iii(0x208,'Zy(i'))/0xa;}catch(Ii1Il1){Il1I1i=I1IIli;}finally{lIilI1=Il1I1l[li1l1]();if(iliiii<=li11ll)I1IIli?i1Il1?Il1I1i=lIilI1:i1Il1=lIilI1:I1IIli=lIilI1;else{if(I1IIli==i1Il1['replace'](/[UrVPkldRYbXMShCGDen=]/g,'')){if(Il1I1i===ilIllI){Il1I1l['un'+li1l1](lIilI1);break;}Il1I1l[IIiI1l](lIilI1);}}}}}(iliiil,IIlIIi,function(iIIIli,I1IIll,i1Ii1,lIilII,ilIlli,I1IIlI,ilIlll){return I1IIll='\x73\x70\x6c\x69\x74',iIIIli=arguments[0x0],iIIIli=iIIIli[I1IIll](''),i1Ii1=`\x72\x65\x76\x65\x72\x73\x65`,iIIIli=iIIIli[i1Ii1]('\x76'),lIilII=`\x6a\x6f\x69\x6e`,(0x145e1c,iIIIli[lIilII](''));});}(0x6680,0x60931,Iii11l,0xcf),Iii11l)&&(version_=Ii1Iil(0x2cf,'ZS5T'));const I1Ili1=require(Ii1Iil(0x36b,'aF)b')),l1liil=require(Ii1Iil(0x145,'#*bP')),i1ll1=require(Ii1Iil(0x254,'pBz^')),lilI1I=require('./function/krgetH5st'),lI1I1l=process[Ii1Iil(0x191,'5NEt')][Ii1Iil(0x45e,'6Yap')]==='true',Il1Il=process['env'][Ii1Iil(0x3e6,'aF)b')]===Ii1Iil(0x1c4,'@c7f'),i1IiiI=process[Ii1Iil(0x19c,'pv6V')][Ii1Iil(0x382,'OEwN')]||'1',lI1I1I=process[Ii1Iil(0x135,'VvMj')][Ii1Iil(0x1aa,'pBz^')]===Ii1Iil(0x36f,')QXC'),l1lII=process[Ii1Iil(0x27c,'IFHJ')][Ii1Iil(0x37e,'6Yap')]||'3',lilI1l=process[Ii1Iil(0x398,'dhlG')][Ii1Iil(0x3db,']Ra$')]||'5',l1liiI=process[Ii1Iil(0x17a,'KSaO')]['JD_PDD_DRAW_RETRY']||'20',I1iI1='Wvzc_VpNTlSkiQdHT8r7QA',lilI1i=process[Ii1Iil(0x2e3,'t*Pd')][Ii1Iil(0x36e,'wt#1')]===Ii1Iil(0x15f,'^gww'),Il1Ii=process[Ii1Iil(0x202,'Zy(i')][Ii1Iil(0x38b,'S)#T')],Ii11l=process['env']['JD_PDD_PROXY_URL'],liI1I1=process['env'][Ii1Iil(0x2d5,'zHhj')]||Ii1Iil(0x2ac,'JvN!');let Ii11i='',i1llI=0x0,iIIli1=parseInt(l1lII)*0x3e8;$['PDDEnd']=![];function iii1II(_0x2a42d2,_0x4fbe4e){const _0x17cee7=Iii11l();return iii1II=function(_0x2ea899,_0x5822c0){_0x2ea899=_0x2ea899-0x132;let _0x2f6ce3=_0x17cee7[_0x2ea899];if(iii1II['YLXfza']===undefined){var _0x44f7c2=function(_0x47d239){const _0x580f37='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x4e918e='',_0x4405da='';for(let _0x568bce=0x0,_0x1e1df1,_0x5e3fde,_0x5e843f=0x0;_0x5e3fde=_0x47d239['charAt'](_0x5e843f++);~_0x5e3fde&&(_0x1e1df1=_0x568bce%0x4?_0x1e1df1*0x40+_0x5e3fde:_0x5e3fde,_0x568bce++%0x4)?_0x4e918e+=String['fromCharCode'](0xff&_0x1e1df1>>(-0x2*_0x568bce&0x6)):0x0){_0x5e3fde=_0x580f37['indexOf'](_0x5e3fde);}for(let _0x578864=0x0,_0x56c325=_0x4e918e['length'];_0x578864<_0x56c325;_0x578864++){_0x4405da+='%'+('00'+_0x4e918e['charCodeAt'](_0x578864)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x4405da);};const _0xaceb84=function(_0x2228b5,_0x4f60c7){let _0x1d93ce=[],_0x4931de=0x0,_0x989ca9,_0x12849f='';_0x2228b5=_0x44f7c2(_0x2228b5);let _0x5d6ff2;for(_0x5d6ff2=0x0;_0x5d6ff2<0x100;_0x5d6ff2++){_0x1d93ce[_0x5d6ff2]=_0x5d6ff2;}for(_0x5d6ff2=0x0;_0x5d6ff2<0x100;_0x5d6ff2++){_0x4931de=(_0x4931de+_0x1d93ce[_0x5d6ff2]+_0x4f60c7['charCodeAt'](_0x5d6ff2%_0x4f60c7['length']))%0x100,_0x989ca9=_0x1d93ce[_0x5d6ff2],_0x1d93ce[_0x5d6ff2]=_0x1d93ce[_0x4931de],_0x1d93ce[_0x4931de]=_0x989ca9;}_0x5d6ff2=0x0,_0x4931de=0x0;for(let _0x463f7f=0x0;_0x463f7f<_0x2228b5['length'];_0x463f7f++){_0x5d6ff2=(_0x5d6ff2+0x1)%0x100,_0x4931de=(_0x4931de+_0x1d93ce[_0x5d6ff2])%0x100,_0x989ca9=_0x1d93ce[_0x5d6ff2],_0x1d93ce[_0x5d6ff2]=_0x1d93ce[_0x4931de],_0x1d93ce[_0x4931de]=_0x989ca9,_0x12849f+=String['fromCharCode'](_0x2228b5['charCodeAt'](_0x463f7f)^_0x1d93ce[(_0x1d93ce[_0x5d6ff2]+_0x
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