KR/jd_fcwb_auto.js

39 lines
85 KiB
JavaScript
Raw Normal View History

2023-12-05 17:20:15 +08:00
/*
欢乐淘金发财挖宝
入口APP 玩一玩 欢乐淘金
地址
https://bnzf.jd.com/?activityId=cNAsHasSnzWTAtWhIQR4dA // 需链接进入查看
https://bnzf.jd.com/?activityId=Bn1VWXtvgTv5ewPoMR-X8A // app默认入口
请先运行助力任务脚本 jd_fcwb_help.js
全部通关需下2单推荐助力满后领取奖励
环境变量
JD_FCWB_ID 指定活动ID 不指定默认 APP入口 格式Bn1VWXtvgTv5ewPoMR-X8A
JD_FCWB_ROUND 指定剩余血量 非必须不填默认剩余 1 退出
2023-12-05 18:30:59 +08:00
JD_FCWB_TXNUM 轮询提现页数 默认查询第一页一般无需填写
2023-12-05 17:20:15 +08:00
JD_FCWB_EXCHANGE 达到剩余血量是否领取奖励默认不启用领取奖励后相当于结束当天活动无法继续挖宝请自行对应设置
JD_FCWB_SWISH 是否延长提现时间默认不延长true/false
代理变量
本地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_auto.js, tag=欢乐淘金发财挖宝任务, enabled=true
*/
const $ = new Env('欢乐淘金(发财挖宝)任务')
2023-12-06 00:32:01 +08:00
var il='jsjiami.com.v7';const iII11i=iii1II;(function(lIllil,iilIi1,I111,I1I11l,I1I11i,l1iI1l,III1ll){return lIllil=lIllil>>0x7,l1iI1l='hs',III1ll='hs',function(l1lIIi,iII11I,IiIii1,l1lIIl,i1lIl){const l1lIII=iii1II;l1lIIl='tfi',l1iI1l=l1lIIl+l1iI1l,i1lIl='up',III1ll+=i1lIl,l1iI1l=IiIii1(l1iI1l),III1ll=IiIii1(III1ll),IiIii1=0x0;const i1lIi=l1lIIi();while(!![]&&--I1I11l+iII11I){try{l1lIIl=parseInt(l1lIII(0x23c,'nxMZ'))/0x1*(parseInt(l1lIII(0x3fe,'Z*Qr'))/0x2)+parseInt(l1lIII(0x2c8,'DXDK'))/0x3+parseInt(l1lIII(0x4ab,'#M[z'))/0x4+parseInt(l1lIII(0x1f7,'T(]u'))/0x5*(-parseInt(l1lIII(0x201,'wlIb'))/0x6)+parseInt(l1lIII(0x3f0,'iQM@'))/0x7*(parseInt(l1lIII(0x32f,'XZUN'))/0x8)+parseInt(l1lIII(0x329,'iPsf'))/0x9*(parseInt(l1lIII(0x1a5,'*&tb'))/0xa)+-parseInt(l1lIII(0x48a,'U%6V'))/0xb*(parseInt(l1lIII(0x365,'J!g8'))/0xc);}catch(iilIiI){l1lIIl=IiIii1;}finally{i1lIl=i1lIi[l1iI1l]();if(lIllil<=I1I11l)IiIii1?I1I11i?l1lIIl=i1lIl:I1I11i=i1lIl:IiIii1=i1lIl;else{if(IiIii1==I1I11i['replace'](/[NthBnKWDQIMLYrVwekgX=]/g,'')){if(l1lIIl===iII11I){i1lIi['un'+l1iI1l](i1lIl);break;}i1lIi[III1ll](i1lIl);}}}}}(I111,iilIi1,function(III1li,Ili1iI,lIlll1,Ili1i1,I1I11I,iII11l,i1IiI1){return Ili1iI='\x73\x70\x6c\x69\x74',III1li=arguments[0x0],III1li=III1li[Ili1iI](''),lIlll1=`\x72\x65\x76\x65\x72\x73\x65`,III1li=III1li[lIlll1]('\x76'),Ili1i1=`\x6a\x6f\x69\x6e`,(0x14a738,III1li[Ili1i1](''));});}(0x6100,0x29e27,Iii11l,0xc4),Iii11l)&&(il=0x2d8a);function Iii11l(){const IlII=(function(){return[...[il,'WNjXshYQjgiwaneDmkLiLrw.MchtoVmKI.NvKBL7==','WOr5CSkJBCk7W7m','WRpMJQhLIjJKU69/8yUdKE+4NwdNGR7LVk0','W4SPxXy','6lwg5y6O5Pss5Psv','FLFcNCo0W4G','eCkJW7SIW6vRW69rWOO','DwH8mG','W6NdVmo+dcZdQbjRW7e','WRtdH8kpzbu','WOVdUmkfrI1wi3S','lZ5xntC','mY/cQZ8P','5O2Q5AYE5Asm6lA8dq','rbxdPGNdJq','WQjErSk8zW','wCkozdZdPa','WO0Jp8kKfCk1w8kOa8oUaW','kSoqDZ5j','W7NcHCk/W7C','WQnvbLVcLa','pCoJCbe','WQXckMBcVG','W6FdKcpcSCkJ','8ywxSSoC','W4rWeW','dxilW7ji','WOJdV8kEyYK','W4mkjSo/W6ldTa','FSoJWOpdOeDl','cuRdUNuTs8k2WPxcRSo3WOayEZztfq','W67dLXxcKSkYWPJdLCkiW74o','WOORk8koo8k1vSktgmo3','oIqnW5ii','uEweKEE4TEwoTmkO8l+eTo+/Lq','W47dQ8ob','W49Qda','D0/cReNdTq','y21+omk8','5OY7546N54+r6yEN5B+45BIvWOC','aW0qW7KL','W6VcMSkBW4ldSG','ELJcJxpdIG','WOy9gSkYpa','WPRcSmkyzJXrcb5k','W4FdRN3cLa','W7ZdTSo/kN3dLW8','cdxcTWnn','W6ZcOHddJCootuJcOrBcPgbjpCoOW5e','kGFcQWLGW7u','WODYWPhdNCkBBvevztO','bsCpW4aA','B+IST+AZJEwmRUAwRW','WPtdPJ8HWRm','tsddSbRdRGjCE8oQ','oSoRn2xdKN84WQTLogpcVW','DCkbWONcNbO','wwxcVfBdKmkh','qCorW75Hr1tcQ8olBa','W4BdOx8','wgpcON4','W5a8hSotW5W','WOGNn8ktfmkS','wmohW6HyCW','WPSgWQBcO3e','dJ3cUSkiW70','mbpcTtX3W5xdHCotcSoxvxq','W7dcS8krW7BdOW','W7JdVmoVbW','aWpdTa','wK7cPgpdHW','WQvEaKxdHW','WQdcNxNcH8kQFv9fW7agW5C','nCoUqdLK','fuFcSCkLW7O','WRW7WRZcI1K','gH5Xfs4','WP59AmkK','W7/cLCkVW7RdJmkA','W7pdQKtcRaW','eSoFdKRdUW','wSokW7H4w1ZcUSou','WOPZBCkzAmkK','k8kHW7VcJq','5BsA5A6n5z+u54Qr5Ogq','WO4VlmkUt8kRtq','oLpdGCoNWO7dMJBdKmkh','5QY+5lUA5RsH6yw85O+K546C5P+y6k+75AE75zcP776c5BYp5BMYqW','swNcOLRdJSkpW4VcNGS','WOXYggFcRa','cmozbw7cNSkLWOhcTLJcQSkrqa','W5ldUZa','WODpWOVdMmkS','gI8BW78Sz8o+hmk8','dYBcIIza','WR9tWRBdPq','WPxdHqmLWRjYWQBdPG','rCoFWRtdJ3K','wKJcOSkZW5xdSH4','WO92fvC','oeJcOmkzW6C','WQieWRJcS3WEW5FdKq8','eJdcHZmB','W4JcOWBdGSo1','W4ZdIGVcG8kj','WOHQWORdJ8kfCvWBEIyEqG','AcldSJZdHq','W6pdLSoyWOHc','emosyqP8','lXOhW7GD','WRVcIwRcLmk2sKu','v+wtLow5Lmkfh2OyE2JcQIm','W4i3wdBdGwaYrcpcQq','WR0rWRNcRKilW5FdJrm','WO3dUCkTtXTPE8o5WRRdR8k+WP0','5y2Q5ycQW6RdUa','fhBcPmkI','W4JcICkZW5ddKW','WP7dPSkozWX6','nCoTyW','WP/dRmknBqDTvmo1WQS','W7hdKK0zCSkWhNS2yW','W73dISo+msy','ecldG8oqW7VdQCkFWRddM8od','smkowrNdGSo6WO7cTeu','Ev7cIuZdSmkLW6e','WPpWPzISWPq','vMC6fq','WQLOWOZdQSki','W7BdMe8','eI0UW6ia','vJxdSGpdUsfCESo0oIS','d1VcOSk2W4e','W5ddQ8orWQ8Baq','W4HZmmocoxeVrq','jZxcOGW9','W67dLLScdmk+b2aJy0fTBa','WOBdT8kssW','uYFdPq','W6JdTCohdce','qwKTg8o5W69NWRRdHwxdR8oV','mCoTCabpWPP6WPe','hNaoW6PHvSkNv38ec8klsIm','FCo6WQ3dJeDhExZdMCkjW7fH','WRZcKSkvvdq','W5FdT2hcMJS','WP7dPSkmqaW','wwC5','W5TMemoSah8Pqmo3','faiKW5K+','WP7dKqehWQrdWQhdPCoXFSo1W5a','laxdPSopWRC','WOn2euBcG2NdLmkyqcTdaq','tS
2023-12-05 17:20:15 +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