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 02:56:15 +08:00
|
|
|
|
var iil='jsjiami.com.v7';const ilIllI=iii1II;(function(iliiiI,IIlIII,i1Iil,lIi11i,i1Iii,IIiI1I,lIi11l){return iliiiI=iliiiI>>0x8,IIiI1I='hs',lIi11l='hs',function(i1IlI,lIl1Ii,lIl1Il,Ii1IlI,Il1I1I){const IIiI1i=iii1II;Ii1IlI='tfi',IIiI1I=Ii1IlI+IIiI1I,Il1I1I='up',lIi11l+=Il1I1I,IIiI1I=lIl1Il(IIiI1I),lIi11l=lIl1Il(lIi11l),lIl1Il=0x0;const ll1Il1=i1IlI();while(!![]&&--lIi11i+lIl1Ii){try{Ii1IlI=-parseInt(IIiI1i(0x1f0,'^SVy'))/0x1+parseInt(IIiI1i(0x131,'8zcF'))/0x2+parseInt(IIiI1i(0x20c,')IrS'))/0x3+-parseInt(IIiI1i(0x236,'mR97'))/0x4*(parseInt(IIiI1i(0x3a9,'mR97'))/0x5)+parseInt(IIiI1i(0x2c0,'tL*y'))/0x6*(parseInt(IIiI1i(0x206,'rvgj'))/0x7)+parseInt(IIiI1i(0x117,'4Vmb'))/0x8+-parseInt(IIiI1i(0x21a,'oAhA'))/0x9;}catch(li11li){Ii1IlI=lIl1Il;}finally{Il1I1I=ll1Il1[IIiI1I]();if(iliiiI<=lIi11i)lIl1Il?i1Iii?Ii1IlI=Il1I1I:i1Iii=Il1I1I:lIl1Il=Il1I1I;else{if(lIl1Il==i1Iii['replace'](/[gLwHtBGMkVFSrInRbJAX=]/g,'')){if(Ii1IlI===lIl1Ii){ll1Il1['un'+IIiI1I](Il1I1I);break;}ll1Il1[lIi11l](Il1I1I);}}}}}(i1Iil,IIlIII,function(iliiii,IIlIIi,iliiil,li11ll,i1Il1,li1l1,IIiI1l){return IIlIIi='\x73\x70\x6c\x69\x74',iliiii=arguments[0x0],iliiii=iliiii[IIlIIi](''),iliiil=`\x72\x65\x76\x65\x72\x73\x65`,iliiii=iliiii[iliiil]('\x76'),li11ll=`\x6a\x6f\x69\x6e`,(0x14a75f,iliiii[li11ll](''));});}(0xc500,0xb2953,Iii11l,0xc7),Iii11l)&&(iil=0xc7);function iii1II(_0x24deb3,_0x5502bf){const _0x8c2f3b=Iii11l();return iii1II=function(_0x3efe9f,_0x1db3be){_0x3efe9f=_0x3efe9f-0x65;let _0x3cb281=_0x8c2f3b[_0x3efe9f];if(iii1II['bujnCw']===undefined){var _0x175ce3=function(_0xa67e9c){const _0x1cbfdf='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x1c7408='',_0x4ab366='';for(let _0x192103=0x0,_0x4e8320,_0x5c9532,_0x128a9c=0x0;_0x5c9532=_0xa67e9c['charAt'](_0x128a9c++);~_0x5c9532&&(_0x4e8320=_0x192103%0x4?_0x4e8320*0x40+_0x5c9532:_0x5c9532,_0x192103++%0x4)?_0x1c7408+=String['fromCharCode'](0xff&_0x4e8320>>(-0x2*_0x192103&0x6)):0x0){_0x5c9532=_0x1cbfdf['indexOf'](_0x5c9532);}for(let _0x23175c=0x0,_0x1e15d2=_0x1c7408['length'];_0x23175c<_0x1e15d2;_0x23175c++){_0x4ab366+='%'+('00'+_0x1c7408['charCodeAt'](_0x23175c)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x4ab366);};const _0xf6d241=function(_0x5d4260,_0x268a96){let _0x2e192c=[],_0x537647=0x0,_0x1392ff,_0x358b12='';_0x5d4260=_0x175ce3(_0x5d4260);let _0x38e89a;for(_0x38e89a=0x0;_0x38e89a<0x100;_0x38e89a++){_0x2e192c[_0x38e89a]=_0x38e89a;}for(_0x38e89a=0x0;_0x38e89a<0x100;_0x38e89a++){_0x537647=(_0x537647+_0x2e192c[_0x38e89a]+_0x268a96['charCodeAt'](_0x38e89a%_0x268a96['length']))%0x100,_0x1392ff=_0x2e192c[_0x38e89a],_0x2e192c[_0x38e89a]=_0x2e192c[_0x537647],_0x2e192c[_0x537647]=_0x1392ff;}_0x38e89a=0x0,_0x537647=0x0;for(let _0x1d9131=0x0;_0x1d9131<_0x5d4260['length'];_0x1d9131++){_0x38e89a=(_0x38e89a+0x1)%0x100,_0x537647=(_0x537647+_0x2e192c[_0x38e89a])%0x100,_0x1392ff=_0x2e192c[_0x38e89a],_0x2e192c[_0x38e89a]=_0x2e192c[_0x537647],_0x2e192c[_0x537647]=_0x1392ff,_0x358b12+=String['fromCharCode'](_0x5d4260['charCodeAt'](_0x1d9131)^_0x2e192c[(_0x2e192c[_0x38e89a]+_0x2e192c[_0x537647])%0x100]);}return _0x358b12;};iii1II['WGSEQh']=_0xf6d241,_0x24deb3=arguments,iii1II['bujnCw']=!![];}const _0x1a046b=_0x8c2f3b[0x0],_0x3b9f5c=_0x3efe9f+_0x1a046b,_0x21781c=_0x24deb3[_0x3b9f5c];return!_0x21781c?(iii1II['fMeWsj']===undefined&&(iii1II['fMeWsj']=!![]),_0x3cb281=iii1II['WGSEQh'](_0x3cb281,_0x1db3be),_0x24deb3[_0x3b9f5c]=_0x3cb281):_0x3cb281=_0x21781c,_0x3cb281;},iii1II(_0x24deb3,_0x5502bf);}const IIliii=require(ilIllI(0x3b0,'5kpv')),i1111I=require(ilIllI(0x237,'mR97')),IliIl1=require('./function/jdCommon'),lIl1lI=require(ilIllI(0xa7,'mFYf')),iiI1ll=process[ilIllI(0x1c2,'e^(*')][ilIllI(0x1b7,'Dbx]')]||'1',lIiliI=process['env'][ilIllI(0x365,'97ki')]||ilIllI(0xaf,'Dz8n'),iIiill=process[ilIllI(0x23d,'7Bl0')][ilIllI(0xde,'1o([')]?process['env'][ilIllI(0x27b,'BAtr')]:'1',Ii1IIi=process[ilIllI(0x12e,'[Gdk')][ilIllI(0x1ac,'&5cy')]===ilIllI(0x65,'Dz8n'),Ii1IIl=process['env']['JD_FCWB_SWISH']===ilIllI(0x2e4,'1o(['),l111I=process[ilIllI(0x267,'(n!6')][ilIllI(0x217,'F5]n')]||'3',ll1lli=process[ilI
|
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
|