KR/jd_fcwb_help.js

32 lines
51 KiB
JavaScript
Raw Normal View History

2023-08-11 20:33:46 +08:00
/*
2023-11-15 13:30:39 +08:00
欢乐淘金发财挖宝助力
2023-08-11 20:33:46 +08:00
2023-11-15 13:30:39 +08:00
入口京东APP玩一玩欢乐淘金
2023-08-11 20:33:46 +08:00
2023-12-04 13:08:02 +08:00
地址
https://bnzf.jd.com/?activityId=cNAsHasSnzWTAtWhIQR4dA //需链接进入查看
https://bnzf.jd.com/?activityId=Bn1VWXtvgTv5ewPoMR-X8A //app默认入口
2023-11-15 13:30:39 +08:00
环境变量
2023-12-04 13:08:02 +08:00
JD_FCWB_ID // 指定活动ID 不指定默认 APP入口 格式Bn1VWXtvgTv5ewPoMR-X8A
2023-11-15 13:30:39 +08:00
JD_FCWB_InviterId // 指定助力码 非必须,不填默认助力账号一 格式inviterId&inviterCode
JD_FCWB_NUM // 指定人数 非必须,不填默认跑全部账号
代理变量 本地IP理论正常助力也无需开启代理
JD_FCWB_PROXY_OPEN // 代理启用变量默认不开启true/false
JD_FCWB_PROXY_TUNNRL // 代理池代理地址变量,默认不开启,仅支持代理池模式(auto-proxy-pool)格式为http://ip:port
JD_FCWB_PROXY_URL // API代理地址变量默认不开启仅支持 数据格式:txt;提取数量:每次一个格式为http://api.xxx.xxx
JD_FCWB_NO_PROXY // 禁止走代理,默认 127.0.0.1,*.baidu.com 需要自行修改
2023-08-11 20:33:46 +08:00
2023-11-15 13:30:39 +08:00
cron:1 1 1 1 *
2023-08-11 20:33:46 +08:00
============Quantumultx===============
[task_local]
2023-11-15 13:30:39 +08:00
#欢乐淘金发财挖宝助力
1 1 1 1 * jd_fcwb_help.js, tag=欢乐淘金发财挖宝助力, enabled=true
2023-08-11 20:33:46 +08:00
*/
2023-11-15 13:30:39 +08:00
const $ = new Env('欢乐淘金(发财挖宝)助力')
2023-12-04 13:08:02 +08:00
var il='jsjiami.com.v7';const Illlll=iii1II;(function(li1I,IIliil,ll1liI,lI1iiI,i11lII,iIIlli,ll1li1){return li1I=li1I>>0x3,iIIlli='hs',ll1li1='hs',function(iIIlll,I1iiiI,iiI1il,iiI1ii,I1iii1){const IIlilI=iii1II;iiI1ii='tfi',iIIlli=iiI1ii+iIIlli,I1iii1='up',ll1li1+=I1iii1,iIIlli=iiI1il(iIIlli),ll1li1=iiI1il(ll1li1),iiI1il=0x0;const lilii1=iIIlll();while(!![]&&--lI1iiI+I1iiiI){try{iiI1ii=parseInt(IIlilI(0x1c5,'MRoT'))/0x1*(-parseInt(IIlilI(0x1e8,'eI^!'))/0x2)+-parseInt(IIlilI(0x19f,'hsn)'))/0x3+parseInt(IIlilI(0x195,'OTg]'))/0x4+parseInt(IIlilI(0x126,'TCuM'))/0x5*(parseInt(IIlilI(0x181,'EnT#'))/0x6)+-parseInt(IIlilI(0x1ee,'f[7E'))/0x7*(parseInt(IIlilI(0x1e4,')*5('))/0x8)+-parseInt(IIlilI(0xc9,'^nN8'))/0x9+parseInt(IIlilI(0x14f,'JWTj'))/0xa;}catch(iIiii1){iiI1ii=iiI1il;}finally{I1iii1=lilii1[iIIlli]();if(li1I<=lI1iiI)iiI1il?i11lII?iiI1ii=I1iii1:i11lII=I1iii1:iiI1il=I1iii1;else{if(iiI1il==i11lII['replace'](/[ICwqtHurPKWNhgYeFDMRE=]/g,'')){if(iiI1ii===I1iiiI){lilii1['un'+iIIlli](I1iii1);break;}lilii1[ll1li1](I1iii1);}}}}}(ll1liI,IIliil,function(ll1lil,IIlil1,I1Illl,ll1lii,li11,ilIlI1,I1Illi){return IIlil1='\x73\x70\x6c\x69\x74',ll1lil=arguments[0x0],ll1lil=ll1lil[IIlil1](''),I1Illl=`\x72\x65\x76\x65\x72\x73\x65`,ll1lil=ll1lil[I1Illl]('\x76'),ll1lii=`\x6a\x6f\x69\x6e`,(0x14a227,ll1lil[ll1lii](''));});}(0x5e8,0x9f934,Iii11l,0xbf),Iii11l)&&(il=0x1c01);const Iiil=require(Illlll(0x1c4,'B[W@')),IIIli=require(Illlll(0x1f0,')YZf')),ii1i1=require(Illlll(0x23f,'Yt&7')),Iiii=require(Illlll(0x218,'mt%9')),llIl11=process[Illlll(0x75,'Tz7N')]['JD_FCWB_Notify']===Illlll(0x78,'4(]I'),IIIll=process[Illlll(0x1f3,'OTg]')][Illlll(0x154,'R1v(')]||'',I1I1il=process['env'][Illlll(0x16e,'*gFn')];let l1llii=process['env'][Illlll(0x220,'kgle')]||Illlll(0x22d,'JMED');const liII1=process[Illlll(0x219,'X22$')]['JD_FCWB_PROXY_OPEN']==='true',I1I1ii=process['env'][Illlll(0x1cd,'LRBB')],l1llil=process[Illlll(0x1f5,'FpA*')]['JD_FCWB_PROXY_URL'],IIIlIi=process['env'][Illlll(0x11a,'OQ0)')]||Illlll(0x231,'^Ugs');let llIl1I='',i1lIl1=0x0;const liIli1='2';let IIIlIl=parseInt(liIli1)*0x3e8;liII1&&(I1I1ii||l1llil)&&(IIIlIl=0x64);$['helpnum']=0x0,$['FCWBEnd']=![];let IIIlI=![];if(liII1){IIIlI=!![];try{require(Illlll(0x1e1,'eI^!'));if(l1llil){console[Illlll(0x1a3,'^Iy0')](Illlll(0x125,'JWTj')),console[Illlll(0xcf,'UTGW')]('☑️\x20代理地址为'+l1llil+'\x0a');let ili1Il=/[a-zA-Z0-9][-a-zA-Z0-9]{0,62}(\.[a-zA-Z0-9][-a-zA-Z0-9]{0,62})+\.?/g;global['GLOBAL_AGENT'][Illlll(0x1b9,'LRBB')]=ili1Il[Illlll(0xa0,')cC4')](l1llil)[0x0]+','+IIIlIi;}else I1I1ii?(global['GLOBAL_AGENT'][Illlll(0x146,'Tz7N')]=I1I1ii,global['GLOBAL_AGENT'][Illlll(0x9a,')YZf')]=''+IIIlIi,console[Illlll(0x8b,'eI^!')](Illlll(0x233,'KYOS')),console[Illlll(0x135,'XKUX')](Illlll(0x144,'[e5(')+global['GLOBAL_AGENT'][Illlll(0xec,'qbPH')]+'\x0a')):(console[Illlll(0xbd,'mt%9')](Illlll(0xc1,'kgle')),console['log'](Illlll(0x16f,'OTg]')),console[Illlll(0x1cb,'XUxo')](Illlll(0x1d4,'4#eb')));}catch(ili1Ii){console['log'](Illlll(0x161,'4(]I')),console['log']('\x0a安装命令npm\x20install\x20global-agent\x0a'),IIIlI=![];}}else console[Illlll(0x17f,'4(]I')](Illlll(0x15c,'TCuM')),console['log']('⚠\x20开启代理变量export\x20JD_FCWB_PROXY_OPEN=\x27true\x27\x20\x0a');let IiiI='';const iIi1i=Object[Illlll(0x10c,'Tz7N')](Iiil)[Illlll(0xfa,'EC1[')](Iilll1=>Iiil[Iilll1])[Illlll(0xd4,')YZf')](ll11I=>ll11I);!iIi1i[0x0]&&($['msg']($[Illlll(0x12a,'XUxo')],Illlll(0xcd,')YZf')),process['exit'](0x1));!(async()=>{const Illlli=Illlll,iIi1I={'tYWAr':Illlli(0x98,')cC4'),'teeOz':Illlli(0x171,'N60g'),'KAZTd':Illlli(0xdf,'EC1['),'lmgBv':Illlli(0x159,'B[W@'),'epQTY':function(liIIl,IlI1lI){return liIIl+IlI1lI;},'KPixa':Illlli(0x22f,'JMED'),'Zvyta':Illlli(0x91,'kgle'),'uJbgv':function(liIIi,IilllI){return liIIi===IilllI;},'UOVRo':Illlli(0x1e2,'LRBB'),'wfbdo':Illlli(0x21f,'MRoT'),'rklVS':'kprBz','OMhWh':function(iI1lIi,l1lllI){return iI1lIi<l1lllI;},'pOOmv':function(llliIi,i1lIli){return llliIi+i1lIli;},'LHgVe':function(i1lIll,ll11ii){return i1lIll&&ll11ii;},'sahCq':function(liIlii,llii1l){return liIlii!==llii1l;}
2023-08-11 20:33:46 +08:00
// prettier-ignore
2023-11-15 13:30:39 +08:00
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