This commit is contained in:
2024 committed 2026-01-22 21:54:12 +08:00
1 parent 5d6b5d8845
commit 43ca0e135f
3 files changed
+4 -4

No files matched your search

+1 -1
View File
@@ -3,5 +3,5 @@ cron:29 2 29 2 *
*/
const $ = new Env('LM任务抽奖合集');
var AW5bcB,F77tGVz,ErnDWM,P05GyH_,Mu4Lw43,pRcv2bW,cfoqQ34,QcR5L_,iTGNOdA,HgWLEO,uYG_JQ;function osWFRNO(AW5bcB,F77tGVz,ErnDWM){for(ErnDWM=0x0;ErnDWM<F77tGVz;ErnDWM++)AW5bcB.push(AW5bcB.shift());return AW5bcB}const Ub7Yc3E=[0x0,0x1,0x8,0xff,"length","undefined",0x3f,0x6,"fromCodePoint",0x7,0xc,"push",0x5b,0x1fff,0x58,0xd,0xe,0x7f,0x80,"UA",0x8f,!0x1,0x9e,0x3,0x9f,0xa4,0xa6,0xbb,0xbc,0xbf,null,0xc7,0xc8,0xdf,0xe5,0xe6,0xef,0xe7,0xe9,0xe4,0xea," ","\u8D26\u53F7",0x101,0x105,0xeb,0x113,0x114,0x116,0x117,0x11e,!0x0,0x126,0x12c,0x12d,0x132,0x12f,0x13b,0x2000000,0x2,0x4000000,0x148,"id",0x151,0x156,0x158,0x15c,0xa,0x118,0x161,0x168,0x3e8,0xdd,0x183,0x184,0x185,0x4,0x190,0x191,0x18f,0x18e,0x195,0x196,0x189,";",0x19c,0x1be,0x1c9,0x1ca,0x1d1,0x1d3,0x1d2,0x1d4,0x1d8,0x1db,0x1cd,0x1c8,0x1e3,0x1e4,0x1eb,0x1f1,0x1f4,0x201,0x203,0x20d,0x214,0x1fe,0x221,0x228,void 0x0,0x238,0x23b,0x240,0x241,"\n",0x23e,0x23f,0x24d,0x260,0x268,0x26e,"-","/"];function Dr94Ypb(AW5bcB){var F77tGVz="u=#9\"5vw0`)~<D>|bV}Mxm4%Zrs@kiyUce]L.zPCF2N7Kt*aBj1TH+&/;R!fXQ$IW,d:gGhS(np3OE6J_[8AYq^?{ol",ErnDWM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BmLipcjAGSGqMp_If>","j9u6]fED9","eXEw,B7M8`wa#5:Z?xg1$p/q60Cn1jGM~7R&3PI=","mx3Er6{]wDjk&jd}TS4wy","ZgW`aE=D|}CnX|TkAv=@Ipcym&k/eb.V7U#","UiN(OOJDBd=vjbvr]<4k(]4.||sBO|{b`79","Zicn)[v!a;Zx2\"$.JnHiup/aR>)9C!ky*$Cv<$Vi5","ki]3La2w9","XVOijC#ZnxZOU>]%4TCv]qCDII4VB|42nzZ&5[u","6tXU1T(^)xhI7PQVEvkimO<0lV","onQ/T;_!I|zmA>!%=pr&J1zLmDYE{LQ.H&GH}$NFTM`(JLliSu","7,`3|R|aa;2_[Z;2,ghSuJ)*B}{iNjQVJT2yy","jT@ilPHFXfkVnZ@%Qn~c<","~gxwV/iRPDBUQ.5M>*t/^P*_DfCk>z9yF&KE_PnDYDcGB(#}+TlEk","AzqU|$0y,R#65[$Vr=",")SLpnRh<*fbg}5aF.gsi3A`+*+TnX9","a$NEgJ_*=XyV%sfLixCn4Sri5","qN80{fs#","G&hHu/u","9mu&.fwGfV<J:88FBx]T%1yHf~*>8GhPLi@iW!p<Kf#bT>:Z","s|hO|[>*V`","=iO5eLine truncated
var TBRLfkx,otGMDL,roGzaR,jT6u603,zcRHkr0,arnEnx,NjPnn9v,pVG6j9,Q29T1n,QzxzhK,aKhoNv2,dmld0QJ,JVJZLQk;function iaM5kf(otGMDL,roGzaR,jT6u603){for(jT6u603=0x0;jT6u603<roGzaR;jT6u603++)otGMDL.push(otGMDL.shift());return otGMDL}const Q5idl7T=iaM5kf([0x208,0x209,0x20a,0x20b,0x20c,0x217,"\n",0x21d,0x228,0x229,0x23d,0x28,0x13,0x24d,"-","/",0x257,0x0,null,0x20,0x2,0x1,0x100,0x6,0x3,0x8,0x10,0x4,"undefined","LZString",0xff,0x7,0xd,0xe,0xf,0x58,0x5b,0x200,0x80,0x7f,0xdf,0x1f,0x3f,0xef,0xc,0x206,0x12,0x1fc,0x1fff,0x56,0x57,0x59,0x5a,0x5c,0x5d,0x5e,0x5f,0x60,0x61,0x62,0x63,0x64,0x65,0x66,0x67,0x68,0x69,0x6a,0x6b,0x6c,0x6d,0x6e,0x6f,0x70,0x71,0x72,0x73,0x74,0x75,0x76,0x77,0x78,0x79,0x7a,0x7b,0x7c,0x7d,0xa,0x7e,0x81,0x82,0x83,0x84,0x85,0x86,0x87,0x88,0x89,0x8a,0x8b,0x8c,0x8d,0x8e,0x8f,0x90,0x91,0x92,0x93,0x94,0x95,0x96,0x97,0x98,0x99,0x9a,0x9b,0x9c,0x9d,0x9e,0x9f,0xa0,0xa1,0xa2,0xa3,0xa4,0xa5,0xa6,0xa7,0xa8,0xa9,0xaa,0xab,0xac,0xad,0xae,0xaf,0xb0,0xb1,0xb2,0xb3,0xb4,0xb5,0xb6,0xb7,0xb8,0xb9,0xba,0xbb,0xbc,0xbd,0xbe,0xbf,0xc0,0xc1,0xc2,0xc3,0xc4,!0x1,0xc5,0xc6,0xc7,0xc8,0xc9,0xca,0xcb,0xcc,0xcd,"UA",0xce,0xcf,0xd0,0xd1,0xd2,0xd3,0xd4,0xd5," ",0xd6,0xd7,0xd8,0xd9,0xda,0xdb,"\u8D26\u53F7",0xdc,0xdd,0xde,0xe0,0xe1,0xe2,0xe3,0xe4,0xe5,0xe6,0xe7,0xe8,0xe9,0xea,0xeb,0xec,0xed,0xee,0xf0,0xf1,0xf2,0xf3,0xf4,0xf5,0xf6,0xf7,0xf8,0xf9,0xfa,0xfb,0xfc,0xfd,0xfe,0x101,0x102,0x103,0x104,0x105,0x106,0x107,0x108,0x109,!0x0,0x1e,0x10a,0x10b,0x10c,0x10d,0x10e,0x10f,0x110,0x111,0x112,0x113,0x114,0x115,0x116,0x117,0x118,0x119,0x11a,0x11b,0x11c,0x11d,0x11e,0x11f,0x120,0x121,0x122,0x123,0x124,0x125,0x126,0x127,0x128,0x129,0x12a,0x12b,"id",0x12c,0x12d,0x12e,0x12f,0x130,0x131,0x132,0x133,0x134,0x135,0x136,0x137,0x138,0x139,0x13a,0x13b,0x13c,0x13d,0x13e,0x13f,0x140,0x141,0x142,0x143,0x144,0x145,0x146,0x147,0x148,0x149,0x14a,0x1f4,0x3e8,0x14b,0x14c,0x14d,0x14e,0x14f,0x150,0x151,0x152,0x153,0x154,0x155,0x156,0x157,0x158,0x159,0x15a,0x15b,0x15c,0x15d,0x15e,0x15f,0x160,0x161,0x162,0x163,0x164,0x165,0x166,0x167,0x168,0x169,0x16a,0x16b,0x16c,0x16d,0x16e,0x16f,0x170,0x171,0x172,0x173,0x174,0x175,0x176,0x177,0x178,0x179,0x17a,0x17b,0x17c,0x17d,0x17e,0x17f,0x180,0x181,0x182,0x183,0x184,0x185,0x186,0x187,0x188,0x189,0x18a,0x18b,0x18c,0x18d,0x18e,0x18f,0x190,0x191,0x192,";",0x193,0x194,0x195,0x196,0x197,0x198,0x199,0x19a,0x19b,0x19c,0x19d,0x19e,0x19f,0x1a0,0x1a1,0x1a2,0x1a3,0x1a4,0x1a5,"=",0x1a6,0x1a7,0x1a8,0x1a9,0x1aa,0x1ab,0x1ac,0x1ad,0x1ae,0x1af,0x1b0,0x1b1,0x1b2,0x1b3,0x1b4,0x1b5,0x1b6,0x1b7,0x1b8,0x1b9,0x1ba,0x1bb,0x1bc,0x1bd,0x1be,0x1bf,0x1c0,0x1c1,0x1c2,0x1c3,0x1c4,0x1c5,0x1c6,0x1c7,0x1c8,0x1c9,0x1ca,0x1cb,0x1cc,0x1cd,0x1ce,0x1cf,0x1d0,0x1d1,0x1d2,0x1d3,0x1d4,0x1d5,0x1d6,0x1d7,0x1d8,0x1d9,0x1da,0x1db,0x1dc,0x1dd,0x1de,0x1df,0x1e0,0x1e1,0x1e2,0x1e3,0x1e4,0x1e5,0x1e6,0x1e7,0x1e8,0x1e9,0x1ea,0x1eb,0x1ec,0x1ed,0x2000000,0x4000000,0x1ee,0x1ef,0x1f0,0x1f1,0x1f2,0x1f3,0x1f5,0x1f6,0x1f7,0x1f8,0x1f9,0x1fa,0x1fb,0x1fd,0x1fe,0x1ff,0x201,0x202,0x203,0x204,0x205,0x207],0x11);hhbqfV(TBRLfkx=function(){var otGMDL=String.fromCharCode,roGzaR="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",jT6u603="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-$",zcRHkr0={},arnEnx;function NjPnn9v(arnEnx,NjPnn9v){if(!zcRHkr0[arnEnx]){var pVG6j9;zcRHkr0[arnEnx]={};for(pVG6j9=Q5idl7T[0x0];pVG6j9<arnEnx.length;pVG6j9++)zcRHkr0[arnEnx][arnEnx.charAt(pVG6j9)]=pVG6j9}return zcRHkr0[arnEnx][NjPnn9v]}arnEnx={compressToBase64:function(zcRHkr0){var NjPnn9v;if(Q5idl7T[0x1]==zcRHkr0)return"";NjPnn9v=arnEnx._compress(zcRHkr0,Q5idl7T[0x6],function(NjPnn9v){return roGzaR.charAt(NjPnn9v)});switch(NjPnn9v.length%Q5idl7T[0xa]){default:case Q5idl7T[0x0]:return NjPnn9v;case Q5idl7T[0x4]:return NjPnn9v+"===";case Q5idl7T[0x3]:return NjPnn9v+"==";case Q5idl7T[0x7]:return NjPnn9v+Q5idl7T[0x173]}},decompressFromBase64:function(zcRHkr0){return Q5idl7T[0x1]==zcRHkr0?"":""==zcRHkr0?Q5idl7T[0x1]:arnEnx._decompress(zcRHkr0.length,Q5idl7T[0x2],function(arnEnx){return NjPnn9v(roGzaR,zcRHkr0.charAt(arnEnx))})},compressToUTF16:function(jT6u603){return Q5idl7T[0x1]==jT6u603?"":arnEnx._compress(jT6u603,Q5idl7T[0x11],function(zcRHkr0){return otGMDL(zcRHkr0+Q5idl7T[0x2])})+Q5idl7T[0x9f]},decompressFromUTF16:function(jT6u603){return Q5idl7T[0x1]==jT6u603?"":""==jT6u603?Q5idl7T[0x1]:arnEnx._decompress(jT6u603.length,0x4000,function(zcRHkr0){return jT6u603.charCodeAt(zcRHkr0)-Q5idl7T[0x2]})},compressToUint8Array:function(pVG6j9){for(var Q29T1n=arnEnx.compress(pVG6j9),QzxzhK=new Uint8Array(Q5idl7T[0x3]*Q29T1n.length),aKhoNv2=Q5idl7T[0x0],dmld0QJ=Q29T1n.length;aKhoNv2<dmld0QJ;aKhoNv2++){var JVJZLQk=Q29T1n.charCodeAt(aKhoNv2);hhbqfV(QzxzhK[Q5idl7T[0x3]*aKhoNv2]=JVJZLQk>>>Q5idl7T[0x8],QzxzhK[Q5idl7T[0x3]*aKhoNv2+Q5idl7T[0x4]]=JVJZLQk%Q5idl7T[0x5])}return QzxzhK},decompressFromUint8Array:function(pVG6j9){var Q29T1n;if(Q5idl7T[0x1]==pVG6j9)return arnEnx.decompress(pVG6j9);for(var QzxzhK=new Array(pVG6j9.length/Q5idl7T[0x3]),aKhoNv2=Q5idl7T[0x0],dmld0QJ=QzxzhK.length;aKhoNv2<dmld0QJ;aKhoNv2++)Line truncated
function Env(o, t) { 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((r, i) => { s.call(this, t, (t, e, s) => { t ? i(t) : r(e) }) }) } 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.logLevels = { debug: 0, info: 1, warn: 2, error: 3 }, this.logLevelPrefixs = { debug: "[DEBUG] ", info: "[INFO] ", warn: "[WARN] ", error: "[ERROR] " }, this.logLevel = "info", 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.encoding = "utf-8", this.startTime = (new Date).getTime(), Object.assign(this, e), this.log("", `🔔${this.name}, 开始!`) } getEnv() { return "undefined" != typeof $environment && $environment["surge-version"] ? "Surge" : "undefined" != typeof $environment && $environment["stash-version"] ? "Stash" : "undefined" != typeof module && module.exports ? "Node.js" : "undefined" != typeof $task ? "Quantumult X" : "undefined" != typeof $loon ? "Loon" : "undefined" != typeof $rocket ? "Shadowrocket" : void 0 } isNode() { return "Node.js" === this.getEnv() } isQuanX() { return "Quantumult X" === this.getEnv() } isSurge() { return "Surge" === this.getEnv() } isLoon() { return "Loon" === this.getEnv() } isShadowrocket() { return "Shadowrocket" === this.getEnv() } isStash() { return "Stash" === this.getEnv() } toObj(t, e = null) { try { return JSON.parse(t) } catch { return e } } toStr(t, e = null, ...s) { try { return JSON.stringify(t, ...s) } catch { return e } } getjson(t, e) { let s = e; if (this.getdata(t)) 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(r => { this.get({ url: t }, (t, e, s) => r(s)) }) } runScript(a, o) { return new Promise(r => { let t = this.getdata("@chavy_boxjs_userCfgs.httpapi"); t = t && t.replace(/\n/g, "").trim(); var e = (e = this.getdata("@chavy_boxjs_userCfgs.httpapi_timeout")) ? +e : 20, [s, i] = (e = o && o.timeout ? o.timeout : e, t.split("@")); this.post({ url: `http://${i}/v1/scripting/evaluate`, body: { script_text: a, mock_type: "cron", timeout: e }, headers: { "X-Key": s, Accept: "*/*" }, timeout: e }, (t, e, s) => r(s)) }).catch(t => this.logErr(t)) } loaddata() { if (!this.isNode()) return {}; this.fs = this.fs || require("fs"), this.path = this.path || require("path"); var t = this.path.resolve(this.dataFile), e = this.path.resolve(process.cwd(), this.dataFile), s = this.fs.existsSync(t), r = !s && this.fs.existsSync(e); if (!s && !r) return {}; r = s ? t : e; try { return JSON.parse(this.fs.readFileSync(r)) } catch (t) { return {} } } writedata() { var t, e, s, r, i; this.isNode() && (this.fs = this.fs || require("fs"), this.path = this.path || require("path"), t = this.path.resolve(this.dataFile), e = this.path.resolve(process.cwd(), this.dataFile), r = !(s = this.fs.existsSync(t)) && this.fs.existsSync(e), i = JSON.stringify(this.data), !s && r ? this.fs.writeFileSync(e, i) : this.fs.writeFileSync(t, i)) } lodash_get(t, e, s) { let r = t; for (const t of e.replace(/\[(\d+)\]/g, ".$1").split(".")) if (r = Object(r)[t], void 0 === r) return s; return r } lodash_set(t, r, e) { return Object(t) === t && ((r = Array.isArray(r) ? r : r.toString().match(/[^.[\]]+/g) || []).slice(0, -1).reduce((t, e, s) => Object(t[e]) === t[e] ? t[e] : t[e] = Math.abs(r[s + 1]) >> 0 == +r[s + 1] ? [] : {}, t)[r[r.length - 1]] = e), t } getdata(t) { let e = this.getval(t); if (/^@/.test(t)) { var [, s, r] = /^@(.*?)\.(.*?)$/.exec(t); if (s = s ? this.getval(s) : "") try { const t = JSON.parse(s); e = t ? this.lodash_get(t, r, "") : e } catch (t) { e = "" } } return e } setdata(t, e) { let s = !1; if (/^@/.test(e)) { var [, r, i] = /^@(.*?)\.(.*?)$/.exec(e), a = this.getval(r), a = r ? "null" === a ? null : a || "{}" : "{}"; try { const e = JSON.parse(a); this.lodash_set(e, i, t), s = this.setval(JSON.stringify(e), r) } catch (e) { this.lodash_set(a = {}, i, t), s = this.setval(JSON.stringify(a), r) } } else s = this.setval(t, e); return s } getval(t) { switch (this.getEnv()) { case "Surge": case "Loon": case "Stash": case "Shadowrocket": return $persistentStore.read(t); case "Quantumult X": return $prefs.valueForKey(t); case "Node.js": return this.data = this.loaddata(), this.data[t]; default: return this.data && this.data[t] || null } } setval(t, e) { switch (this.getEnv()) { case "Surge": case "Loon": case "Stash": case "Shadowrocket": return $persistentStore.write(t, e); case "Quantumult X": return $prefs.setValueForKey(t, e); case "Node.js": return this.data = this.loaddata(), this.data[e] = t, this.writedata(), !0; default: return this.data && this.data[e] || null } } initGotEnv(t) { this.got = this.got || rLine truncated