KR/jd_wwzy.js

22 lines
96 KiB
JavaScript
Raw Permalink Normal View History

2023-08-14 18:37:33 +08:00
/*
JOY_COIN_MAXIMIZE = 最大化硬币收益如果合成后全部挖土后还有空位则开启此模式默认开启 0关闭 1开启
请确保新用户助力过开工位否则开启游戏了就不算新用户后面就不能助力开工位了
如需关闭请添加变量变量名HELP_JOYPARK变量值false
此游戏黑号严重所以请自行定时火爆后停止放置一段时间恢复
做合成 购买等无助力无任务
============Quantumultx===============
[task_local]
#京东版-汪汪庄园
1 1 1 1 * jd_wwzy.js, tag=京东版-汪汪庄园, enabled=true
*/
const $ = new Env('京东版-汪汪庄园');
2023-08-26 14:12:35 +08:00
var version_='jsjiami.com.v7';const ll1IIi=iii1II;(function(lIiIII,i1i,I1Il1l,I1Il1i,i1l,IlIiII,iIliI){return lIiIII=lIiIII>>0x1,IlIiII='hs',iIliI='hs',function(i1IlII,ilIii1,ll1III,ll1II1,l11lii){const i1IlIl=iii1II;ll1II1='tfi',IlIiII=ll1II1+IlIiII,l11lii='up',iIliI+=l11lii,IlIiII=ll1III(IlIiII),iIliI=ll1III(iIliI),ll1III=0x0;const IIlIii=i1IlII();while(!![]&&--I1Il1i+ilIii1){try{ll1II1=-parseInt(i1IlIl(0x2a7,')uU['))/0x1*(parseInt(i1IlIl(0x26c,'Devv'))/0x2)+-parseInt(i1IlIl(0x435,'5EiF'))/0x3*(-parseInt(i1IlIl(0x328,'g!O&'))/0x4)+-parseInt(i1IlIl(0x392,'GgPL'))/0x5+parseInt(i1IlIl(0x294,'GgPL'))/0x6+parseInt(i1IlIl(0xd0,'$U2B'))/0x7+-parseInt(i1IlIl(0x3d2,')uU['))/0x8+-parseInt(i1IlIl(0x2a4,'vFTP'))/0x9;}catch(l11lil){ll1II1=ll1III;}finally{l11lii=IIlIii[IlIiII]();if(lIiIII<=I1Il1i)ll1III?i1l?ll1II1=l11lii:i1l=l11lii:ll1III=l11lii;else{if(ll1III==i1l['replace'](/[EBPyngMJNDKUVLTRbQ=]/g,'')){if(ll1II1===ilIii1){IIlIii['un'+IlIiII](l11lii);break;}IIlIii[iIliI](l11lii);}}}}}(I1Il1l,i1i,function(iIllli,iIlll1,ilIiiI,I1Il1I,IIlIil,l11llI,i1IlIi){return iIlll1='\x73\x70\x6c\x69\x74',iIllli=arguments[0x0],iIllli=iIllli[iIlll1](''),ilIiiI='\x72\x65\x76\x65\x72\x73\x65',iIllli=iIllli[ilIiiI]('\x76'),I1Il1I='\x6a\x6f\x69\x6e',(0x13b196,iIllli[I1Il1I](''));});}(0x188,0xa5c8b,Iii11l,0xc6),Iii11l)&&(version_=Iii11l);function Iii11l(){const Ili1=(function(){return[version_,'gnjgLsTEjEiTamVNiK.ELcBoMmPU.RyvbD7QJPPN==','W7BdUaJdLmo5WOy','Bx3dIxjNW5O','iCo9WQG','W4jWkSkg','xrpcIr7cJa','W5rItCk7W6NcKmk0vCor','BxhdV1jr','bYHdxeHPW6fKW6v+WPdcGq','WPXiWQubpG','W5BdQXhdVSot','lYKpoEISLEAYL+wLS+I2Vo+/RUIUKUAHGEADKoE8KUI3QoMeIEITQa','WONcU8kSW6i','44oWWQWqWQVdSCoiWOq','x8kpkCouW4e','jSkJWPOn','WO3dOXtcGCoNW58','zHSrh8kgWRa','WQzfFmkVAa','vw11WPK','dxCWdHLdzCozW4b+W7FdGmkTW4hdJ8o5','fSkfWQekxa','W7ZdQdy','vSo3sG','WPBdRrRcSa','kCketuVcVSowWRr3WOVcS1TIW5beyCooW53ORzdMSz3LPlFOT6pVVzdOR4tMOy7MNz/NVONOTipPHjBORj0','wmoStmo5W47dOa','uZLmW6v/','WRujWRWzWR4','5O2T546Y54+r6ywr772S5AwV6lENWOa','W5z+j8kx','W5bOrG','wmoOrmoUW6hdOa','mSoqW5SeBW','p8oAWOLyWOS','W5FdHqldMhW','g3q6hG','c8kbh8oefa','WQtdPmkR','DSktk8onWRu+WRpdQmkeWOiYFWdORAhMS6NLPktOTOpVV73OR5hMO5lMNlpNV5NOTRdPHlBORka','WQ8UWR02WQ8','W4/cLHLku8o+ksHw','W6hcIK3cIq','W67cQZfiAW','W7VcH8ohmLm','l8ooWPxdG8ky','bYTPW6z4','W7RcHem','z8kWC0/cNq','fmk0oW','5OQu5yIg772N','WRWKW44','nCkyimoI','AIzVW6HrzCkzW6BcLGddGSkBW60','bmovWRBdJmkA','vZbiW799','WRyYW5aMW7tcUmkaW6FcOgO4E8k7fmoj','iCo3WQfzWPWz','W4XbySk9','WQ/dNea2','WRVdNCk1BXBcSmkQm8oNW4BcICkvuW','W69WfSoomW','v8kJfmoFW58','W59yfSk/jW','W45EDSk0ia','kSk2WPOCBuCfosymWP0qW4W5W4uQWQqhW5HF','W6NdLHFdOmoc','ng1kW6XNWQBdTmk8','jLK+iqq','tIX/W6r1','WORcSxvaWP/cNW','hc92W7C','W4PTe8oRpdhcU8oZWPLUpmkWwZNdTW','jSk6pmoR','mSosw8orWR3dN0tcGa','Bs5/','W6b0aCkdjq','W6VdGtxdHSou','gmouWOe3iM96','Bs5/W7jkEq','W5RdQIiOW4a','WQ4jWRSPWP8K','W5qmASk9l8ohWOSDfa','W6lcLCkoWR7dUG','f8oRxmoPWQK','d8o/y0/cVW','kmo+WRL9WQq','eZLmFu92','WOZdVSoBWQRdIwC','WOZdVSoB','rSk4pConW53dTmoK','WRzvvSkT','mmkJWOaiCra','i8oRWOrUWR0','lmoJFCoJWRi','WPddNSoKWR7dIW','v2n/','i8oCyLNcUby','smoWx8oIW6hdS8obc8o0','W4hcVCkNWPhdRce','l8opsSotWP3dMudcG8kS','W59+oSk2bCo3','r8kOnw0Qka','WPSdW6OkW48','wmk+W7/dJSkAW6Wj','zmkjamkoWPBdK2JcTCk+WQK','aZPRW7mUj1NcIqldUmkeW48vW47cKCklW6jzWQ7dH2KeWPuKA8o+WRZcU8oLW4NcR8oZ','W5ZcS8k3WQe','W7/cNtrzwW','fCoOWOBdS8k5W506','WRT9WO0lkG/dNtakpSkaW4BdPmkIW7xcU8ke','ecXFEL8','W6JdNqy5W5y','nmkOWPO8FW','s8k5W6ddKSkqW6G','WPBcRSkXW6zBWOX0WRn1rmkLbSkikSkPWQddRJ0tW6S','b8kZbCofda','5OUU5yMf77+e','W6rZg8oNaa','5PEB5z205PMW6kwG6zsvka','5Aw46lAw5QY65PwT5AE2772v6yki5ywD5Q2J5BYK54+y77Yc6lEN5yEr77YK','WQTBW6ixjaVdPtaamSkpW4/dJmoEW5hdKSkRwCkGiCoWW7S','WOJdQeK','W4edCCkAkWVdTmkHa8oRW5hdQwm3AoIVJ+AZHUwKUEI0GU+/VUIUGUAIVEAEUEE/VUI1OEMfSUISGW','ECkRWQfzWOebW4hdPa','gs9XW6D7zq','fSo/z8oWWRZdP3BcTCkuWRtcIG','dJWPWRqsWRxdPhXq','acLOW5X9zGdcGXNdUCkXWOGq','W5H0mmkbmmoFWOu','WQFdMWRdJgxcRq','bGL7Ee8','W5fTbG','W4eonEI3K+woLG','mSkWWOCwEZ9lzsi1WPa','WQ1Bwa','pCoisCo4WOq','5lU15z+Q5A2j5OQg5lQU7763','omkwkCoI','W6JdIcucW7ZcJvddUSofgmoGWQbp','gSogBxpcPa','WQpdIuaNmCoMrrZdIqJcQSkDW64xCSkws8
2023-08-14 18:37:33 +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