KR/jd_fcwb_help.js

26 lines
43 KiB
JavaScript
Raw Normal View History

2023-08-11 20:33:46 +08:00
/*
发财挖宝助力
更新时间2023-8-11
2023-08-11 20:33:46 +08:00
活动入口京东APP-发财挖宝
2023-08-11 21:02:37 +08:00
基本都是火爆
2023-08-25 16:40:16 +08:00
入口:京东APP-搜索 玩一玩 点击 欢乐淘金
2023-08-11 21:02:37 +08:00
建议手动进入挖一下
2023-08-11 20:33:46 +08:00
变量
//export krWait="秒" //自行填写变量,延时多长时间。(不填写默认延时0.2秒)
//export fcwbhelpnum="人数" //自行填写变量,需要邀请多少人停止。(不填写默认邀请60停止)
cron:7 7 7 7 *
============Quantumultx===============
[task_local]
#发财挖宝助力
cron:7 7 7 7 * jd_fcwb_help.js, tag=发财挖宝助力, enabled=true
*/
const $ = new Env('发财挖宝助力');
var version_='jsjiami.com.v7';const ilI11i=iii1II;(function(liliii,iIiilI,iIiiil,iIiiii,ilIlIi,ilIlIl,l1lI1I){return liliii=liliii>>0x2,ilIlIl='hs',l1lI1I='hs',function(ll1llI,i11lIl,l1lI11,lI1iii,i11lIi){const iIiiiI=iii1II;lI1iii='tfi',ilIlIl=lI1iii+ilIlIl,i11lIi='up',l1lI1I+=i11lIi,ilIlIl=l1lI11(ilIlIl),l1lI1I=l1lI11(l1lI1I),l1lI11=0x0;const ll1ll1=ll1llI();while(!![]&&--iIiiii+i11lIl){try{lI1iii=parseInt(iIiiiI(0x228,'XN(S'))/0x1*(-parseInt(iIiiiI(0x331,'6%&['))/0x2)+parseInt(iIiiiI(0x2c7,'@swh'))/0x3*(-parseInt(iIiiiI(0x1ee,'d[^K'))/0x4)+parseInt(iIiiiI(0x25a,'Lpi^'))/0x5*(-parseInt(iIiiiI(0x26a,'#ml]'))/0x6)+parseInt(iIiiiI(0x27a,'(zE5'))/0x7*(-parseInt(iIiiiI(0x2fb,'(zE5'))/0x8)+parseInt(iIiiiI(0x2fe,'1]yu'))/0x9*(-parseInt(iIiiiI(0x240,'#ml]'))/0xa)+parseInt(iIiiiI(0x28f,'o$0X'))/0xb*(parseInt(iIiiiI(0x338,'1^t*'))/0xc)+-parseInt(iIiiiI(0x2b1,'UDaZ'))/0xd*(-parseInt(iIiiiI(0x317,'dV27'))/0xe);}catch(lilil1){lI1iii=l1lI11;}finally{i11lIi=ll1ll1[ilIlIl]();if(liliii<=iIiiii)l1lI11?ilIlIi?lI1iii=i11lIi:ilIlIi=i11lIi:l1lI11=i11lIi;else{if(l1lI11==ilIlIi['replace'](/[IknuJWYGUrLVpXbAxytER=]/g,'')){if(lI1iii===i11lIl){ll1ll1['un'+ilIlIl](i11lIi);break;}ll1ll1[l1lI1I](i11lIi);}}}}}(iIiiil,iIiilI,function(lIilli,I1iiii,iiI1iI,I1iiil,Illll1,lI1iil,lIilll){return I1iiii='\x73\x70\x6c\x69\x74',lIilli=arguments[0x0],lIilli=lIilli[I1iiii](''),iiI1iI='\x72\x65\x76\x65\x72\x73\x65',lIilli=lIilli[iiI1iI]('\x76'),I1iiil='\x6a\x6f\x69\x6e',(0x138e1c,lIilli[I1iiil](''));});}(0x300,0xe63bb,Iii11l,0xc2),Iii11l)&&(version_=Iii11l);const iI1Ill=$['isNode']()?require(ilI11i(0x2a2,'^Lce')):'',lilI1=require(ilI11i(0x2f0,'1^t*')),IIIi1=require(ilI11i(0x1f6,'R]4n')),i1llli=$[ilI11i(0x35e,'Mq8^')]()?require('./jdCookie.js'):'',i1llll=ilI11i(0x28b,'@#Ys');let iI1Ili=[],llIIiI='',iI1111,IIIl1=[];$[ilI11i(0x236,'E8nY')]=![];let ii1ii=ilI11i(0x269,'Mq8^');var Iii1=new Date()['getTime']();let I1I1lI=ilI11i(0x233,'0*Y@'),ii1il='';I1I1lI=$[ilI11i(0x33d,'EYto')]()?process[ilI11i(0x21e,'1^t*')][ilI11i(0x340,'qXLA')]?process[ilI11i(0x1f1,']BtA')][ilI11i(0x2f1,'D5[w')]:''+I1I1lI:$['getdata'](ilI11i(0x34d,'#ml]'))?$['getdata']('krWait'):''+I1I1lI,CryptoJS=$[ilI11i(0x2ab,'mMvK')]()?require(ilI11i(0x293,'2@b7')):CryptoJS;if($[ilI11i(0x33b,'Zk7$')]()){Object[ilI11i(0x2ee,'Be8r')](i1llli)[ilI11i(0x327,'@#Ys')](IIIii=>{const ilI11l=ilI11i;iI1Ili[ilI11l(0x2c5,'5bn&')](i1llli[IIIii]);});if(process[ilI11i(0x29a,'Zk7$')][ilI11i(0x337,'mMvK')]&&process[ilI11i(0x24a,'dV27')][ilI11i(0x34b,'kVSP')]==='false')console[ilI11i(0x1fb,'(zE5')]=()=>{};}else iI1Ili=[$[ilI11i(0x2c9,'@swh')](ilI11i(0x25f,']BtA')),$[ilI11i(0x201,'#ml]')](ilI11i(0x251,'Lpi^')),...ii1iI($[ilI11i(0x255,'(zE5')](ilI11i(0x23a,'XN(S'))||'[]')[ilI11i(0x29c,'6bQ(')](iI111i=>iI111i['cookie'])][ilI11i(0x2ce,'o$0X')](I1I1l1=>!!I1I1l1);let l1iIlI='60',iI111I='';l1iIlI=$[ilI11i(0x35e,'Mq8^')]()?process[ilI11i(0x298,'hkwQ')][ilI11i(0x2f7,'nhu#')]?process['env'][ilI11i(0x362,'o$0X')]:''+l1iIlI:$[ilI11i(0x2c9,'@swh')](ilI11i(0x2bc,'E2TS'))?$['getdata'](ilI11i(0x248,'OaiX')):''+l1iIlI,iI111I=$[ilI11i(0x20b,'R]4n')]()?process[ilI11i(0x34e,'DovO')]['nolanh5st_token']?process['env']['nolanh5st_token']:''+iI111I:$[ilI11i(0x26c,'6bQ(')](ilI11i(0x1ef,'7TGv'))?$['getdata'](ilI11i(0x304,'dV27')):''+iI111I,!(async()=>{const li1I=ilI11i,iI111l={'Szsep':function(i1lIii,III11i){return i1lIii(III11i);},'BkzCh':function(i1lIil,III11l){return i1lIil==III11l;},'BLVWP':function(llIl1i,llIl1l){return llIl1i+llIl1l;},'yJANE':li1I(0x2a9,'5bn&'),'QlMXN':function(IiiII,Iiil){return IiiII==Iiil;},'euPPo':function(IIIli,ii1i1){return IIIli+ii1i1;},'eEdVN':function(Iiii,llIl11){return Iiii(llIl11);},'FIFes':'https://bnzf.jd.com','MQinF':function(IIIll,I1I1il){return IIIll!==I1I1il;},'VUNlk':li1I(0x2f2,'Be8r'),'qVXjR':li1I(0x30d,'EYto'),'FrWQa':'https://bean.m.jd.com/bean/signIndex.action','faJra':function(l1llii,liII1){return l1llii<liII1;},'jZcbQ':function(I1I1ii,l1llil){return I1I1ii(l1llil);},'ULjlS':function(IIIlIi,llIl1I){return IIIlIi===llIl1I;},'PTQsX':li1I(0x31b,'1]yu'),'CCQxF':function(i1lIl1){return i1lIl1();},'CgJJI':functi
2023-08-11 20:33:46 +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