KR/jd_fcwb_auto.js

38 lines
87 KiB
JavaScript
Raw Normal View History

2023-12-05 17:20:15 +08:00
/*
欢乐淘金发财挖宝
入口APP 玩一玩 欢乐淘金
地址
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-18 21:53:20 +08:00
var il='jsjiami.com.v7';const l1III=iii1II;(function(iilIli,IlIi1I,i111I,llIiiI,IiIilI,lIiIl1,iilIl1){return iilIli=iilIli>>0x6,lIiIl1='hs',iilIl1='hs',function(l1II1,III1i1,IlI1,I1IlIl,l1I1i1){const I1IlII=iii1II;I1IlIl='tfi',lIiIl1=I1IlIl+lIiIl1,l1I1i1='up',iilIl1+=l1I1i1,lIiIl1=IlI1(lIiIl1),iilIl1=IlI1(iilIl1),IlI1=0x0;const I1IlIi=l1II1();while(!![]&&--llIiiI+III1i1){try{I1IlIl=parseInt(I1IlII(0x133,'BX7M'))/0x1+-parseInt(I1IlII(0x49f,'e$@L'))/0x2+parseInt(I1IlII(0x3dd,'e&9d'))/0x3+parseInt(I1IlII(0x1fe,'[OdR'))/0x4+parseInt(I1IlII(0x185,'V3mn'))/0x5+parseInt(I1IlII(0x12e,'hJ]x'))/0x6+-parseInt(I1IlII(0x4aa,'Uo!t'))/0x7;}catch(l1ll1i){I1IlIl=IlI1;}finally{l1I1i1=I1IlIi[lIiIl1]();if(iilIli<=llIiiI)IlI1?IiIilI?I1IlIl=l1I1i1:IiIilI=l1I1i1:IlI1=l1I1i1;else{if(IlI1==IiIilI['replace'](/[dwHGKerYQxIEgqhDTF=]/g,'')){if(I1IlIl===III1i1){I1IlIi['un'+lIiIl1](l1I1i1);break;}I1IlIi[iilIl1](l1I1i1);}}}}}(i111I,IlIi1I,function(IiIil1,i111l,lIiIlI,iilIlI,i111i,lIlli1,llIii1){return i111l='\x73\x70\x6c\x69\x74',IiIil1=arguments[0x0],IiIil1=IiIil1[i111l](''),lIiIlI=`\x72\x65\x76\x65\x72\x73\x65`,IiIil1=IiIil1[lIiIlI]('\x76'),iilIlI=`\x6a\x6f\x69\x6e`,(0x14c54c,IiIil1[iilIlI](''));});}(0x3240,0x3cdd0,Iii11l,0xcb),Iii11l)&&(il=0x3a4);const iIIli1=require('./jdCookie'),Ii1l1i=require(l1III(0x2c9,'hJ]x')),l1lIl=require(l1III(0x482,'BX7M')),Ii1l1l=require('./function/krgetH5st'),i1Iiil=process[l1III(0x329,'^kR@')][l1III(0x2b7,'nAAt')]||'1',i1Iiii=process['env']['JD_FCWB_ID']||l1III(0x203,'hquq'),l1lIi=process['env']['JD_FCWB_TXNUM']?process['env']['JD_FCWB_TXNUM']:'1',l1lili=process[l1III(0x2ed,'hJuF')][l1III(0x153,'ZfIe')]===l1III(0x19d,'pCZL'),IIlI1l=process[l1III(0x247,'a[D%')][l1III(0x459,')h@h')]===l1III(0x38c,'m6LE'),lI1I11=process[l1III(0x1d9,'hquq')][l1III(0x494,'sf@x')]||'3',IilIl=process[l1III(0x23d,'9V#2')][l1III(0x2eb,'[K(D')]==='true',IilIi=process[l1III(0x2db,'Uo!t')]['JD_FCWB_PROXY_TUNNRL'],Ili1Il=process['env'][l1III(0x3c2,'wm(5')],i1liI=process['env'][l1III(0x317,'0[oK')]||l1III(0x36f,'^m7R'),iilIIi=process[l1III(0x17d,'Y8uS')]['JD_FCWB_Notify']===l1III(0x194,'fNC#'),I1iII={'cNAsHasSnzWTAtWhIQR4dA':{0x1:0x6,0x2:0xf,0x3:0x10},'Bn1VWXtvgTv5ewPoMR-X8A':{0x1:0x5,0x2:0xf,0x3:0x11}};let IIlI1i=0x3e8;IilIl&&(IilIi||Ili1Il)&&(IIlI1i=0x64);function iii1II(_0x63b2d4,_0xf20aec){const _0x23efbf=Iii11l();return iii1II=function(_0x11b609,_0x4680dc){_0x11b609=_0x11b609-0x122;let _0x32e47b=_0x23efbf[_0x11b609];if(iii1II['WFufOy']===undefined){var _0x4b8366=function(_0x2b1fd8){const _0x4e449b='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x430eac='',_0x381341='';for(let _0x4f1d21=0x0,_0x19d35a,_0x30c3f7,_0xf2fd96=0x0;_0x30c3f7=_0x2b1fd8['charAt'](_0xf2fd96++);~_0x30c3f7&&(_0x19d35a=_0x4f1d21%0x4?_0x19d35a*0x40+_0x30c3f7:_0x30c3f7,_0x4f1d21++%0x4)?_0x430eac+=String['fromCharCode'](0xff&_0x19d35a>>(-0x2*_0x4f1d21&0x6)):0x0){_0x30c3f7=_0x4e449b['indexOf'](_0x30c3f7);}for(let _0x2ee2f7=0x0,_0x2801ba=_0x430eac['length'];_0x2ee2f7<_0x2801ba;_0x2ee2f7++){_0x381341+='%'+('00'+_0x430eac['charCodeAt'](_0x2ee2f7)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x381341);};const _0x285333=function(_0xb0def1,_0x1dd044){let _0x4e70af=[],_0x39262c=0x0,_0x519b95,_0x5d869d='';_0xb0def1=_0x4b8366(_0xb0def1);let _0x5b4371;for(_0x5b4371=0x0;_0x5b4371<0x100;_0x5b4371++){_0x4e70af[_0x5b4371]=_0x5b4371;}for(_0x5b4371=0x0;_0x5b4371<0x100;_0x5b4371++){_0x39262c=(_0x39262c+_0x4e70af[_0x5b4371]+_0x1dd044['charCodeAt'](_0x5b4371%_0x1dd044['length']))%0x100,_0x519b95=_0x4e70af[_0x5b4371],_0x4e70af[_0x5b4371]=_0x4e70af[_0x39262c],_0x4e70af[_0x39262c]=_0x519b95;}_0x5b4371=0x0,_0x39262c=0x0;for(let _0x3e01da=0x0;_0x3e01da<_0xb0def1['length'];_0x3e01da++){_0x5b4371=(_0x5b4371+0x1)%0x100,_0x39262c=(_0x39262c+_0x4e70af[_0x5b4371])%0x100,_0x519b95=_0x4e70af[_0x5b4371],_0x4e70af[_0x5b4371]=_0x4e70af[_0x39262c],_0x4e70af[_0x39262c]=_0x519b95,_0x5d869d+=String['fromCharCode'](_0xb0def1['charCodeAt'](_0x3e01da)^_0x4e70af[(_0x4e70af[_0x5b4371]+_0x4e70af[_0x39262c])%0x100]);}return _0x5d869d;};iii1II['tvqpSv']=_0x285333,_0x63b2d4=arg
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