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-11-09 10:15:49 +08:00
var version_='jsjiami.com.v7';const I1IlIl=iii1II;(function(Ili1ii,lIiIil,llIiii,IlII,IiIili,llIiil,IlIi11){return Ili1ii=Ili1ii>>0x7,llIiil='hs',IlIi11='hs',function(l1ll1l,III1iI,iIIlIl,iIIlIi,iilIll){const IlI1=iii1II;iIIlIi='tfi',llIiil=iIIlIi+llIiil,iilIll='up',IlIi11+=iilIll,llIiil=iIIlIl(llIiil),IlIi11=iIIlIl(IlIi11),iIIlIl=0x0;const iilIli=l1ll1l();while(!![]&&--IlII+III1iI){try{iIIlIi=-parseInt(IlI1(0x340,'Ty$&'))/0x1+parseInt(IlI1(0x15a,'cYWl'))/0x2*(-parseInt(IlI1(0x26c,']Qvk'))/0x3)+parseInt(IlI1(0x314,')pJv'))/0x4*(parseInt(IlI1(0x2a9,'zWP7'))/0x5)+parseInt(IlI1(0x3ba,'vPqI'))/0x6*(parseInt(IlI1(0xe7,')pJv'))/0x7)+parseInt(IlI1(0x2c5,'**ER'))/0x8*(parseInt(IlI1(0x3b9,'$!c['))/0x9)+-parseInt(IlI1(0x216,'MixN'))/0xa*(parseInt(IlI1(0xdb,'a@Pj'))/0xb)+parseInt(IlI1(0x19f,'a@Pj'))/0xc;}catch(IlIi1I){iIIlIi=iIIlIl;}finally{iilIll=iilIli[llIiil]();if(Ili1ii<=IlII)iIIlIl?IiIili?iIIlIi=iilIll:IiIili=iilIll:iIIlIl=iilIll;else{if(iIIlIl==IiIili['replace'](/[JLuPOIwthWDKUHGyY=]/g,'')){if(iIIlIi===III1iI){iilIli['un'+llIiil](iilIll);break;}iilIli[IlIi11](iilIll);}}}}}(llIiii,lIiIil,function(i111I,llIiiI,IiIilI,lIiIl1,iilIl1,l1II1,III1i1){return llIiiI='\x73\x70\x6c\x69\x74',i111I=arguments[0x0],i111I=i111I[llIiiI](''),IiIilI=`\x72\x65\x76\x65\x72\x73\x65`,i111I=i111I[IiIilI]('\x76'),lIiIl1=`\x6a\x6f\x69\x6e`,(0x146a69,i111I[lIiIl1](''));});}(0x6600,0xaec5d,Iii11l,0xce),Iii11l)&&(version_=I1IlIl(0x200,']#XT'));const Ili1Ii=require(I1IlIl(0x315,'a@Pj')),Ii1l1I=require(I1IlIl(0x2ea,'giAW')),iilII1=require(I1IlIl(0xf9,']c]b')),iiiI11=require(I1IlIl(0x306,'#9R7')),l1lilI=process[I1IlIl(0x205,'MxxS')][I1IlIl(0x370,'!aX7')]==='true',i1Iil1=process[I1IlIl(0x37f,'jHc#')]['JD_PDD1_TXCASH']===I1IlIl(0x399,'5F00'),liI1Ii=process[I1IlIl(0x36b,'p(K5')][I1IlIl(0x1a9,'giAW')]===I1IlIl(0x31a,'vPqI'),l1lil1=process[I1IlIl(0x1ed,'cYWl')][I1IlIl(0x2f7,'JKvb')]||'1',i1lil=process['env'][I1IlIl(0x426,'$!c[')]===I1IlIl(0x1e6,'cYWl'),I1iIl=process[I1IlIl(0x2e9,'Ty$&')][I1IlIl(0x10c,'LsIH')]||'3',IilII=process['env'][I1IlIl(0x15e,'giAW')]||'3',ili1l=process[I1IlIl(0x34c,'zWP7')]['JD_PDD1_TXMAX_RETRY']||'3',i1lii=process[I1IlIl(0x182,'3atM')]['JD_PDD1_DRAW_RETRY']||'20',iilIII=I1IlIl(0x41c,'^MRo'),liI1Il=process['env']['JD_PDD_PROXY_OPEN']===I1IlIl(0xf7,'okN2'),I1iIi=process[I1IlIl(0x245,'DxDR')]['JD_PDD_PROXY_TUNNRL'],iiiI1I=process['env'][I1IlIl(0x286,'vPqI')],lilI11=process[I1IlIl(0x3db,']c]b')][I1IlIl(0x29c,'3atM')]||'*.kingran.cf,127.0.0.1,*.baidu.com';let Ili1II='',ili1i=0x0,IiIi1=parseInt(I1iIl)*0x3e8,l1Ii1=parseInt(IilII)*0x3e8;$[I1IlIl(0x12f,'J05(')]=![];let i1IilI=![];if(liI1Il){i1IilI=!![];try{require(I1IlIl(0x22b,'vPqI'));if(iiiI1I){console[I1IlIl(0x3e7,'dE#V')]('\x0a☑\x20API地址代理已开启'),console[I1IlIl(0x41f,'cYWl')](I1IlIl(0x303,'8$(8')+iiiI1I+'\x0a');let l1lill=/[a-zA-Z0-9][-a-zA-Z0-9]{0,62}(\.[a-zA-Z0-9][-a-zA-Z0-9]{0,62})+\.?/g;global[I1IlIl(0xfa,'t*Mz')][I1IlIl(0x3c9,'cYWl')]=l1lill[I1IlIl(0x337,'DxDR')](iiiI1I)[0x0]+','+lilI11;}else I1iIi?(global[I1IlIl(0x446,'!aX7')][I1IlIl(0x19b,'giAW')]=I1iIi,global[I1IlIl(0x423,'RrnU')]['NO_PROXY']=''+lilI11,console[I1IlIl(0x2ab,'dzDe')](I1IlIl(0x162,'D6]N')),console[I1IlIl(0x3ee,'RrnU')](I1IlIl(0x34a,'cYWl')+global['GLOBAL_AGENT'][I1IlIl(0x14f,'j#6^')]+'\x0a')):(console[I1IlIl(0x1fa,'[VnK')](I1IlIl(0x28c,'LsIH')),console[I1IlIl(0xe3,'^MRo')](I1IlIl(0x411,']Qvk')),console[I1IlIl(0x14e,'giAW')](I1IlIl(0x19e,'r)L)')));}catch(i1li1){console['log'](I1IlIl(0x318,'cYWl')),console[I1IlIl(0x369,'3atM')](I1IlIl(0x173,'[VnK')),i1IilI=![];}}else console[I1IlIl(0x3b6,'okN2')]('\x0a⚠\x20检测当前模式未开启代理'),console['log']('⚠\x20开启代理变量export\x20JD_PDD_PROXY_OPEN=\x27true\x27\x20\x0a');let III1I1='';function iii1II(_0x259c8b,_0x2c4b1c){const _0x316d87=Iii11l();return iii1II=function(_0x52fb0e,_0x4e5c13){_0x52fb0e=_0x52fb0e-0xd2;let _0x3f4d60=_0x316d87[_0x52fb0e];if(iii1II['JVsDKl']===undefined){var _0x3733df=function(_0x12b16c){const _0x241791='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x305265='',_0x378e3c='';for(let _0
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