mirror of https://github.com/KingRan/KR.git
22 lines
94 KiB
JavaScript
22 lines
94 KiB
JavaScript
|
/*
|
|||
|
JOY_COIN_MAXIMIZE = 最大化硬币收益,如果合成后全部挖土后还有空位,则开启此模式(默认开启) 0关闭 1开启
|
|||
|
|
|||
|
请确保新用户助力过开工位,否则开启游戏了就不算新用户,后面就不能助力开工位了!!!!!!!!!!
|
|||
|
|
|||
|
如需关闭请添加变量,变量名:HELP_JOYPARK,变量值:false
|
|||
|
|
|||
|
此游戏黑号严重,所以请自行定时,火爆后停止放置一段时间恢复
|
|||
|
|
|||
|
做合成 购买等,无助力,无任务
|
|||
|
|
|||
|
============Quantumultx===============
|
|||
|
|
|||
|
[task_local]
|
|||
|
#特价版-牛牛乐园
|
|||
|
1 1 1 1 * jd_tj_nnly.js, tag=特价版-牛牛乐园, enabled=true
|
|||
|
*/
|
|||
|
const $ = new Env('特价版-牛牛乐园');
|
|||
|
var version_='jsjiami.com.v7';const iiilI1=iii1II;(function(lill,Ill1lI,Ii1lI1,IliliI,iliI1I,ii1iII,ll1111){return lill=lill>>0x3,ii1iII='hs',ll1111='hs',function(liIl11,i11IIl,IIl11I,i11IIi,Il1ii1){const l1Ill1=iii1II;i11IIi='tfi',ii1iII=i11IIi+ii1iII,Il1ii1='up',ll1111+=Il1ii1,ii1iII=IIl11I(ii1iII),ll1111=IIl11I(ll1111),IIl11I=0x0;const illII1=liIl11();while(!![]&&--IliliI+i11IIl){try{i11IIi=parseInt(l1Ill1(0x275,'5h)A'))/0x1*(-parseInt(l1Ill1(0x375,'VMtu'))/0x2)+-parseInt(l1Ill1(0x522,'&rZy'))/0x3+-parseInt(l1Ill1(0x54d,'lGjL'))/0x4*(-parseInt(l1Ill1(0x3b1,'5z7k'))/0x5)+-parseInt(l1Ill1(0x2ae,'yFPX'))/0x6+-parseInt(l1Ill1(0x340,'3MNF'))/0x7*(parseInt(l1Ill1(0x23d,'Dhja'))/0x8)+parseInt(l1Ill1(0x380,'*snX'))/0x9*(parseInt(l1Ill1(0x432,'V9@B'))/0xa)+parseInt(l1Ill1(0x2b0,'Olws'))/0xb;}catch(Il1iii){i11IIi=IIl11I;}finally{Il1ii1=illII1[ii1iII]();if(lill<=IliliI)IIl11I?iliI1I?i11IIi=Il1ii1:iliI1I=Il1ii1:IIl11I=Il1ii1;else{if(IIl11I==iliI1I['replace'](/[MEgfxBbnPeDYqdtFJl=]/g,'')){if(i11IIi===i11IIl){illII1['un'+ii1iII](Il1ii1);break;}illII1[ll1111](Il1ii1);}}}}}(Ii1lI1,Ill1lI,function(iIiii,IIiIIl,Il1iil,iIiil,IIiIIi,lilI,ll111i){return IIiIIl='\x73\x70\x6c\x69\x74',iIiii=arguments[0x0],iIiii=iIiii[IIiIIl](''),Il1iil='\x72\x65\x76\x65\x72\x73\x65',iIiii=iIiii[Il1iil]('\x76'),iIiil='\x6a\x6f\x69\x6e',(0x1394be,iIiii[iIiil](''));});}(0x650,0x873ab,Iii11l,0xcc),Iii11l)&&(version_=Iii11l);const III1II=$[iiilI1(0x253,'V9@B')]()?require(iiilI1(0x4d6,'iq63')):'',l1I1II=$['isNode']()?require(iiilI1(0x238,'3MNF')):'',iIIlil=require('./function/krgetToken'),IiIiI1=require(iiilI1(0x4fd,'SBJ8'));let iIIlii=[],llIII1='',IiIiI=![],iill1I=0x0;if($['isNode']()){Object[iiilI1(0x341,'3dpR')](III1II)['forEach'](I1lI1I=>{const ll111l=iiilI1;iIIlii[ll111l(0x3dc,'L)9e')](III1II[I1lI1I]);});if(process[iiilI1(0x465,'5h)A')]['JD_DEBUG']&&process[iiilI1(0x38d,'ki5Y')][iiilI1(0x274,'5h)A')]==='false')console[iiilI1(0x4fa,'KCT6')]=()=>{};}else iIIlii=[$['getdata'](iiilI1(0x490,'GVtG')),$['getdata'](iiilI1(0x240,'$ZO6')),...l1iiII($['getdata']('CookiesJD')||'[]')[iiilI1(0x500,'$ZO6')](lIi1i1=>lIi1i1[iiilI1(0x36e,'yFPX')])][iiilI1(0x2d4,'Q4&G')](l1l11=>!!l1l11);$['JOY_COIN_MAXIMIZE']=process[iiilI1(0x4dd,'TBOb')][iiilI1(0x4e6,'jqL6')]==='1',$[iiilI1(0x330,'AaVc')](iiilI1(0x34c,'5h)A')+($[iiilI1(0x201,'ip[l')]?'默认开启':'关闭')+'\x20\x20');let Illi1=Date[iiilI1(0x565,'OC]S')]();function iii1II(_0x16a01e,_0x127590){const _0x17f2e9=Iii11l();return iii1II=function(_0x171cf6,_0x2c698e){_0x171cf6=_0x171cf6-0x1c8;let _0x4fc62a=_0x17f2e9[_0x171cf6];if(iii1II['CKusXA']===undefined){var _0x58104c=function(_0x22d69a){const _0x26cb59='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x24eda9='',_0x4580ea='';for(let _0x248f2e=0x0,_0x1e9b69,_0x44798a,_0xca7e9a=0x0;_0x44798a=_0x22d69a['charAt'](_0xca7e9a++);~_0x44798a&&(_0x1e9b69=_0x248f2e%0x4?_0x1e9b69*0x40+_0x44798a:_0x44798a,_0x248f2e++%0x4)?_0x24eda9+=String['fromCharCode'](0xff&_0x1e9b69>>(-0x2*_0x248f2e&0x6)):0x0){_0x44798a=_0x26cb59['indexOf'](_0x44798a);}for(let _0x18e969=0x0,_0x4391fe=_0x24eda9['length'];_0x18e969<_0x4391fe;_0x18e969++){_0x4580ea+='%'+('00'+_0x24eda9['charCodeAt'](_0x18e969)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x4580ea);};const _0x5cca1f=function(_0x37a27f,_0xc97f34){let _0x28279a=[],_0x7b53e8=0x0,_0x5b359a,_0x30d26d='';_0x37a27f=_0x58104c(_0x37a27f);let _0x4b1c2e;for(_0x4b1c2e=0x0;_0x4b1c2e<0x100;_0x4b1c2e++){_0x28279a[_0x4b1c2e]=_0x4b1c2e;}for(_0x4b1c2e=0x0;_0x4b1c2e<0x100;_0x4b1c2e++){_0x7b53e8=(_0x7b53e8+_0x28279a[_0x4b1c2e]+_0xc97f34['charCodeAt'](_0x4b1c2e%_0xc97f34['length']))%0x100,_0x5b359a=_0x28279a[_0x4b1c2e],_0x28279a[_0x4b1c2e]=_0x28279a[_0x7b53e8],_0x28279a[_0x7b53e8]=_0x5b359a;}_0x4b1c2e=0x0,_0x7b53e8=0x0;for(let _0x58ace1=0x0;_0x58ace1<_0x37a27f['length'];_0x58ace1++){_0x4b1c2e=(_0x4b1c2e+0x1)%0x100,_0x7b53e8=(_0x7b53e8+_0x28279a[_0x4b1c2e])%0x100,_0x5b359a=_0x28279a[_0x4b1c2e],_0x28279a[_0x4b1c2e]=_0x28279a[_0x7b53e8],_0x28279a[_0x7b53e8]=_0x5b359a,_0x30d26d+=String['fromCharCode'](_0x37a27f['charCodeAt'](_0x58ace1)^_
|
|||
|
// 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
|