KR/jd_superLeague.js

11 lines
41 KiB
JavaScript
Raw Normal View History

2023-11-02 13:05:08 +08:00
/*
京东11.11魔法开启
cron "55 18 * * *" script-path=jd_superLeague.js, tag=京东11.11魔法开启
*/
const $ = new Env('京东11.11魔法开启')
var version_='jsjiami.com.v7';const llIIiI=iii1II;(function(lilII,IIIiI,iii1i1,IllIll,i1lllI,llIIi1,iI1IlI){return lilII=lilII>>0x2,llIIi1='hs',iI1IlI='hs',function(l1i1Il,ill1I1,l1i1II,ili111,Ii1I11){const iI1Ili=iii1II;ili111='tfi',llIIi1=ili111+llIIi1,Ii1I11='up',iI1IlI+=Ii1I11,llIIi1=l1i1II(llIIi1),iI1IlI=l1i1II(iI1IlI),l1i1II=0x0;const IllIli=l1i1Il();while(!![]&&--IllIll+ill1I1){try{ili111=-parseInt(iI1Ili(0x22b,'YN!]'))/0x1*(-parseInt(iI1Ili(0x157,'0K5g'))/0x2)+-parseInt(iI1Ili(0xff,'9dfZ'))/0x3+parseInt(iI1Ili(0x1db,'e40n'))/0x4+parseInt(iI1Ili(0xcc,'BnMj'))/0x5*(parseInt(iI1Ili(0xe7,'4TWa'))/0x6)+-parseInt(iI1Ili(0x1b2,'h43K'))/0x7+-parseInt(iI1Ili(0x158,'SnU!'))/0x8*(parseInt(iI1Ili(0xf6,'BnMj'))/0x9)+parseInt(iI1Ili(0x188,'e40n'))/0xa;}catch(ii1Ii){ili111=l1i1II;}finally{Ii1I11=IllIli[llIIi1]();if(lilII<=IllIll)l1i1II?i1lllI?ili111=Ii1I11:i1lllI=Ii1I11:l1i1II=Ii1I11;else{if(l1i1II==i1lllI['replace'](/[RVYrOwbDyPgGIXEAUQW=]/g,'')){if(ili111===ill1I1){IllIli['un'+llIIi1](Ii1I11);break;}IllIli[iI1IlI](Ii1I11);}}}}}(iii1i1,IIIiI,function(ii1Il,l1iII,iI1Ill,lilI1,IIIi1,i1llli,i1llll){return l1iII='\x73\x70\x6c\x69\x74',ii1Il=arguments[0x0],ii1Il=ii1Il[l1iII](''),iI1Ill=`\x72\x65\x76\x65\x72\x73\x65`,ii1Il=ii1Il[iI1Ill]('\x76'),lilI1=`\x6a\x6f\x69\x6e`,(0x145ad6,ii1Il[lilI1](''));});}(0x2f0,0x86e98,Iii11l,0xbe),Iii11l)&&(version_=llIIiI(0xe2,'@3NB'));const iIIiiI=$[llIIiI(0x175,'Gt3x')]()?require(llIIiI(0x130,'MT[M')):'',liiI1i=$['isNode']()?require('./jdCookie'):'',ililIi=require('./function/krgetH5st'),lilIIl=require('./function/jdCommon');function Iii11l(){const Iiil=(function(){return[...[version_,'EbjWswYjIAiyXVaERmgiDOQ.cYoQPmry.GvUrU7Q==','iSoJW6C','EmozW4zXrmkduSkuW6S','h8k3Fc3cK8kWDSosW6tcG8oQbJ8b','WRymWPq','W7lcQ3S7WOu','smoNjuldMG','v8k8rmo0fa','WRK0W43cN3pdMq4','CCkuWQVcKCotW500WRdcUCk4W4ldIMOQ','wEIVS+MgKEAwIEEBQ+w/UoInOowpVSkMW5JdPhakFCowndaRW6WyW6PaW7RdPrRcL8kdmCkpeSoVWRBdNCknWR9wDmk4y8kHy8oTW5nLWR4lg03cOGrzWRm','wmoMWRZdJuC6','vmosWPVcKSkMWO3dSKufW7yEFa/dTG','WRSaWOFcHrv7FSknB8kTW7vKW74acW7dTCooWRG','sSo9imoRfW','5lQn5lUK6lEP5y+/','W40ChW','juXQxNS','WQZdJ1CbyW','s0Xc','6lY85ywG6AA86AcX5AEQ6lwafa','tSo6n0hcMmk4pW','fGlcTSkwWPBcICoyyvtdNG','ySkDCSoacq','mGddSwpdQW','iGhcH8kfWQVcG8o5Bq','tCkxWQHnWQqT','W5RdQmoPW6CQWQO','kWrQ','w8o+lw3dGSkM','bSk0WOTdFW','aeRdNCoOuG','B1ZcICkj','nKi5tmov','W4eQwKDw','cgxdLmoSAq','hSoagX8Fk8kwW4hcJSo8CCoOla','5A+a5OM15lIh5yMJW47MIPFLP4tMRRVMLzBVVRa','gSkTW7NdLmogkthcSgbdW4qdECo4h0C8W6K','BCooWORcLmknWP7dPMm','q0XlWPu','C8oramoNcq','sh8PWRyXACodW57cTCkEBa','iaRcImk2WODyW6VdMu7dI8o1ySodW7a','aclcUYhcHG3dGIuYWO1HW6FdTxNdG8oGmSkGtmoA','W4CkfMbc','fWpdR8oqnSoU','WRZdKSo4','nMJdOSo6F8kMWQ4yoCk6ESoyB8k5B8kyW7ZdVmouqG','5lM25lM/5P++5yMn5zIl6k6T6zEK5PAu5O2K5lUK56Uq77Yy6k2L5QkH5P6A6iAc6lIX6kYc5AEs576s57QF5OcP5ywS','WQOrWPRcLGzrzCkkBmk3W41AW7mmgG','hHdcVbtcOq','attdNmoLcq','W7zyFSkwkmke','WOfisaVcTq','pcVdVmo0eW','t8oyWO3dIIWV','hX7dO0tdUW','c1LwE1i8','zYtcSGaM','nKldGI4Eg0GIiq','csHyc0S','x8kyw0r/CmotW6BcGq','cCk2WR7cVJZdGMy','pmkN5AEw6lAlBdlLJlVLMlZcLZu','C2pcT8k7WOS','lmk4WQ9pza','W5RdTmoT','CCkuWRG','w07dIMfZ','gCkRyJdcL8kVzSk/W6/cJCoPsYXf','W6DjFmkBlmkuWRFcISkht8oFA8kvWReYW7tcICo5nmonW6iulSkSWOdcTMxdUcCXzrTF','s0VdNN5jWRmbWO8','vmoCWRJdONa','q0jrWPe','AbS5','hXddQCo+lq','fYLVW6nTnSkfW4lcISkjFmo3jq','s8k7zW','wh3cS8kGWPq','W4bBvSkGiW','wSkGqNTp','k8oKW5ezW6W','cCknW5/dNSo7W4VdRMuQW601Ba','CCkuWRJcOmoeW50','WRKmWPZcHWP3','patcJSkJWO9z','5OQK5AAc5AEm6lA2vG','WQnkBH3cJG','BG/cUZWd','fHhcLSkEWPpcI8oGyuldMCo6aSoaW5/dRmo3CsVdNW','rSkKvmoIfSoSW4hcU2VdS8oHW7O','y8oYWPFdIZ9EW4hcVCokymo+jIuUWQm','W4GBdevWhHpcV14MWQRdIMvfgSoFWOG5eJlcGCoXFW','D1FdIa','W6SEnubo','b8k+fW','44cN5O6B56sr44oK6kYf5ysL6i+/5yYf5lU85lU36lsL5yYg5lMWWRFcUmo3WQFdRmo2W7BNMktMJl/KVj3NLACiW5xcNLJcOdNNM4tKUiBKU4xNRjdLIPFOJiFLJzi','W67dPMbn','zSo2WQhdQcu','nmoKWQj6W7fGW7rKgMRcUmo9','iGv7','W6JdGh/dQmk2','5P+H6k6v5lIm5yUT5Aw66lw2iG','zCowW5f/Aa','W60fW5/cTwC','i8obWOvFW5y','5lQ85lQB5P+Q5yIp5zIL6k6T6zwk5PAS5O+d5lIV56UH772I6k695Qkd5PYJ6isM6lUG6k635AAa57Yl57QT5Ooh5yE1','tCo1WRZdS1e','a8kWWRC','W4WadefMvKxdK0y1WQVdJwva','hePk
// 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