KR/jd_pdd_draw.js

41 lines
81 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-11-12 22:16:28 +08:00
var version_='jsjiami.com.v7';const I11I=iii1II;(function(I1I11I,iII11l,i1IiI1,l1lIII,iII11i,l1iI1i,lIlllI){return I1I11I=I1I11I>>0x8,l1iI1i='hs',lIlllI='hs',function(III1lI,I11i,ll1IlI,I11l,Ili1l1){const lIllll=iii1II;I11l='tfi',l1iI1i=I11l+l1iI1i,Ili1l1='up',lIlllI+=Ili1l1,l1iI1i=ll1IlI(l1iI1i),lIlllI=ll1IlI(lIlllI),ll1IlI=0x0;const iilIil=III1lI();while(!![]&&--l1lIII+I11i){try{I11l=-parseInt(lIllll(0x26b,'Qm]8'))/0x1*(parseInt(lIllll(0x3ca,'A]@t'))/0x2)+-parseInt(lIllll(0x3ec,'9mK2'))/0x3*(-parseInt(lIllll(0x465,'[I[N'))/0x4)+parseInt(lIllll(0x43f,'IXIw'))/0x5+parseInt(lIllll(0x379,'Qkq1'))/0x6+parseInt(lIllll(0x2e9,'e9hA'))/0x7*(-parseInt(lIllll(0x35c,'eTQp'))/0x8)+-parseInt(lIllll(0x516,'Y0%h'))/0x9*(-parseInt(lIllll(0x45e,'j!X('))/0xa)+parseInt(lIllll(0x323,'j^BL'))/0xb*(-parseInt(lIllll(0x4a0,'LI8I'))/0xc);}catch(illI1i){I11l=ll1IlI;}finally{Ili1l1=iilIil[l1iI1i]();if(I1I11I<=l1lIII)ll1IlI?iII11i?I11l=Ili1l1:iII11i=Ili1l1:ll1IlI=Ili1l1;else{if(ll1IlI==iII11i['replace'](/[DHMQElfTROFgxkUrKBI=]/g,'')){if(I11l===I11i){iilIil['un'+l1iI1i](Ili1l1);break;}iilIil[lIlllI](Ili1l1);}}}}}(i1IiI1,iII11l,function(i1IiII,illI1l,l1ll1I,i1lI1,l1ll11,I1I111,lIllli){return illI1l='\x73\x70\x6c\x69\x74',i1IiII=arguments[0x0],i1IiII=i1IiII[illI1l](''),l1ll1I=`\x72\x65\x76\x65\x72\x73\x65`,i1IiII=i1IiII[l1ll1I]('\x76'),i1lI1=`\x6a\x6f\x69\x6e`,(0x1471d9,i1IiII[i1lI1](''));});}(0xca00,0xc899b,Iii11l,0xcc),Iii11l)&&(version_=I11I(0x28e,'Y0%h'));const l1lIi=require(I11I(0x1f8,'b63W')),l1lili=require(I11I(0x430,'R8qo')),IIlI1l=require(I11I(0x352,'j!X(')),lI1I11=require(I11I(0x2f6,'zY))')),IilIl=process[I11I(0x3d3,'oig)')][I11I(0x3f6,'B#3M')]===I11I(0x293,'Qm]8'),IilIi=process[I11I(0x24d,'IeEQ')]['JD_PDD_TXCASH']===I11I(0x534,'j^BL'),Ili1Il=process['env'][I11I(0x290,'j!X(')]===I11I(0x534,'j^BL'),i1liI=process['env']['JD_PDD_TXNUM']||'1',iilIIi=process[I11I(0x322,'zyCF')]['JD_PDD_Exchange']===I11I(0x263,'*6EG'),I1iII=process['env'][I11I(0x264,'j!X(')]||'3',IIlI1i=process[I11I(0x28a,'tD%1')][I11I(0x34c,'w(4g')]||'3',iiiI1i=process[I11I(0x372,'zY))')][I11I(0x4a4,'K7zT')]||'3',iiiI1l=process['env'][I11I(0x246,'ZsrC')]||'20',Ili1Ii=I11I(0x4af,'eTQp'),Ii1l1I=process[I11I(0x1ec,'rF83')][I11I(0x42c,'rJ(y')]===I11I(0x4d5,'4@dn'),iilII1=process[I11I(0x3df,'Jv2K')][I11I(0x415,'IgQ7')],iiiI11=process[I11I(0x37a,'rJ(y')][I11I(0x4d1,'F8Re')],l1lilI=process['env'][I11I(0x455,'K7zT')]||I11I(0x33e,'B#3M');let i1Iil1='',liI1Ii=0x0,l1lil1=parseInt(I1iII)*0x3e8,i1lil=parseInt(IIlI1i)*0x3e8;$['PDDEnd']=![];let I1iIl=![];function Iii11l(){const III1l1=(function(){return[...[version_,'rUxjlfEsTOkjigFamRiD.HMFcBoBm.QvHM7IxkQK==','W5WDWRCyWQG','WOaBFa8L','5OMi5lUO5OkL5zAn5AwT56Ap5yYXDCke8jAxN++6VW','W5v7WQVcP8oL','WOxdUmotW4e1mSkBW5q','WP3dPrqarKhcTCkl','bx8liIeOWPZdGWhdRmk6','W6PLW7ldKfK','ddmGW5Xa','hEkAIo+4PbBcSZhdKowCS+wEK+s5Q+ErUow3K+w+JEwrVo+9La','f8kJWPS2vW','WPZcJanHeG','WOiAWPW','tNDCqCopWOa1W6VcS8oOW7pdIqZcM0DLW43dM2Oc','DtpdV8kH','W7OGtG','cqSQW7ju','lSkQj07cGa','fmoMWPBcSa','W6LOW43dLvO','WQG7WONcSCki','CCozpH3cVW','jSkcwmk6WPC','fgjqW7ldMZT4','W77dKdTZxW','aCoEWQxcPmoF','WQDXW7W','W6ymWR8','DbriWPO','W4tcQSosWPHK','5Pws5zcM5BIu5PAC5O28','gmktWR4gqH5g','ALRdMG','4OYx77M9ka','W5j3WQpdSG','W5VdTmoXWRFdM0FcTHFdJ1pdKuO','WPhcTW5Mjmogwq','umoKm8kgWP3cNY7dQq','WPZcVJ1yhbtdNCosW4pdSCoXfJFcRSo4WRJdRCo+W6SA','WRD6ka7cVb0nwSkEWPOqbmkdWOHYq8kXWRVdQSknW4evWQlcMa','Cv10WOaOcadcJX3cRbjb','yCoNpclcVa','W5pcNXpdPrBcH1a','W4CQWP8VFq','ECkyk8kVWPy','WOb+W5yDyG','WQiaW5FcKZi','W4LZW6/dIge','W4/cOHJdGZq','rw9dp8oc','WR/cLbrHldxdHmo1W5/dTSoXhYa','WQldM3mWgq','AYddU8k+n8khW7NcOCkR','WQaSW5RcUWC','WQvTW6ygxq','qrq5','WRXUmvC0','yUweQE+9I+AvGoMxRo+8PW','5ywP5O+557M85y2F5OUR5yQK','EKXecG','W4r8W7xdIL0','WPpdUv02yafO','W7X/W6Dbjq','W7BcGX5JcX16W6vNW5XUm8ogcCoCm8oMtSkjoxZcVZe','nWtdJ8k2WO7dTSoxW6O','iCoC5PIB5zoY5BIv6zwq5O2M542avwK','emoSWPFcVmoT','W6uFWQWDWP0','WOnWk0qg','gSkBWQqg','Emo+la8','W7xdRtrY','W4uPWRuOWRFcGdnZ','za0KCeW','p8kJi34','W71cWOlcPq','j8kPmMNcOG','W7SiWRKjvN/cMmkoW6lcNmoktq','W53cMXpdVIhcJW','W68nWQ4','WOhdS8odW54HmCkB','WQzqpuuiW75JESkrwdzJjeZdLsqpery','WQ
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