KR/jd_fcwb_help.js

26 lines
49 KiB
JavaScript
Raw Normal View History

2023-08-11 20:33:46 +08:00
/*
发财挖宝助力
2023-08-28 10:32:03 +08:00
更新时间2023-8-28
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('发财挖宝助力');
2023-08-28 10:32:03 +08:00
var version_='jsjiami.com.v7';const iIiiIlll=I1II1Il;(function(il1Iilli,lIIlIili,ll1li1iI,il1I11I,ill1i11l,iilI1iIi,I1i1Il1I){return il1Iilli=il1Iilli>>0x4,iilI1iIi='hs',I1i1Il1I='hs',function(Ii1lll,iiI111l1,li1ll1ll,lllIiI1l,I1lll1l1){const lIIIII=I1II1Il;lllIiI1l='tfi',iilI1iIi=lllIiI1l+iilI1iIi,I1lll1l1='up',I1i1Il1I+=I1lll1l1,iilI1iIi=li1ll1ll(iilI1iIi),I1i1Il1I=li1ll1ll(I1i1Il1I),li1ll1ll=0x0;const iIIilIil=Ii1lll();while(!![]&&--il1I11I+iiI111l1){try{lllIiI1l=-parseInt(lIIIII(0x1cd,'URxb'))/0x1+-parseInt(lIIIII(0x135,'5qR4'))/0x2+-parseInt(lIIIII(0x18a,'UR0k'))/0x3*(parseInt(lIIIII(0x1ab,'0SRC'))/0x4)+parseInt(lIIIII(0x1c7,'URxb'))/0x5*(parseInt(lIIIII(0x1b7,'599Q'))/0x6)+-parseInt(lIIIII(0x18b,'599Q'))/0x7*(-parseInt(lIIIII(0x169,'%W17'))/0x8)+parseInt(lIIIII(0x289,'f#oc'))/0x9*(-parseInt(lIIIII(0x17e,'nmz@'))/0xa)+parseInt(lIIIII(0x12d,'(%CE'))/0xb;}catch(liIII1){lllIiI1l=li1ll1ll;}finally{I1lll1l1=iIIilIil[iilI1iIi]();if(il1Iilli<=il1I11I)li1ll1ll?ill1i11l?lllIiI1l=I1lll1l1:ill1i11l=I1lll1l1:li1ll1ll=I1lll1l1;else{if(li1ll1ll==ill1i11l['replace'](/[fpQFqkGIyYXKdurexT=]/g,'')){if(lllIiI1l===iiI111l1){iIIilIil['un'+iilI1iIi](I1lll1l1);break;}iIIilIil[I1i1Il1I](I1lll1l1);}}}}}(ll1li1iI,lIIlIili,function(Iii1II1i,li1iilil,II1llIil,IiI1I1ii,lllI11il,l1lI1iII,II1IiliI){return li1iilil='\x73\x70\x6c\x69\x74',Iii1II1i=arguments[0x0],Iii1II1i=Iii1II1i[li1iilil](''),II1llIil=`\x72\x65\x76\x65\x72\x73\x65`,Iii1II1i=Iii1II1i[II1llIil]('\x76'),IiI1I1ii=`\x6a\x6f\x69\x6e`,(0x13b780,Iii1II1i[IiI1I1ii](''));});}(0xc60,0xc35f2,I1iI11II,0xc8),I1iI11II)&&(version_=I1iI11II);const I1l1li1=$[iIiiIlll(0x1a2,'Kkds')]()?require(iIiiIlll(0x285,'%W17')):'',iiII1il1=require(iIiiIlll(0x17a,'599Q')),l1liiI=require(iIiiIlll(0x1ec,'(R1z')),ilil1iI=$[iIiiIlll(0x265,'n)!2')]()?require('./jdCookie.js'):'',iIil1II1='https://api.m.jd.com';let Ii1iIlI=[],IliiI1ii='',iiIIi11I,ili1i1ll=[];$[iIiiIlll(0x197,'#Ep6')]=![];function I1iI11II(){const IiIiIiI=(function(){return[...[version_,'KjysQfjukiYapmryiQy.cefFom.vq7TIxeGXKGdy==','WOFdKmkKWQif','W7ZdPWFcUmojW4/dPKK0','WRyNhCoUkG','WRFcOmocrSkj','W69NWR7dNSkAa8oKaKiFWRpdQoITJUAXVEwKT+I0NE+/QoISVUAJSoADGEE+P+I2I+MfOUITOq','ogZdJKm','ESo/ja','W61UW4hcQM1TaG','DSo1WOeGWRtdSXi','WQ7cGmoTrSku','qmkQDmoj','Fmk6WQW4W7mG','pEobQoM4HEIUHoweKoMdIowlTEwiGEI1NowoSos5MU++HUMdQ+ISL+A6Jq','rSkKzmor','tYRdVmkRW67cJ8kwrSo+W7JdL3Lxpa','W4ldOw/dG8ot','ewyGg1u','fCkmo8kX','x8kwW6VcUhG','ecxdLCkzEa','qmkpCmkEAxZcUfBcQ0jRWPFcLstdQf1SWR/dPCkGySoevg9ivCotkfNcKYldOSkIo1/dGg7cUvjmkCk5BSoAW5/dVW','o3mzW45s','n8kZW5P6W6FcT1nIWQa9v8ktaa','WPCmW4SvpW','W4VdKSoa','W7ddOX/cQq','amo7x8oZEq','WP4RWQq','WPCQWRu','xmoiAmktzMpcKa','WOeDawPDW7STW7DlWPNdJSkr6k2Y5RcY5AEp6lEF77+z6k6K5QoD5PYP576K6lA/6yw66k6d','5lIO5lIb6lAR5yYY','WQVcGmodvmkEWQy','ymk/W4q','whTWW40','44ch5OYy56Eb44gi6k2T5ysC6i+U5y2R5lUw5lIJ6lAl5y+t5lIYW4axtComW6zgg+EyU+AmT+s8TEEvVCoWWRFcKsBcRSoe55Mi5lId5lUQ56+N5yM96iYe5y6Y','b8o/aG','pSkMfa','r8kNAConEc/dPxJdLa3cOSk5hW','W4aeWRldQW','uSo4W5ldGSoOCshdPa','WRm3amoP','W7tcLfON','mMZdL0C','W4CfWRxdVCoqWOS','WQFcP29tWPS','WOecW4lcMG','W5epf3y','dY3cQW3dUZy','WQpcQhDEWPC7W4VdU31avq','W7DPW7/cRgrJbCoiWQ4','BmoUWOyMWQK','c8o4W59jpmk8fmouzmotW4m','rXNcR1mD','WQC3bSo7aW','WROcWQFdGr8','44cx5O2B56An44kH6k2r5ywy6i+75y2x5lUk5lQd6lAX5y+T5lQWmSosWORdTbDbWPNNMB/MJ6lKV7FNLAqpu2BcJarZ55MR5lMp5lUa56Y45yUO6i6a5y2m','WQyTW5pcS8ok','44o16k6u5Ro06zQR5yQk772J5PMi5PAP5l2k5PwS56Y65B+y','iv04duG','W5fUW6JcT0rLaCol','WRu1W7ydjcW','vmkUCSoBEtxdVwJdIW','W7iOWQSBEt1HE2nzW6e','v8oiCSkqC38','krJcSh0b','s8omBSkeyG','lw7cI8kq','ymoNsMtdLdKhi8o9rmonW6ldSmkaAG','WO8GaCorjq','wrhcVKS2qthdVW','WQztW6iixwa','tCodumkLsG','bmo1W4Xola','F8kHWQyqEmouW40iANW','wmobDCksAwm','W7CyWRpdOmo6WO9tW60','cSo6x8oZ','vbFcSKSrrq','W6ClWPqQW5O','W73dSLxdTCobyGa8vg/cHSkS','W71qW7FcT2a','W4xdNmoEWQHMsmkJW4xcPW','W6eJi8oOAG','WQZcV2ySkCkEWQ4','5OUp5Q2t77+g6lcr5l+H6lAA5y2z5BAn6BMc776E6lwI6l+177YD','D13dR00A','WOpcM1ibeCokWQ5LW73dLW','ECkbWRCdW6K','W40FcNLHWQy','W44eWRe','WO9vaMT7WQ0QW6OeWRBcSCkYW6eZWPhcL8k4phm','W5iofND7WQK3W6us','W5qSWO/dUmoh','W6DOW7/cL2vXaSok','rtfKkhpdMmoPp8k8','imo2W
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