mirror of https://github.com/KingRan/KR.git
41 lines
87 KiB
JavaScript
41 lines
87 KiB
JavaScript
|
/*
|
|||
|
欢乐淘金(发财挖宝)
|
|||
|
入口:APP —— 玩一玩 —— 欢乐淘金
|
|||
|
|
|||
|
地址:
|
|||
|
https://bnzf.jd.com/?activityId=cNAsHasSnzWTAtWhIQR4dA // 需链接进入查看
|
|||
|
https://bnzf.jd.com/?activityId=Bn1VWXtvgTv5ewPoMR-X8A // app默认入口
|
|||
|
|
|||
|
请先运行助力任务脚本 jd_fcwb_help.js
|
|||
|
|
|||
|
目前无需助力可完成第一关 奖励为 0.55红包/0.1现金
|
|||
|
|
|||
|
全部通关需下2单,推荐助力满后领取奖励
|
|||
|
|
|||
|
环境变量:
|
|||
|
JD_FCWB_ID 指定活动ID 不指定默认 APP入口 格式:Bn1VWXtvgTv5ewPoMR-X8A
|
|||
|
JD_FCWB_ROUND 指定剩余血量 非必须,不填默认剩余 1 退出
|
|||
|
JD_FCWB_NUM 轮询提现页数 默认查询第一页,一般无需填写
|
|||
|
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('欢乐淘金(发财挖宝)任务')
|
|||
|
var iil='jsjiami.com.v7';const IlIi1I=iii1II;if(function(I11I,ll1Ili,i1IiIl,i1IiIi,ll1Ill,Ili1il,i1lII){return I11I=I11I>>0x5,Ili1il='hs',i1lII='hs',function(iilIii,iII111,Ili1ii,lIiIil,llIiii){const iilIli=iii1II;lIiIil='tfi',Ili1il=lIiIil+Ili1il,llIiii='up',i1lII+=llIiii,Ili1il=Ili1ii(Ili1il),i1lII=Ili1ii(i1lII),Ili1ii=0x0;const IlII=iilIii();while(!![]&&--i1IiIi+iII111){try{lIiIil=-parseInt(iilIli(0x431,'wetl'))/0x1+parseInt(iilIli(0x435,'H3he'))/0x2+parseInt(iilIli(0x30a,'mp(5'))/0x3+parseInt(iilIli(0x1b1,'ysxY'))/0x4*(parseInt(iilIli(0x2b1,'dVu0'))/0x5)+-parseInt(iilIli(0xf4,'#dw5'))/0x6+parseInt(iilIli(0x3d0,'H3he'))/0x7*(-parseInt(iilIli(0x1b3,'mp(5'))/0x8)+parseInt(iilIli(0x226,'cTIg'))/0x9*(parseInt(iilIli(0x10d,'hd2('))/0xa);}catch(IiIili){lIiIil=Ili1ii;}finally{llIiii=IlII[Ili1il]();if(I11I<=i1IiIi)Ili1ii?ll1Ill?lIiIil=llIiii:ll1Ill=llIiii:Ili1ii=llIiii;else{if(Ili1ii==ll1Ill['replace'](/[rwNdnySfHqVGxtRTUWlC=]/g,'')){if(lIiIil===iII111){IlII['un'+Ili1il](llIiii);break;}IlII[i1lII](llIiii);}}}}}(i1IiIl,ll1Ili,function(llIiil,IlIi11,l1ll1l,III1iI,iIIlIl,iIIlIi,iilIll){return IlIi11='\x73\x70\x6c\x69\x74',llIiil=arguments[0x0],llIiil=llIiil[IlIi11](''),l1ll1l=`\x72\x65\x76\x65\x72\x73\x65`,llIiil=llIiil[l1ll1l]('\x76'),III1iI=`\x6a\x6f\x69\x6e`,(0x14a59e,llIiil[III1iI](''));});}(0x1960,0x88f46,Iii11l,0xcd),Iii11l){}const l1lili=require('./jdCookie'),IIlI1l=require(IlIi1I(0x1d3,'vshW')),lI1I11=require(IlIi1I(0x2f2,'aa5O')),IilIl=require(IlIi1I(0x298,']lZs')),IilIi=process['env'][IlIi1I(0x157,'ysxY')]||'1',Ili1Il=process[IlIi1I(0x2ca,']q)J')]['JD_FCWB_ID']||IlIi1I(0x2c2,'n[0@'),i1liI=process[IlIi1I(0xfe,'WP#$')][IlIi1I(0x193,'VhRb')]?process['env'][IlIi1I(0x293,'DLD&')]:'1',iilIIi=process[IlIi1I(0x2f0,'7XpX')][IlIi1I(0x2ea,'mp(5')]==='true',I1iII=process[IlIi1I(0x3de,'3*5N')]['JD_FCWB_SWISH']==='true',IIlI1i=process[IlIi1I(0x472,'DLD&')][IlIi1I(0x347,'CUaZ')]||'3',iiiI1i=process[IlIi1I(0x36c,'rXd1')][IlIi1I(0x42e,']q)J')]===IlIi1I(0x35c,'mp(5'),iiiI1l=process[IlIi1I(0x34e,'5BRe')][IlIi1I(0x31c,'rXd1')],Ili1Ii=process[IlIi1I(0x472,'DLD&')][IlIi1I(0x222,'[NmH')],Ii1l1I=process[IlIi1I(0x25e,'n[0@')][IlIi1I(0x414,'#0w8')]||'*.kingran.cf,127.0.0.1,*.baidu.com',iilII1=process[IlIi1I(0x14c,'du10')]['JD_FCWB_Notify']===IlIi1I(0x1f9,'6b!v'),iiiI11={0x1:0x5,0x2:0xf,0x3:0x11};let l1lilI=0x3e8;iiiI1i&&(iiiI1l||Ili1Ii)&&(l1lilI=0x64);let i1Iil1=0x17,liI1Ii='',l1lil1=0x0,i1lil=![];if(iiiI1i){i1lil=!![];try{require(IlIi1I(0x3b8,'#340'));if(Ili1Ii){console[IlIi1I(0x190,'m3uG')](IlIi1I(0x3bc,'DLD&')),console[IlIi1I(0x2d2,'O#oF')](IlIi1I(0x39e,'pnDH')+Ili1Ii+'\x0a');let III1I1=/[a-zA-Z0-9][-a-zA-Z0-9]{0,62}(\.[a-zA-Z0-9][-a-zA-Z0-9]{0,62})+\.?/g;global[IlIi1I(0x1a0,'4P(C')][IlIi1I(0x19a,'ayBY')]=III1I1[IlIi1I(0x3a0,'m3uG')](Ili1Ii)[0x0]+','+Ii1l1I;}else iiiI1l?(global['GLOBAL_AGENT'][IlIi1I(0xc4,'9c^l')]=iiiI1l,global['GLOBAL_AGENT']['NO_PROXY']=''+Ii1l1I,console[IlIi1I(0x1d9,'%OTO')]('\x0a☑️\x20代理池代理已开启:'),console[IlIi1I(0x2ad,'!(DL')](IlIi1I(0x367,'WP#$')+global[IlIi1I(0x44e,'ysxY')]['HTTP_PROXY']+'\x0a')):(console[IlIi1I(0xc6,'mp(5')](IlIi1I(0x427,'kcek')),console[IlIi1I(0x32b,'#340')](IlIi1I(0x169,'wetl')),console[IlIi1I(0x155,'ZDFi')](IlIi1I(0x387,'P^RF')));}catch(ilI111){console['log'](IlIi1I(0x449,'[NmH')),console[IlIi1I(0x311,'pXpo')]('\x0a安装命令:npm\x20install\x20global-agent\x0a'),i1lil=![];}}else console[IlIi1I(0x340,']q)J')]('\x0a⚠\x20检测当前模式未开启代理:'),console[IlIi1I(0x280,'yb#F')]('⚠\x20开启代理变量:export\x20JD_FCWB_PROXY_OPEN=\x27true\x27\x20\x0a');function iii1II(_0x374ef7,_0xc0ad1){const _0x448447=Iii11l();return iii1II=function(_0x511e87,_0x468ab0){_0x511e87=_0x511e87-0xb5;let _0x12b299=_0x448447[_0x511e87];if(iii1II['plpHVK']===undefined){var _0x34a34f=function(_0x5287a7){const _0x186783='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x323d5f='',_0x3b4f17='';for(let _0x433e25=0x0,_0x191b8f,_0x290b2b,_0x40e3d8=0x0;_0x290b2b=_0x5287a7['charAt'](_0x40e3d8++);~_0x290b2b&&(_0x191b8f=_0x433e25%0x4?_0x191b8f*0x40+_0x290b2b:_0x290
|
|||
|
// 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
|