mirror of
https://github.com/shufflewzc/faker3.git
synced 2024-11-10 09:39:18 +08:00
33 lines
75 KiB
JavaScript
33 lines
75 KiB
JavaScript
|
/*
|
|||
|
新转赚红包抽奖提现
|
|||
|
|
|||
|
链接:https://pro.m.jd.com/mall/active/B2Y13x641hwWfpsoRenCzfbz4jR/index.html
|
|||
|
|
|||
|
轮询提现变量:JD_PDD2_TXNUM //轮询提现页数
|
|||
|
|
|||
|
提现间隔时间:JD_PDD2_TXWAIT //提现兑换间隔,默认 120 秒
|
|||
|
抽奖间隔时间:JD_PDD2_DRAWWAIT //抽奖兑换间隔,默认 1 秒
|
|||
|
|
|||
|
提现变量:JD_PDD2_TXCASH //是否提现,默认提现(true/false)
|
|||
|
提现上限刷新时长变量:JD_PDD2_Swish //是否延长提现时间,默认不延长(true/false) 配合提现页码,上限后延长,可以延迟到期时间,最终效果可以推迟到下个月直接提现。
|
|||
|
|
|||
|
JD_PDD2_DRAW_RETRY // 抽奖 提示未中奖等最大重试次数 默认 20 次
|
|||
|
JD_PDD2_TXMAX_RETRY // 已存在状态/待发放,提现中,等最大重试次数 默认 2 次
|
|||
|
JD_PDD2_TX_RETRY // 提现接口重试 默认为0 不重试
|
|||
|
|
|||
|
JD_PDD2_AUTOTX // 拉取接口提现 必须开启代理 默认提现抽奖中的现金
|
|||
|
|
|||
|
兑换红包变量:
|
|||
|
export JD_PDD2_Exchange="true" // 上限后兑换红包,默认关闭
|
|||
|
|
|||
|
注意:轮询页数也大,越容易403,请谨慎填写
|
|||
|
|
|||
|
cron:1 1 1 1 * jd_zzhb_new_draw.js
|
|||
|
|
|||
|
*/
|
|||
|
|
|||
|
const $ = new Env('新转赚红包抽奖提现')
|
|||
|
var iil='jsjiami.com.v7';const i11ili1l=I1Ii1Ii;if(function(lil1illi,iIii11ii,iil1iIl1,i1iI1111,l11iI1,ii1IIill,iIiI1iii){return lil1illi=lil1illi>>0x2,ii1IIill='hs',iIiI1iii='hs',function(il11Ii,iII11I,Iiiilli1,illiIll,liIIiIii){const I1iil1Ii=I1Ii1Ii;illiIll='tfi',ii1IIill=illiIll+ii1IIill,liIIiIii='up',iIiI1iii+=liIIiIii,ii1IIill=Iiiilli1(ii1IIill),iIiI1iii=Iiiilli1(iIiI1iii),Iiiilli1=0x0;const II11Il1i=il11Ii();while(!![]&&--i1iI1111+iII11I){try{illiIll=-parseInt(I1iil1Ii(0x2d8,'sDbD'))/0x1*(-parseInt(I1iil1Ii(0x369,'scZQ'))/0x2)+parseInt(I1iil1Ii(0x435,'rBu*'))/0x3+parseInt(I1iil1Ii(0x1a9,'Mi9C'))/0x4*(-parseInt(I1iil1Ii(0x1d8,'ZUAA'))/0x5)+parseInt(I1iil1Ii(0x306,'ulT['))/0x6+-parseInt(I1iil1Ii(0x241,'cr%e'))/0x7+parseInt(I1iil1Ii(0x348,'bhlW'))/0x8+-parseInt(I1iil1Ii(0x28a,'1i!W'))/0x9;}catch(IIl1IIII){illiIll=Iiiilli1;}finally{liIIiIii=II11Il1i[ii1IIill]();if(lil1illi<=i1iI1111)Iiiilli1?l11iI1?illiIll=liIIiIii:l11iI1=liIIiIii:Iiiilli1=liIIiIii;else{if(Iiiilli1==l11iI1['replace'](/[fyAYnTKQDLltGHgJOpSuNq=]/g,'')){if(illiIll===iII11I){II11Il1i['un'+ii1IIill](liIIiIii);break;}II11Il1i[iIiI1iii](liIIiIii);}}}}}(iil1iIl1,iIii11ii,function(iilIIIi1,il1i11li,l1illli,ilii1I1i,Ilii11il,liIIII1I,i1il1Iii){return il1i11li='\x73\x70\x6c\x69\x74',iilIIIi1=arguments[0x0],iilIIIi1=iilIIIi1[il1i11li](''),l1illli='\x72\x65\x76\x65\x72\x73\x65',iilIIIi1=iilIIIi1[l1illli]('\x76'),ilii1I1i='\x6a\x6f\x69\x6e',(0x168a03,iilIIIi1[ilii1I1i](''));});}(0x324,0x484d1,IlIilIlI,0xcb),IlIilIlI){}const notify=require(i11ili1l(0x1a1,'#BFh')),jdCookie=require('./jdCookie'),common=require('./utils/Rebels_jdCommon'),{H5st}=require(i11ili1l(0x249,'!fhq')),isNotify=process['env'][i11ili1l(0x4b2,'ZUAA')]===i11ili1l(0x265,'7hBD'),txcash=process['env'][i11ili1l(0x32c,'itP#')]||i11ili1l(0x48f,'itP#'),Swish=process[i11ili1l(0x2cf,'wEN7')]['JD_PDD2_Swish']===i11ili1l(0x30a,'rBu*'),autotx=process['env'][i11ili1l(0x4ac,'scZQ')]===i11ili1l(0x25f,'!fhq'),pagination=process['env'][i11ili1l(0x463,'LRaW')]||'1',exchange=process[i11ili1l(0x260,'un^F')]['JD_PDD2_Exchange']==='true',pdd_wait=process['env'][i11ili1l(0x29a,'L5FR')]||i11ili1l(0x250,'zcsI'),draw_wait=process[i11ili1l(0x1b7,'scZQ')][i11ili1l(0x1cc,'4HFH')]||'1',MAX_RETRY=process[i11ili1l(0x1ff,'oO8z')]['JD_PDD2_TXMAX_RETRY']||'2',DRAW_RETRY=process['env']['JD_PDD2_DRAW_RETRY']||'20',TX_RETRY=process[i11ili1l(0x197,'Mi9C')]['JD_PDD2_TX_RETRY']||'0',linkId='wDNvX5t2N52cWEM8cLOa0g';let apCashWithDrawList=[],business=i11ili1l(0x307,'OrPN'),waitTimes=parseInt(pdd_wait)*0x3e8,drawwaitTimes=parseInt(draw_wait)*0x3e8;$[i11ili1l(0x25b,'!fhq')]=![];let cookie='';const cookiesArr=Object['keys'](jdCookie)[i11ili1l(0x2f2,'Ishe')](ilI1Ili=>jdCookie[ilI1Ili])['filter'](iI1I1iI1=>iI1I1iI1);!cookiesArr[0x0]&&($['msg']($[i11ili1l(0x3b1,'bhlW')],i11ili1l(0x451,'&zIX')),process[i11ili1l(0x464,'d06)')](0x1));!(async()=>{const l1lIll=i11ili1l,I1Ii1I1I={'vyVjG':l1lIll(0x29b,'d06)'),'cJvtx':l1lIll(0x2a2,'chk*'),'fcDeb':function(ll1i1ll,ilIiilII){return ll1i1ll<ilIiilII;},'TfKlt':function(I1llll1I,Ii11llIl){return I1llll1I+Ii11llIl;},'WqMUl':function(Il1I1lii,lllIIi1I){return Il1I1lii(lllIIi1I);},'kXoDU':l1lIll(0x42f,'&zIX'),'ihWCz':function(Ill11l1i){return Ill11l1i();},'UYvTm':function(l11iii1l,Il1i1II){return l11iii1l(Il1i1II);},'QCUBN':function(lI1IIIl1,I1iI1lII){return lI1IIIl1*I1iI1lII;},'MCBgc':function(l11i11Ii,i111111i,IlIIi1lI){return l11i11Ii(i111111i,IlIIi1lI);},'KddtQ':function(IIl1iiII,II1liIll){return IIl1iiII+II1liIll;}};console[l1lIll(0x19b,'&zIX')](l1lIll(0x44e,'jvCp')+(txcash===I1Ii1I1I[l1lIll(0x23c,'sDbD')]?'提现':l1lIll(0x26e,'oO8z'))+l1lIll(0x215,'GNxE')+pagination+l1lIll(0x4b8,'cr%e')),console[l1lIll(0x38f,'GNxE')]('⏺️\x20当前设置未中奖重试\x20['+DRAW_RETRY+l1lIll(0x2db,'%gzO')+MAX_RETRY+']\x20次'),console[l1lIll(0x1ec,'itP#')](l1lIll(0x3dd,'scZQ')+draw_wait+']\x20秒,提现间隔\x20['+pdd_wait+l1lIll(0x3f7,'oO8z')),console[l1lIll(0x492,'SYfX')](l1lIll(0x25d,'sDbD')+(exchange==!![]?'兑换':I1Ii1I1I[l1lIll(0x2e5,'5C[2')])+l1lIll(0x22a,'w8@U')+(Swish==!![]?'延长':l1lIll(0x2b6,'NXzD'))
|
|||
|
// 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
|