mirror of https://github.com/6dylan6/jdpro.git
32 lines
51 KiB
JavaScript
32 lines
51 KiB
JavaScript
|
/*
|
|||
|
欢乐淘金(发财挖宝)助力
|
|||
|
|
|||
|
入口:京东APP——玩一玩——欢乐淘金
|
|||
|
|
|||
|
地址:
|
|||
|
https://bnzf.jd.com/?activityId=cNAsHasSnzWTAtWhIQR4dA //需链接进入查看
|
|||
|
https://bnzf.jd.com/?activityId=Bn1VWXtvgTv5ewPoMR-X8A //app默认入口
|
|||
|
|
|||
|
环境变量:
|
|||
|
JD_FCWB_ID // 指定活动ID 不指定默认 APP入口 格式:Bn1VWXtvgTv5ewPoMR-X8A
|
|||
|
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 需要自行修改
|
|||
|
|
|||
|
cron:1 1 1 1 *
|
|||
|
============Quantumultx===============
|
|||
|
[task_local]
|
|||
|
#欢乐淘金(发财挖宝)助力
|
|||
|
1 1 1 1 * jd_fcwb_help.js, tag=欢乐淘金(发财挖宝)助力, enabled=true
|
|||
|
|
|||
|
*/
|
|||
|
|
|||
|
const $ = new Env('欢乐淘金(发财挖宝)助力')
|
|||
|
var iil='jsjiami.com.v7';const ilIIil=iii1II;(function(llli1l,lI1ii1,llli1i,iiI1l1,i11lI1,liliiI,ilIIiI){return llli1l=llli1l>>0x3,liliiI='hs',ilIIiI='hs',function(lIl1ii,lIl1il,Ii1l11,IIlii1,iiI1lI){const li1i=iii1II;IIlii1='tfi',liliiI=IIlii1+liliiI,iiI1lI='up',ilIIiI+=iiI1lI,liliiI=Ii1l11(liliiI),ilIIiI=Ii1l11(ilIIiI),Ii1l11=0x0;const IliIlI=lIl1ii();while(!![]&&--iiI1l1+lIl1il){try{IIlii1=-parseInt(li1i(0x21c,'qk&['))/0x1*(parseInt(li1i(0x94,'%p#G'))/0x2)+parseInt(li1i(0x210,'HOLy'))/0x3+parseInt(li1i(0x158,'du[G'))/0x4*(parseInt(li1i(0x8d,'5si*'))/0x5)+-parseInt(li1i(0xcc,'BuGA'))/0x6+-parseInt(li1i(0x113,'f)H*'))/0x7*(-parseInt(li1i(0x8b,'du[G'))/0x8)+-parseInt(li1i(0x155,'aG9V'))/0x9+parseInt(li1i(0x161,'V2qc'))/0xa*(parseInt(li1i(0x68,'HOLy'))/0xb);}catch(IIliiI){IIlii1=Ii1l11;}finally{iiI1lI=IliIlI[liliiI]();if(llli1l<=iiI1l1)Ii1l11?i11lI1?IIlii1=iiI1lI:i11lI1=iiI1lI:Ii1l11=iiI1lI;else{if(Ii1l11==i11lI1['replace'](/[VhSGIJRKYkLeNMxfUdn=]/g,'')){if(IIlii1===lIl1il){IliIlI['un'+liliiI](iiI1lI);break;}IliIlI[ilIIiI](iiI1lI);}}}}}(llli1i,lI1ii1,function(i1111l,i1111i,iliiI1,Illli1,ilIIii,l1111,lIl1l1){return i1111i='\x73\x70\x6c\x69\x74',i1111l=arguments[0x0],i1111l=i1111l[i1111i](''),iliiI1=`\x72\x65\x76\x65\x72\x73\x65`,i1111l=i1111l[iliiI1]('\x76'),Illli1=`\x6a\x6f\x69\x6e`,(0x14d503,i1111l[Illli1](''));});}(0x5f8,0x3ff92,Iii11l,0xc1),Iii11l)&&(iil=Iii11l);const liIli1=require(ilIIil(0x110,'dtHQ')),IIIlIl=require('./function/sendJDNotify'),IIIlI=require(ilIIil(0x20b,'t@WX')),IiiI=require(ilIIil(0x15b,'mv(n')),iIi1i=process['env']['JD_FCWB_Notify']===ilIIil(0x88,')u99'),l1iIll=process['env'][ilIIil(0x13a,'!hxf')]||'',l1iIli=process[ilIIil(0x66,'NG)8')][ilIIil(0x17b,'qk&[')];let iIi1l=process[ilIIil(0x75,'TNE4')]['JD_FCWB_ID']||ilIIil(0x133,'zXK!');const i1lIlI=process['env'][ilIIil(0x90,'cO$N')]==='true',l1lliI=process['env'][ilIIil(0x150,'kEu9')],I1I1iI=process[ilIIil(0xb6,'1RUf')][ilIIil(0x166,'ep8G')],IIIlII=process[ilIIil(0x239,'BuGA')]['JD_FCWB_NO_PROXY']||'*.kingran.cf,127.0.0.1,*.baidu.com';let iiIiI1='',ili1Il=0x0;function Iii11l(){const lililI=(function(){return[...[iil,'RjSsVdjJLihxaSmNMiGxe.VKcLIoknRmUYN.fYv7==','W7GdWQpdRmkaWP7cGeGcW4FcQSo2','WPRcMxVcS8kG','W6ZORzBMSRVLKyVLU6fQ','WQRdImkxW6CzjI0','W5efW6CxW70','f8kwmhhdIJi2','W73dKSkTgCkp','8y6WVYu','W6OLnCkMW6VcSGTEsmoICY3dRqTOca','qwtcJmouqa','W5JcM8oB','WR5An8o5W5e','W4uicSkuW5pcUJ14r8ocuqK','WPz9WRHZWRhcLhxdTCkfW6dcKmoGg8kGFI7cTr55W6JcVHL0dhGMgNxcLCkWW5K3ErPSW5S5WRhdRSovW5lcG8oVpbGMWRjMW6KoW43cHCkU','f8kypCoEW7FcLCk9xvC','uUkpPo+5J8kF5yQ/5yIS56cZ7765','zGRdVSoC','WQ7cG0pcMmkfW71kemkEnIVdUq','yNJcGmo1uq','efTvW4tcICoxW4FdRW','WRzQDG','WQz5W6DIWP/dQLdcL3FdJG','jHBcHq','p8oPWODzW4G','qEITIUAYNUI2N+AuMU+9VEISUUAGHEAFG+E+HEE6UUMgLEITSq','W7WNWQNdLSku','lmkuW7u','CSo/W7eoW4m','4O6B77QYW7ZOTlZLJjSQW7ZcMoIoKEwmGUwlJ+wlG+s9HEAcRq','WRlcU3bK','zudcTmo0Fq4','sSoZW4eOW4X+W7FcGe4','W68mlsNdIYrzca','WPLhCx3cTCoAWRZcSWlcRq','WPPlkM3dKqldJbS','WPtcN1hcGKq','nw0N','k8o5WOnCWQ8MWO/cMNBcHIKaW73cNCkEaN3dIa','fmoDWRPqW4i','WQr9WRpdQXm','WQnaW4jhWRG','jmkXu8ozrSo3WR5oW4CaWPSj','4PUQwCkJWPnq5z6W5z235y+D6yAk77+gW5ZdJCkVWOXHW4jknKH2WQZdJCo8wZyOnCojgIz7zCk6oSkNCCkOWQJdUSkiW6OpA8kAtuvsWOpcKSoLW4dcMrb2jYy','cCkOoSkRWOdcVxxdPa','WOxcMslcTmo5W5hcR8ovoYi','W69SWRtcSupdJ8os','zcqZ','amoEWQjKWQq','auSlW51Z','cCkIiSkRWPZcP2a','weul','pSk8g2NcRq4AW6y','WRFdMmkaW48jb8krcSojzmkoACkxeSoAWOLZWPWCebVcPCouWQ5CW6HTB8kxvXa4ySotBr3cI8ksWOFcGCoHE8kvnCo3zSkrWPDJW4VdLCkQW54','xCo8cmk/ka','WQxcPMfK','iCo5FG','W6X8WQxcOuNdKSoVW74k','ECoDe8kTkG','Bmkina','WRXNW71IWP8','WQlcQhfG','WP/dGSk6W4Kw','WRlcMw/cMexdU3pdPXHeWRldVq','W4NORlJMSy7LP6VOT6hVVRLhnmkQaWRdG8kVt2dcT8kdW7BdPZ4','xWFdU2hdRq','WOjKcCoa','WPrTlI4E','Dca1','y2uwkh0','utFdTvBdQq','W4ZIJlpVUiOH5BEd5PYH5yUo5yUA5lUP5PAd77YW','WPPlWPXouW','WQNcNWdcT8ov','BIiS','W6OHkCkMW7ZcGW8','uuqA','brZcMfldGW','W6r1WOdcN0e','CGOGWOWb','yLzA','oZtcK8kAxW','WQldGSohWPpcVq','WP5Khq','vYJdGmoQDf1p','W6C8lmkI','WR1IFujF','n8kKvJlcTa','W6ORmCkMW6dcMrPa','WQnMs2JcHmoU','ddRcTCkbxmoUuW','lshcIGBdPwy','4P+zW43LVB3LI4/LIOZLIB/LTk/OVl/LIBZMJiJLRBJLI5/LIOdKUAV
|
|||
|
// 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
|