mirror of
https://github.com/6dylan6/jdpro.git
synced 2026-11-06 04:16:42 +08:00
1
This commit is contained in:
1 parent
c19e94df9e
commit
3144fe64a1
8 files changed
+2
-79
No files matched your search
+1
-1
@@ -96,7 +96,7 @@ if (process.env.ALLOWPIN) {
|
||||
console.log(`\n====================共${CookieJDs.length}个京东账号Cookie=================`);
|
||||
console.log(`===========脚本执行时间:${formatdate(new Date(new Date().getTime() + new Date().getTimezoneOffset() * 60 * 1000 + 8 * 60 * 60 * 1000))}============`);
|
||||
console.log('>>>>>>>>>>>>6dylan6提醒您:有问题先更新不行在反馈>>>>>>>>>>>>>\n');
|
||||
console.log(`Tips:‼️青龙2.20.2以下版本不要外网访问,已被爆破可任意登录!必须要外网的就升级青龙吧\n`);
|
||||
console.log(`Tips:‼️青龙2.20.2以下版本不要外网访问,已被爆破可任意登录!必须要外网的就全新安装新版吧,升级不行\n`);
|
||||
|
||||
for (let i = 0; i < CookieJDs.length; i++) {
|
||||
if (!CookieJDs[i].match(/pt_pin=(.+?);/) || !CookieJDs[i].match(/pt_key=(.+?);/)) console.log(`\n提示:京东cookie 【${CookieJDs[i]}】填写不规范,可能会影响部分脚本正常使用。正确格式为: pt_key=xxx;pt_pin=xxx;(分号;不可少)\n`);
|
||||
|
||||
@@ -1,7 +0,0 @@
|
||||
/*
|
||||
cron: 1 1 29 2 *
|
||||
*/
|
||||
|
||||
const $ = new Env('青绿计划');
|
||||
var CyC7Bep,yEnoNS,qemIMI,jBG2q8a,CJyPUm8,Fx97bQ,O6qtOg,MJBNarO,NdEGMj_;function lBpn1Bz(CyC7Bep,yEnoNS,qemIMI){for(qemIMI=0x0;qemIMI<yEnoNS;qemIMI++)CyC7Bep.push(CyC7Bep.shift());return CyC7Bep}const GiAvLE1=[0x0,0x1,0x8,0xff,"length","undefined",0x3f,0x6,"fromCodePoint",0x7,0xc,"push",0x5b,0x1fff,0x58,0xd,0xe,!0x1,0x5c,0x3,0x80,"b",0x71,0x5d,"g",0xc7,0x4,0x2,0x1e,"a",0x9,0x48,"d","\n",!0x0,0x62,0x64,0x77,0xca,0x7c,0x7d,0x7f,0x83,0x36,"e",0x67,0x93,0xcd,0x6b,0x5,"c",void 0x0,0xa1,0xa2,0xa4,0xa0,"UA",0xad,"h",0xb3,0xa5," ","\u8D26\u53F7",0xbd,0xab,0xc1,0xa6,0x23,0x2000000,0x4000000,0x2e,0x13,"f",0x50,0xac,0xdb,0xd6,0x9f,0x25,"i",0x9b,0xdf,0xde,0xe1,"-v",0xcb,0x63,0xe0,0xef,0xec,0xf0,0xf7,0x101,0x100,0x104,0x105,0x1f4,0xa,0x102,0x107,0x121,"5",0x122,0x123,0x125,0x126,0x128,0x129,0x12b,"1",0x11c,0x11e,0x11b,null,0x12f,0x3e8,0x7d0,0x91,0x167,0x16c,0x16e,0x165,0x166,0x174,0x178,0x179,0x6a,0xc6,0x8f,0x1d,0x60,0x33,";",0x96,0xc2,0x82,0x42,0x188,0x189,0x18a,0x17d,0x187,0x198,0x6c,0xcc,0x34,0x194,0x1af,0x1b7,"\u706B\u7206",0x39,0x56,0x1d9,0x7530,0x10,0x200,0xf,0x3ff,0xc0,0x1f,0x12,0x20,0x18,0x40,0xffff,0x1c4,0x1f0];function t4Nlr7(CyC7Bep,yEnoNS=GiAvLE1[0x1]){Object.defineProperty(CyC7Bep,GiAvLE1[0x4],{value:yEnoNS,configurable:GiAvLE1[0x11]});return CyC7Bep}function bKC_6Y(CyC7Bep){var yEnoNS="zxw/v#2=;~{_+uAl1b&L`,EgmjZh9^t>]rO5eaJqMc4RF(3!V@.W<[%\"6dfB:H)8NIQT}S?p$CXY7inUPosy0kKDG*|",qemIMI,jBG2q8a,CJyPUm8,Fx97bQ,O6qtOg,MJBNarO,NdEGMj_;Tl5E0YA(qemIMI=""+(CyC7Bep||""),jBG2q8a=qemIMI.length,CJyPUm8=[],Fx97bQ=GiAvLE1[0x0],O6qtOg=GiAvLE1[0x0],MJBNarO=-GiAvLE1[0x1]);for(NdEGMj_=GiAvLE1[0x0];NdEGMj_<jBG2q8a;NdEGMj_++){var lBpn1Bz=yEnoNS.indexOf(qemIMI[NdEGMj_]);if(lBpn1Bz===-GiAvLE1[0x1])continue;if(MJBNarO<GiAvLE1[0x0]){MJBNarO=lBpn1Bz}else{Tl5E0YA(MJBNarO+=lBpn1Bz*GiAvLE1[0xc],Fx97bQ|=MJBNarO<<O6qtOg,O6qtOg+=(MJBNarO&GiAvLE1[0xd])>GiAvLE1[0xe]?GiAvLE1[0xf]:GiAvLE1[0x10]);do{Tl5E0YA(CJyPUm8.push(Fx97bQ&GiAvLE1[0x3]),Fx97bQ>>=GiAvLE1[0x2],O6qtOg-=GiAvLE1[0x2])}while(O6qtOg>GiAvLE1[0x9]);MJBNarO=-GiAvLE1[0x1]}}if(MJBNarO>-GiAvLE1[0x1]){CJyPUm8.push((Fx97bQ|MJBNarO<<O6qtOg)&GiAvLE1[0x3])}return v22fKzk(CJyPUm8)}function xSPVJbt(qemIMI){if(typeof CyC7Bep[qemIMI]===GiAvLE1[0x5]){return CyC7Bep[qemIMI]=bKC_6Y(yEnoNS[qemIMI])}return CyC7Bep[qemIMI]}Tl5E0YA(CyC7Bep={},yEnoNS=lBpn1Bz(["o/Uv6OM+z&S[OuPOblW;\"O?21~s.I:,5+lM@h5O+3;z$du1Oo?mhXJ72~\"rV.uK1z&ZhUp~xF[XXj@+","Rgn>83m;#","]V0pNe0ON~FPrjBgXA12","]V0pNe0ON~FP?ZKOllz~",">2y#IV0MId4A^V1h#RW^odtmzlY]+l?>82T;9pdcr8BBQ@RJaR5]FP/jB`xn@12R]V0pNe0ON~FP:P#","ad,{boHkZ;3):y#a%M\"%HXGPM)s875]eQa+>Bi1X2N0d=.1qcZN~","nYwjVkqnL","<5V+]/ts","QY|HpZB@L","Sc3JI~v<Tj7;TfQ.?])kxuC`s","q)eF}H/A;IKlG",")T7%HuLXL","NY3J","hh>+Hkz","{)h+_CL~W","{)3/_CL~W","qBjb","V*rj%1NZW","~^9yHk;LBI0>ekxS4G","y>T]*!G3mf+`0l*4p>eXyB>cfAw15f0h0Oi.5CNt+buHOu[c&:w^+","hRgrgkM+2{@P##(ZsI%Cle7&764m</^4]Vf]yr[=5%?CWy=>$>w","cW3@Kkem]lw~<l,5O^r2;)vmOd}6ful","1pB]@qZN4).)mBm9;}}Z7VpuA,$xT?2mx,T#","1%@WRC(!XAE`\"?zgY2k.R8h[Z)tb_Ap&5WyX`","cI8<<0lS&:cVx","e:J7HOxjc`_Y5srmulp~9p@uXB*X)Aej)%s;","2@?>G!{?8[DoU?TtDIp%80GM1&eUG!{jR)F^95Km}~KT@H&OUz","t~.;5Yg5j`}PS@m9R}}^f3iSEfA{%j)el+z2,","/X3=Lo&3L%DenSQm$b[><06<?Ld@$l3M_@y.cPVw","JIdW[Wv?N:6<1/VO:b/","yVK<?$M+|Ba>&aXjRW7^MPSgmIF","++JvPe3P&:>m*v","<(X[M%q!$`[C%Al`4p\"~pevN1:H6:/8tGb>7h","kOd2638xP[M5*v^5R+a\"qHjLCA)<K@O&0z","E~w$ZB0O#",")V&Y>CmNF;b)3uzevXA7):4+>QeSOZCjrgP~_dlo9A","#%+\"#XQ+n8r,b1kh0B/","lRR^H$2f%fr$qhiq","$IUv;X6&?f)_x","Bg;%n)|+/Ll\"HVuhp/q~,yDUIl.CI@1`p`]~nolokLJ<0BA","$btv;K%<Ju=~PpkM(+:{+JF+3QDx7y\"5GA!7Kk9<l+v~x","MZE>BUUxNlXCVv~q!O:X1JT^P[j/8JDEi}L$b7lcBBIjeB^^RWjt\"fRdN+d","jIS9lJX&HA",":a8@}:ySQ:~uJH|4?Cxt\"3]<*`|Nx:}>hg37tk1mn;wunj=jJZt90p]w","C`P2<86tCb0&x:^e<I6%p\"3w(AOUPlrb18+{eBuc,fn[U?iqN>sW~\">^=","%`W]2o2m=","c^)9y.SuYB}[O#J>8Ip<bo/Yx~%@$pYL^p#>Qoy=i_@>m/","a~U<b<*5b~SlZHO&9x","T)CWK.Bg;I!5T?)m+x","m}+^1dDS![J75!QmCWLXS[W8<%a,lw","zdMCsy,^CfE71:/RI}J>aYX29b#`@vG576\"@+yz","ZpW;8q7M38#!rVVOcaeicY.MP+4ACv","Av?=\"UqS>8zwqA2j#p/$Wf;3yL[jWA8gmp3=hdTW)&.A_A<Olx","DOY]{)z","rM.hM}w&n8*o0lZebp62EdffT%q>/Z^5=ZIWHVK+r+UvpA\"O%z","F`8v8:~jxdFP::zt>+(XjJ.w4B22~e~","u3p7RW)}:;9h|@GOD9:^e5g[R6xhkv:c!R;rI\"Cx","apA<wX,Sn&c)R?ObBg)v6UwfB)KooP5aHaw","&3n~mp)+v%p5X@Rjr%x2I$7MO8r$iSNm8~xWudM+<ua7qs)b(Wq9\"09;u&6","%2!vHOqxjA3Sgpk9dB;nhnpc.~<S+lOtiWF{,Mj5|B73.uem[Wz~:3&w","?W`XSoidY`O$IeMZTC\"vi\",SN:o[x","\")\"v55;tH&Xv2#Khz&chn)z","WM4]Qo`N[L7P(@RjgdTXV6zmn_5UvlD9S%:{xeW=w+;ux","6ZNC4Hve$uQQyAeat+/","Q4x2_X,=3[;g(VmO%pl7cPDx","`~W],<B5!+76&HVh.I)>Fa;eY;%8d$Sa@>]tSoo=;`lYRA<hfOY^ueOe:66","XA)\"#[,S/~U:`!.9\"/nvvX!u2uB]d1\"5.>)9v3]&i&","2]`Xz\":t7A[8x","lW>v7JB!(;a\")j^bYa1n]pH8r8e7O?&`/RBiH:Bu~f`VSe*904p7@6m3|`","YIN~V?/SP:._6/$JMpO^Wa|MAl}9#:e&Z~87{V|31l+U[:uq|6kZ>5i^V8R\"x","G;(X>5OK4A>$`h(qvZT;@YT5W:px,V?aZXJ9{J=x","h%\"%|dy^Y6{/|o)tGAp~|k@5z+4<^V#mE+t\"OHYu/","b+>~v3k^FBvO@$h4GIcY@?bLuA","yWt\"8XN&(6zs1hoMuMqvjpQ20LG^5fvR_M?9U)O&[L<,^vG4OWI].?rd=","(W\"~?VJ+~fFAJuAM=@Y#6q2ty~7^+qsM}bUvop{;#","aVE@B3Tx","s(9>!a~jb8rAd$9tnWq7tpF<%NnoC:TtBpu\"3s=j8[Rm5fLine 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
|
||||
@@ -1,7 +0,0 @@
|
||||
/*
|
||||
东东健康社区收集能量收集能量(不做任务,任务脚本请使用jd_health.js)
|
||||
cron "5-45/20 1-5 * * *" script-path=jd_health_collect.js, tag=东东健康社区收集能量
|
||||
*/
|
||||
const $ = new Env('健康社区收集能量');
|
||||
function SOzbxs(){}var rNRRIu=Object['defineProperty'],S8nNEY,wosjza,q9Kuxa,xmgEOf,vtDdbt,jWVaju,iYSkTE,Pg30pa,goE549m,KMdhzrc,JKbZYyd,CiE_Zl,rH1TQQv,RH0Xxvs,AAIDvXr,EHqARj,S774lX3,APmsz4,iH6uAd;function iOTUBR(SOzbxs){return S8nNEY[SOzbxs<0x60?SOzbxs+0x37:SOzbxs<0xd2?SOzbxs-0x61:SOzbxs-0x4c]}S8nNEY=BEN5DB();function aXIA33(SOzbxs,rNRRIu){return wosjza.call(null,SOzbxs,'length',{value:rNRRIu,configurable:!0x0})}SOzbxs(wosjza=Object.defineProperty,q9Kuxa=aXIA33(Vtb9QN((...rNRRIu)=>{SOzbxs(rNRRIu.length=0x2,rNRRIu.fjyagQ=rNRRIu[iOTUBR(0x69)]);return rNRRIu.fjyagQ(rNRRIu[0x0]())}),iOTUBR(0x7a))(ZgTJwV,jrNZbS));var BVHQNSX=[],wVPdq9=[hVi46SG(0x0),'|3Ipo;%e',hVi46SG(0x1),hVi46SG(0x2),hVi46SG(0x3),hVi46SG(0x4),hVi46SG(0x5),hVi46SG(0x6),hVi46SG(0x7),hVi46SG(iOTUBR(0x7d)),hVi46SG(0x7),hVi46SG(0x8),hVi46SG(iOTUBR(0x61)),hVi46SG(iOTUBR(0x88)),'EL|t}',hVi46SG(0xb),hVi46SG(iOTUBR(0x61)),hVi46SG(0xc),hVi46SG(0xd),hVi46SG(iOTUBR(0x68)),hVi46SG(iOTUBR(0x77)),hVi46SG(0x10),'LZ]X"6X+/|a',hVi46SG(iOTUBR(0x8c)),hVi46SG(0x12),hVi46SG(0x13),'i:RtyoB|B',hVi46SG(iOTUBR(0x7c)),hVi46SG(0x15),hVi46SG(0x16),hVi46SG(0x17),hVi46SG(0x13),hVi46SG(0x18),hVi46SG(iOTUBR(0x91)),hVi46SG(0xb),hVi46SG(0x1a),hVi46SG(0x1b),hVi46SG(iOTUBR(0x8f)),hVi46SG(iOTUBR(0x62)),hVi46SG(0x1e),hVi46SG(iOTUBR(0x6c)),hVi46SG(iOTUBR(0x63)),hVi46SG(0x21),hVi46SG(0x22),hVi46SG(0x23),iOTUBR(0x64),hVi46SG(0x24),hVi46SG(iOTUBR(0x66)),hVi46SG(0x26),hVi46SG(0x27),hVi46SG(0xb),hVi46SG(iOTUBR(0x65)),hVi46SG(0x29),hVi46SG(iOTUBR(0x97)),hVi46SG(0x2b),hVi46SG(0x2c),hVi46SG(iOTUBR(0x99)),hVi46SG(0x2e),hVi46SG(0x2f),hVi46SG(0x30),hVi46SG(0x31),hVi46SG(0x32),'2+wV|:Ug',hVi46SG(0x1a),'|KYtEUC9',hVi46SG(0x33),hVi46SG(0x34),hVi46SG(iOTUBR(0x85)),hVi46SG(0x36),hVi46SG(0x37),hVi46SG(0x38),hVi46SG(0x39),'|KdS%X%R1D4n+9pCsv%<~m&9',hVi46SG(0x3a),hVi46SG(0x3b),hVi46SG(0x3c),hVi46SG(0x3d),hVi46SG(0x3e),hVi46SG(0x3f),hVi46SG(0x40),'GKt}|sZ[J',hVi46SG(0x41),hVi46SG(0x42),'Wpqdu:I!UQozUFYr(;"sL|kg',hVi46SG(0x43),hVi46SG(0x44),hVi46SG(0x45),hVi46SG(iOTUBR(0x72)),hVi46SG(0x47),hVi46SG(0x48),hVi46SG(0x49),hVi46SG(0x4a),hVi46SG(0x4b),'Z&#Hb~|;B',hVi46SG(0x4c),hVi46SG(0x4d),hVi46SG(0x4e),hVi46SG(0x4f),hVi46SG(0x28),hVi46SG(0x50),hVi46SG(0x51),hVi46SG(iOTUBR(0xa0)),hVi46SG(0x53),hVi46SG(0x54),hVi46SG(0x55),hVi46SG(0x56),hVi46SG(iOTUBR(0x75)),')+u|<',hVi46SG(0x58),hVi46SG(0x59),hVi46SG(0x5a),hVi46SG(0xb),hVi46SG(0x5b),hVi46SG(0x5c),hVi46SG(0x5d),hVi46SG(0x5e),hVi46SG(0x5f),hVi46SG(0x60),hVi46SG(0x61),hVi46SG(0x62),hVi46SG(0x63),'VE|fc#1g',hVi46SG(0x64),'|KdS%X%R1D4nIU%KA"@X4',hVi46SG(0x65),'!OF(ro8N|6@D;@5:|*`aEAG','9oc2Y2Y|&F',hVi46SG(0x66),hVi46SG(0x67),hVi46SG(0x68),hVi46SG(0x69),hVi46SG(0x6a),hVi46SG(0x6b),'F:@XXz|P/|M$F}7',hVi46SG(0x6c),hVi46SG(0x6d),'|D]@g#{/6KYXg.C',hVi46SG(0x6e),hVi46SG(0x6f),hVi46SG(0x70),hVi46SG(0x16),hVi46SG(iOTUBR(0xa1)),hVi46SG(0x72),hVi46SG(0x73),hVi46SG(iOTUBR(0xa2)),hVi46SG(0x75),hVi46SG(0x76),'EL|t}','3ftw!l|Bc%XI|5i',hVi46SG(0x9),hVi46SG(0x77),hVi46SG(0x78),'*+)HL|S,J',hVi46SG(0x79),hVi46SG(0x7a),hVi46SG(0x7b),hVi46SG(0x7c),hVi46SG(0x7d),'+0DYf.)M,!s0PHRi8FJcVRP$!zO"*JB:8+=RM;hlczoowE|IFG',hVi46SG(0x7e),hVi46SG(iOTUBR(0xb1)),hVi46SG(0x80),hVi46SG(0x81),hVi46SG(0x82),hVi46SG(0x83),hVi46SG(0x84),'j:hW^60$z.4?o1mASW="T|N@t@%Hvs!yc{|[XW`a9}w"IEP:CIrwO}"jFY)]a!{1MG',hVi46SG(0x85),hVi46SG(0x86),hVi46SG(0x87),hVi46SG(0x88),hVi46SG(0x89),hVi46SG(0x8a),hVi46SG(0x8b),hVi46SG(0x8c),hVi46SG(0x8d),hVi46SG(iOTUBR(0xa4)),hVi46SG(0x8f),hVi46SG(0x90),'B"|tS2E9',hVi46SG(0x91),hVi46SG(0x92),hVi46SG(0x93),hVi46SG(0x94),'|0_<CHVG',hVi46SG(0x14),hVi46SG(iOTUBR(0xa5)),hVi46SG(iOTUBR(0xa6)),hVi46SG(0x97),hVi46SG(0x98),hVi46SG(0x99),hVi46SG(0x9a),hVi46SG(0x9b),hVi46SG(0x9c),hVi46SG(0x1f),hVi46SG(0x9d),hVi46SG(iOTUBR(0xa7)),hVi46SG(iOTUBR(0xa8)),hVi46SG(0xa0),hVi46SG(0xa1),hVi46SG(0xa2),hVi46SG(0xa3),hVi46SG(iOTUBR(0x62)),hVi46SG(iOTUBR(0x63)),hVi46SG(0x21),hVi46SG(0x22),hVi46SG(0xa4),'7#8jvl|}R',hVi46SG(0xa5),hVi46SG(0xa6),hVi46SG(iOTUBR(0xbd)),iOTUBR(0x64),hVi46SG(0xa8),hVi46SG(0xa9),hVi46SG(0x26),hVi46SG(iOTUBR(0xab)),hVi46SG(iOTUBR(0x65)),hVi46SG(0xab),hVi46SG(0xac),hVi46SG(0x1a),hVi46SG(0xad),hVi46SG(0xae),hVi46SG(0xaf),hVi46SG(0xb),'5cHO*CFh^wm#;Tv`TRKn(dUdDYrY}czuO7R~Pwq57KGTq?,|?_j{.p5&zaFy?emz4PT@=>g2yoa)Em=Q&Ol=f',hVi46SG(0xb0),hVi46SG(iOTUBR(0x62)),hVi46SG(0x1f),hVi46SG(0xb1),hVi46SG(0x20),hVi46SG(0x21),hVi46SG(0x22),'NK|t;()Rq+3`F~]',hVi46SG(iOTUBR(0x66)),hVi46SG(iOTUBR(0x67)),hVi46SG(iOTUBR(0x80)),hVi46SG(0x1a),hVi46SG(0xb2),hVi46SG(0xb3),hVi46SG(0xb4),'6V)0eMih,xq#MC8zRb|[2OT9',hVi46SG(0xb5),hVi46SG(0xb6),hVi46SG(0x1d),hVi46SG(0x20),hVi46SG(iOTUBR(0x67)),hVi46SG(iOTUBR(0x83)),hVi46SG(0xb7),'FO|tj',hVi46SG(0xb8),hVi46SG(0xae),hVi46SG(0xb9),hVi46SG(0xb),hVi46SG(0xba),hVi46SG(0xbb),hVi46SG(0xaf),hVi46SG(iOTUBR(0x68)),hVi46SG(0xbc),hVi46SG(0xbd),hVi46SG(0xbe),hVi46SG(0xbf),hVi46SG(0xc0),hVi46SG(0xc1),hVi46SG(0xc2),'&y#S=~Y]o|JI@5{K*j%+&uNTQOHv0(]','D%vX|JTUc0^W~"',hVi46SG(0xc3),hVi46SG(0xc4),hVi46SG(0xc5),'u&y$ecJ6+78EaL@=|$lYq8P]#|[zNRNC3vU#j5:3@k4','IyDr^)H|A]U_z"qaKmFwl2"FW^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||require("got"),this.cktough=this.cktough||require("tough-cookie"),this.ckjar=this.ckjar||new this.cktough.CookieJar,t&&(t.headers=t.headers||{},t)&&(t.headers=t.headers||{},void 0===t.headers.cookie)&&void 0===t.headers.Cookie&&void 0===t.cookieJar&&(t.cookieJar=this.ckjar)}tmout(){return new Promise((t,e)=>{this.tmoutId=setTimeout(()=>{this.prms.cancel(),e({message:"timemout",response:""})},5e4)})}get(t,a=()=>{}){switch(t.headers&&(delete t.headers["Content-Type"],delete t.headers["Content-Length"],delete t.headers["content-type"],delete t.headers["content-length"]),t.params&&(t.url+="?"+this.queryStr(t.params)),void 0===t.followRedirect||t.followRedirect||((this.isSurge()||this.isLoon())&&(t["auto-redirect"]=!1),this.isQLine truncated
|
||||
@@ -1,6 +0,0 @@
|
||||
/*
|
||||
15 5,16 * * * jd_health_task.js
|
||||
*/
|
||||
const $ = new Env('健康能量任务');
|
||||
var hLsA4k,Wf34dW,SXvDfg,oZauYOu,hiXZoh,cBjdD7B,iSbEd9Y,Y80SWaC,MnSXvB;function ZeqPoQ(hLsA4k,Wf34dW,SXvDfg){for(SXvDfg=0x0;SXvDfg<Wf34dW;SXvDfg++)hLsA4k.push(hLsA4k.shift());return hLsA4k}const zFFPeg=[0x0,0x1,0x8,0xff,"length","b",0x2,"d",0x76,0x4,"undefined",void 0x0,0x3,0xb3,"a",0x3f,0x6,"fromCodePoint",0x7,0xc,"push",0x59,"c",0x9,0x5b,0x9a,0x91,0x1fff,0x58,0xd,0xe,0x32,!0x1,0x57,0x8f,!0x0,0x56,0x61,0xa6,0xe5,"f",0x6e,"\n",0x5d,0x5f,0x64,0x4c,0x2000000,0x4000000,0x72,0x73,"h","g",0x5,0x8a,0x77,0x7f,0x80,0x3a,0x29,0x6c,"i","e",0x26,0x8c,0x92,0x93,"UA",0x50,0xa4,0x94,0x96,0x95," ",0xb1,0x1f4,0x9f,0xa,0x98,0xe0,0xdd,null,0x68,0xcf,0xd0,0xd6,0xdf,0x3e8,0xef,0x97,0xb5,0xb6,0xf5,0xc9,0x100,0xf6,0x10f,0x105,0x1b,0xcb,0x41,0x8d,0x4d,0x21,0x11b,0x127,0x134,0x13a,0xcc,0x143,0xf8,0xaa,0x159,0x15c,0x167,0x16d,0x171,0x172,0x14d,"fn",0x18b,0x18e,"ua",0x199,0x196,0x19d,0xbe,0x1a0,"\u706B\u7206",0x1a8,0x1aa,0x146,0x1bc,0xf9,0x1be];Jl7qik(fnDz3LR(SUjlNQ),fnDz3LR(xTmfl9m));function fnDz3LR(hLsA4k,Wf34dW=zFFPeg[0x1]){Object.defineProperty(hLsA4k,zFFPeg[0x4],{value:Wf34dW,configurable:zFFPeg[0x20]});return hLsA4k}function i4Abf2(hLsA4k){var Wf34dW="XHnkT:/%pF=C.PxW,5g>tuQV2K[|UDb)]y6^`7eRmjZIsoldBaJiqGMErY(1h\"#_+8@z?9N0f{~LA3S4<*;!c&v$}wO",SXvDfg,oZauYOu,hiXZoh,cBjdD7B,iSbEd9Y,Y80SWaC,MnSXvB;Jl7qik(SXvDfg=""+(hLsA4k||""),oZauYOu=SXvDfg.length,hiXZoh=[],cBjdD7B=zFFPeg[0x0],iSbEd9Y=zFFPeg[0x0],Y80SWaC=-zFFPeg[0x1]);for(MnSXvB=zFFPeg[0x0];MnSXvB<oZauYOu;MnSXvB++){var ZeqPoQ=Wf34dW.indexOf(SXvDfg[MnSXvB]);if(ZeqPoQ===-zFFPeg[0x1])continue;if(Y80SWaC<zFFPeg[0x0]){Y80SWaC=ZeqPoQ}else{Jl7qik(Y80SWaC+=ZeqPoQ*zFFPeg[0x18],cBjdD7B|=Y80SWaC<<iSbEd9Y,iSbEd9Y+=(Y80SWaC&zFFPeg[0x1b])>zFFPeg[0x1c]?zFFPeg[0x1d]:zFFPeg[0x1e]);do{Jl7qik(hiXZoh.push(cBjdD7B&zFFPeg[0x3]),cBjdD7B>>=zFFPeg[0x2],iSbEd9Y-=zFFPeg[0x2])}while(iSbEd9Y>zFFPeg[0x12]);Y80SWaC=-zFFPeg[0x1]}}if(Y80SWaC>-zFFPeg[0x1]){hiXZoh.push((cBjdD7B|Y80SWaC<<iSbEd9Y)&zFFPeg[0x3])}return xTmfl9m(hiXZoh)}function n17oUXR(SXvDfg){if(typeof hLsA4k[SXvDfg]===zFFPeg[0xa]){return hLsA4k[SXvDfg]=i4Abf2(Wf34dW[SXvDfg])}return hLsA4k[SXvDfg]}Jl7qik(hLsA4k={},Wf34dW=ZeqPoQ(["1L,WHmg7Mf~q]5?<52Z80sds_b{bKL*aWP2\"vfO1PZ!5O}G+}=DrRQ1B*VgY}j~*Uv5t6:uSYNVc`~6lBWy6o","BYi]132n","?s1eyp3MQfuMEc8<t26{_clg4mN|]@g():AC&sM750:G5#+<QfmVCZ=a?bY(WUf*fumt1gGf]LvtQpVJ%,hYkNAv*_rqH","[ljLfE.2bg}Y|JF)N?VUs;XZ\"xG2zxf)","E0WqTv{%_W[fvn8gi.b);9a%9(Mx%Jl[m~}/6\"YHRt","<UCfU0fl8M;zi|m)EkG=TvyLo1\"1d;KjNiD)$J$D@>N{O[gUC]1G0JdH","4iyi1(0Hh5#l#P*|HM.=","p_n|T~`<:P69L[Z>o6.3M3rmhx_Nva921xME#Rf.+W","LV)Um^GLyF55?!5m{Ct=5A)^^Y%/>ey537z:1(`+(x1xafO,m8&Jb0v</","}#Vbeds..u!W]1|5S8TEE4U2%","[t4A&A_^4.*TH","y7:=9BqqmtQP+1F","E0m/ea/pUx%?LkbV6BXM^SUbS__Tu`OZHYn","woKiXB_Pq+fz}TT5%aH","oI9%r(>PhGc`82EmHmc3~ee.2(4N&2X`iMpSMRx`h5knDT,[n^n","EV0al?(mEt","v57=\"B,2H.D)0x/I3?:=L#E&kYGgi;/","QYI=*`b./>vGvKe7H^QTnfX","^?\"%?BS6RtvNI1vjJ6{Ms7a>L1vgCxb517bEL~6q!hwQH","1[>39h>DlG<*W[8`","41M%/BX","eFO]X~,`[x/i8fLeXDFbW96voC#U|n}Q`BEqK1$VBYzG4NF","5YYM3`uPZ#m<z1TgpDc:P","+5pSPYU.&MuE8T","qtNT[!(l<.)%pROQ?i.=1GHP:(;3t1E6[0[3D\"JgK(g64nUj%_HSPBvq=1G","T[t=>1)j8g54gx@5PY,y`1.2vPy","s0e){A8P:+[2ix#Z)6C3nBf/z>kS<1Gm[MPqyMcq5Y^9`|[^CVk","smVU}!uj.xM^j,u^37/AeM]2tMFPhW92oVJp[&bg8_u79huUt[rF","!B[iS~{9yW4l+1(Zd6G)]{|>JF","$xY/?4WH\"x8<%;G|HTdTuq<q[tsT+W>615,/x`e.pE$*!xF","rBXbh(798W5?#xZ>FDA3ma\"9C1i9\"PI[7hM{!0WG4h9H(7Oj?)u),","#1ADC9hl8YUq?|Le","RVP%X(en+W","Z~yLc!FH/P+gw<9KamME^{oP]YX;1xNe9)2yUMa^H@:Mn:xtD?oUV9SlyWq","L1I]=hclZ5/tT!RgJX","UlxA6\">^m(2|s1.","Yxai0#I^$(!NNP87Ha|f>","6BPE6apv=xa{.1C>U8pS((\"_TM{NHf|5<)ETt","x0:~$Y5PZ8@NC0Iepl[iu&mbk","bWY//BKj7(%P^nF","#5eU6?Wj?F)x1xYU~BC~l;lm*.Lgg:2^11)Uwe6n","8B`%.#HKHg#r823>y~LpOo]v31I%IegmB)HM.JJ<18}lKTVj|m<M40X","LtEqoLa%~5zuB|s>2W5bfES2Hhw3b;{>","cRm/uA:%8MDA\"`z){77%,e}lzh{{)kfg<Uk","*US0@*}qy@REpk]ZrtP)h4b<xg3Gixs[+6pFO1j%1tL~u*L>t[L:*eT(:","77GEfh!YN+Wt|e#2~5/E3~!%Uu","Et>]AB1D3Gt4%[uU3Us=6M`n","4i!Joa~g#pCB,1gm/~3[tqP*Bg^6Kff>{Zfav07dh8Y<|x]Ds7/AKmX","4Cv)W9zPm(Yx&2fgR#WA|eA/`+~DOKl[SX","R8&A*#b<I8HPa,+5xg*iS`$D)@_r;*j>Iin","._FL6aJmU1%L@*/KfrxyZry><F","CamL4YTvHFJA5*_DioWq[YX","H.:%%vi%8g","#)]{A!%LuPzNmTjR{rk","_#=fZ\"</$(n|7fbZ]lc%;AC9#rxLI!<RX~vTumH^5.dT!n9b","AozGOM[b~x{Kaf82I/+Mvqlb1t$N&*i|fibUjL2qxWIkhk","i6ZiPYYdSp?hRxSR","B6H|wol.uP/,H","=abUWAMq|#hql7Ce)66L5Y^*/=EAA`Mm(tRqJ(Tgk","ViXL]<]qEP/teP]g)h/F+48PIp_C6PAKUtra<`i^7PpBH","ghmLQq%G6hg9,dvUOo|]NhZg;FR6<^Kj>l!Dy&cl^FoBJ\"v6N?z:+4&jk","aYAJ2!xnF=tB6aeK10\"%iaX","1#]b&YCGC8eUiN2^,0RU#~X","Rk0aO!8_9PFVg:EDX~=LC~U+<.W6\"2G6nMQF96~gnMnL4e.","\"tA~0~~(!M%b@Phj]I0qqL}m+Fq{sB5mJ6;pTf=gi.E{o\"JU8?%/","MmL3\"3@bjxG)`deg^6d{H`=p:>>ii(ARX_O:7^YHdg","\"Bw]k~u%W@9]XWujhU<Me;#?Zt0l.1]b^h%y%*<~<gS~=xP>ClP%","UF:JuY(~2t?r2|Ies.LD`?(nPx=b$n?76?nDnc+lahJ","^/ji7rX","P]dTS~jYZ511v9k)h6/Asiv(h#R4^nb`|8?3WJbqHFC,<W`2=a%S|!4915","SxfaTB#((86kdxUDP0oq.v1d;W`%1N*|r8oq#(qvW_61jfR7|m9%U","Z.fFnlqmBW,f=;cUCT)UPBg+hrt667$^G0~p4~X","aIo)u!XZ:+q)&Tvj","W7U~8f_j<FR%82YV)MZ]E34i4G1xx*^b0V9)&&hlaYP5DTyb|hyMf4X","BIdqGfrm\"xi2H`9>[D_UR^@bT","I8hE_R_P@>wDh|;ULine 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||require("got"),this.cktough=this.cktough||require("tough-cookie"),this.ckjar=this.ckjar||new this.cktough.CookieJar,t&&(t.headers=t.headers||{},t)&&(t.headers=t.headers||{},void 0===t.headers.cookie)&&void 0===t.headers.Cookie&&void 0===t.cookieJar&&(t.cookieJar=this.ckjar)}tmout(){return new Promise((t,e)=>{this.tmoutId=setTimeout(()=>{this.prms.cancel(),e({message:"timemout",response:""})},5e4)})}get(t,a=()=>{}){switch(t.headers&&(delete t.headers["Content-Type"],delete t.headers["Content-Length"],delete t.headers["content-type"],delete t.headers["content-length"]),t.params&&(t.url+="?"+this.queryStr(t.params)),void 0===t.followRedirect||t.followRedirect||((this.isSurge()||this.isLoon())&&(t["auto-redirect"]=!1),this.isQLine truncated
|
||||
@@ -1,7 +0,0 @@
|
||||
/*
|
||||
cron: 1 1 1 1 *
|
||||
*/
|
||||
|
||||
const $ = new Env('家居馆');
|
||||
var BKaPqU,e8udxk,dpivvN,BeTDoBZ,XmHz9K,nLFf7oW,ip2ew1I,zZdK01,v8wP4I,UOxqNWA,CKIqqpI;function faScwKt(BKaPqU,e8udxk,dpivvN){for(dpivvN=0x0;dpivvN<e8udxk;dpivvN++)BKaPqU.push(BKaPqU.shift());return BKaPqU}const H3j21UT=[0x0,0x1,0x8,0xff,"length","undefined",0x3f,0x6,"fromCodePoint",0x7,0xc,"push","b","c","a",0x9,0xe5,0x5b,"e",0x1fff,0x58,0xd,0xe,"d",0x7f,0x80,0x2,0xdb,0xf0,0x12,!0x1,void 0x0,0xa6,0x3,0xf3,0xf9,0x73,0xec,0x3c,0xaf,!0x0,0x20,0x60,0x4d,"f","\n",0xb0,0xb2,0xca,0xcb,null,0x97,0x4,"i","g",0x5,0xa,0xd9,0xdf,0xbc,0x8d,0x6b,0x11,0xed,0xea,0xef,"h",0x42,0xf4,0xf6,0xf8,"UA",0x100,0x104," ","\u8D26\u53F7",0x112,0x116,0xfa,0x18,0x3e8,"=",";",0x127,0x130,0x131,0x134,0x135,0x10,0x200,0xf,0x3ff,0xc0,0x1f,0xe0,0x13,0x40,0xffff,0x145,0x147,0x151,0x1f4,0x14f,0x150,0x152,0x155,0x156,0x12b,0x12c,0x9c,0x9f,0x2d,0x173,"1",0x174,0x17b,0x180,0x181,0x17d,0x17a,0x184,0x17c,0x17e,0xb,0x182,0x17f,0x188,0x186,0x18b,0x18c,0x18d,0x16f,0x1b6,0x197,0x1b9,0x15f,0x49,0x1c2,0x1c3,0xcf,0x1cb,0x1cd,0xee,0x26,0x1cf,0x1dd,0x1c9,0x1e3,0x66,0x1ed,0x1e1,0x1de,0x1f8,0x1fe,0x20c,0x20e,0x21b,0x221,0x20d,0x22d,0xa0,0x238];function N7yrg2(BKaPqU,e8udxk=H3j21UT[0x1]){Object.defineProperty(BKaPqU,H3j21UT[0x4],{value:e8udxk,configurable:H3j21UT[0x1e]});return BKaPqU}function ko2DqOn(BKaPqU){var e8udxk="!)_u<~6X;`{=Oo0s:L@t}yjrikAd5\"Y|R9ZDC$+c&mPfUNl78E/,2zMKT[*VQg.Sx#]BaIFJwW(?vq>1^Ge3bpH%4hn",dpivvN,BeTDoBZ,XmHz9K,nLFf7oW,ip2ew1I,zZdK01,v8wP4I;FQG8ws(dpivvN=""+(BKaPqU||""),BeTDoBZ=dpivvN.length,XmHz9K=[],nLFf7oW=H3j21UT[0x0],ip2ew1I=H3j21UT[0x0],zZdK01=-H3j21UT[0x1]);for(v8wP4I=H3j21UT[0x0];v8wP4I<BeTDoBZ;v8wP4I++){var UOxqNWA=e8udxk.indexOf(dpivvN[v8wP4I]);if(UOxqNWA===-H3j21UT[0x1])continue;if(zZdK01<H3j21UT[0x0]){zZdK01=UOxqNWA}else{FQG8ws(zZdK01+=UOxqNWA*H3j21UT[0x11],nLFf7oW|=zZdK01<<ip2ew1I,ip2ew1I+=(zZdK01&H3j21UT[0x13])>H3j21UT[0x14]?H3j21UT[0x15]:H3j21UT[0x16]);do{FQG8ws(XmHz9K.push(nLFf7oW&H3j21UT[0x3]),nLFf7oW>>=H3j21UT[0x2],ip2ew1I-=H3j21UT[0x2])}while(ip2ew1I>H3j21UT[0x9]);zZdK01=-H3j21UT[0x1]}}if(zZdK01>-H3j21UT[0x1]){XmHz9K.push((nLFf7oW|zZdK01<<ip2ew1I)&H3j21UT[0x3])}return zhxQUoW(XmHz9K)}function nQIjpwh(dpivvN){if(typeof BKaPqU[dpivvN]===H3j21UT[0x5]){return BKaPqU[dpivvN]=ko2DqOn(e8udxk[dpivvN])}return BKaPqU[dpivvN]}FQG8ws(BKaPqU={},e8udxk=faScwKt(["yCn}Q0{+3(pIO*7X#5h","4nJku","}g7sfp^D","&j6}Q0.y\"oiE/*?","sQ$qM=Ezg","+O,;X1p,O0.]{g^}/N,AUR~SQzhxgI*LV!","u&3;)bSoeSTqow~$}$w`5JFHU@xT$wQDZZvJZaxi=#Aw\":5D0,N<7ceZf;}I3DLZjl|5s(^i|z}v+_5L8vY`V*2_JxpF=/@Z@R\"([FTHfzK@Cd;$HZXvC$))Q~G[8u:cks}~t7G\"S/XrR3?+{)f(]j%Lag1ft__+`R3;jM)tx/0d+)E0su1`ivKm(L):*E.:KN.EzZ*6R`&Tdu*\"KZGu<v@x?L_{t+I$EAYkk>w26xQ]+*YiWTmwuG2_JxpFTd)i+rL?r9X)","S6B;5Jj_V;)w/*~t=a_~","rs}q>GA_","Mr2z_l/_","^Z5qf^!","6<x`|>C_","uR:9)HZ_","ff~(JK#)","|QsvGGl_","\"s^`7a5Y6","b,8`","$[y{LGgpA;l.Q3~$M&KMg(4^&.eSvDRC]$O|Vq:(6xb[X/:cmAx`","2|zcwxj2,","O+wh;K87","A|mS]9^6,","kbU>DI$OGc\"dGlAf5;ox.L:Z7","joV}rSK4dDT[p","oG\"(SL,#,","W|U>","<<ahSx~","&o<hg:,I`","&oUKg:,I`","j^c=","]aS`?GhLG`/i%_Mm[.lEBZMl<","|rN|%[C26KK2^dO","#$&M$W3)|@","hcM2ES~SSSs1Tu",",$L>qIw@ls1sV*c|dQ#M?IvZ.=5|bVyD8|u","[MIJhp;Cf}8vd0WtTa:,wGHZn.j{Y$;t@RVz,*,D50;7Tdo+5#JMzcc)","$6k,%J+i<oU^+oo","8}Xvq/W\"P0b(BdyZ_M\"(+WJ?eM}|Kel&","r,ZqG3oGsy?(109iPa&`6/k71Q[WK+^A6EYXz,=m$t","B,]~i[#,:``a!88dV#}{a8mDpox01+H5BWP,7SZOK}>CUVS\"AlN{Y","I5fR\"3=ozMC]\"8mke8`,o(3)h.)9Ii(+X[u","98^E&TD[MtCXLQk56fJW|2mDHo?To8b5",";RwW<Qy\"wL1F4Dpdf#=qTlRC.T7IVupDR,3~>(77W}","irJ<#lQ_","F.x`Sc]@)SwjwJHZ*}</H+v($t{ajg8cq.j`$T_i)QD1WQ6i_]2X","KVHX<Zr)Ztz]Uu|$%#9wm?HZ(0tZGQiPf|~X","yQY2w(kzl@GlXAqtD`A,oG+2_Oql!J?An!","Oa;dd+Sr\"@Jj=Avkw8)Y&W%pytA,S+qcvZ%vHIXmBO1@lo6","~Qi9kvkXFt0#$wC@uf)d%V@Hn07vF0Bi,MOKaK_;0s!wseuL5Q#6","*M$(wGs)>SxR}sJkM`_","bFaXqIN7ZOpO]G8duO3qJ18lIML.XAJtb}`>V*\"t6","ILI|)wpmEO}u#8.YLQS<MZVIeQZ.RVxrhV,w%+v@]Q/","%VqJ$$9DDxMF_GF+K}.KIwl2yx7iE<,5iaz5$^X)[*^TtA`|..:M?39Xu","r`DR5+xO2x^sc09$Y`O(V*0xP}","4WzXf^M*U#.SRVOcuS.`Qw~mg.@onEeZb6cENg.iV.srbD%DWLpJf^&l[#+","H#hRm7O*Ls_6[wfAAMjER79\"$x&u]k{}jR2qCgbi;}BW!u\"Y5\"|<","xMO|eIr\">S&..EWcm[I5Y2Px$o&0FGvtxMq(G+(O7st1Kdvck}1`A&L\"<oE","sJ69e2}CfLUIFoPAw,t{","lOVzkJ!;To7|_kOt","#a]zO8A_/`3l&VSL.Mc6DMQ@A#w;3A=","Nf\"(Mc316x>@O7Sr`ExE8Tft%*KkAGSPE}_","|s>JC&C(v;0wN<!\"Da9?.Q`ot`;u$<Y\"N}B\"p3!","+\"U(!c:l5L!aV3odZQ]~EF:_","`@2\"3N#o]Ot|[i?kka+|1N,r@O","z8yXe9<C%}^Bbi!rilwW@>nHi}5}yw:&Z8;6:KFY(}RKD*`|pPH<[QS\"Ss?q)","cO{RwZa@1Q;*Pg;","OO,RgcP2Mx+{{~Oc2JKE/,5@#`5ilo;","S8yXKqs)o.wBYA^&~M(q{/2l!sJl)","OAB~.bS)~*G;5J6@1#R6DWt)@`%SbJ#$>WMX4>SI1z9wo~","raB{Qlk7Q;?)~8.iN60KDgZ(t`>Sj~",",$r9z?2xROcZxddrqa!`@+\"DF*cV\"<Pc4#*q0K!","p816%9Ui=00$:7>&Tug|9M6i\"0KF{e[moOl2PTU_","9s`dcM\"zTL","(6i>0KEp+x+2Y$:}`f.|Sl&&@`.W$:%5%W`>,e=muMBWd_","\"\"@d?G_FE[0wmguYu]~/mawY_Ss1<:f+8}1v=H_ixO801_,m","VLO\"ZaY@]t~e^7S\"KaLd6.wY\"]><p<]L>6{ws+!","UL[,y/5CdLj$r_","I}/d}>HZf.s6hiI@_S&6","VAS<9MPi4#Iq7*LdZ[JE;.Go50^;*k)|\"`N|Z>VDQ0X1Xe)Cl.(;#w}^50`g)","s[*\",Ff7zM(j.I|$a|L6A[GDW}4[vuZCK`(;Ra!","@&/dxC`GCxwW*$`|@O6|$^GI6*>=nEVm|ap5G+g)","pu/;2l3\")`NXs_=","S8]z[q9t^sWFK**Ccf!Yg,Ml[*EvBF)C"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
|
||||
@@ -1,25 +0,0 @@
|
||||
/*
|
||||
活动名称:店铺签到 · 超级无线
|
||||
环境变量:多活动id用逗号分开,不同环境变量对应不同链接类型,注意区分
|
||||
|
||||
LZKJ_SEVENDAY https://lzkj-isv.isvjcloud.com/sign/sevenDay/signActivity?activityId=<活动id>
|
||||
LZKJ_SIGN https://lzkj-isv.isvjcloud.com/sign/signActivity2?activityId=<活动id>
|
||||
CJHY_SEVENDAY https://cjhy-isv.isvjcloud.com/sign/sevenDay/signActivity?activityId=<活动id>
|
||||
CJHY_SIGN https://cjhy-isv.isvjcloud.com/sign/signActivity?activityId=<活动id>
|
||||
|
||||
下方例子: 单个无需 , 多活动id用逗号分开
|
||||
export LZKJ_SEVENDAY="xxxx,xxxx,xxxxx"
|
||||
export LZKJ_SIGN="xxxx,xxxx,xxxxx"
|
||||
export CJHY_SEVENDAY="xxxx,xxxx,xxxxx"
|
||||
export CJHY_SIGN="xxxx,xxxx,xxxxx"
|
||||
export jd_sevenDay_blacklist="" 黑名单 用&隔开 pin值
|
||||
|
||||
默认不会入会,开启请设置变量 WXSIGNRH=true;
|
||||
cron: 1 1 11 1 * jd_sevenDay.js
|
||||
updatetime:2023/11/01
|
||||
*/
|
||||
|
||||
const $ = new Env('超级无线店铺签到');
|
||||
const _0xbd71bc=_0x49a9;(function(_0x1d25c6,_0x58e66f){const _0x387808={_0x433ebf:'0x1d8',_0x5ce58f:'cZMN',_0x151fd6:'0x5bd',_0x47a988:'fyqJ',_0x1b395e:'0x3e1',_0xd161e3:'2&tV',_0x26b841:'0x89c',_0x226a62:'xDEe',_0x23293b:'0x2ec',_0x45e36b:'sYLs',_0x4cf668:'0x3dc',_0x49ea69:'Qi!9',_0x304c3c:'0x5aa',_0x166562:'9V*#',_0x14dbf4:'0x4ac',_0x4638ac:'2We*',_0x4bfd7c:'0x3c1',_0x364777:'V0HP',_0x37ba78:'0x811',_0x4216de:']8$T',_0x90776:'0x827',_0x4d6050:'NU^V'},_0x4b471a=_0x49a9,_0x424e38=_0x1d25c6();while(!![]){try{const _0x37a8c0=-parseInt(_0x4b471a(_0x387808._0x433ebf,_0x387808._0x5ce58f))/(-0x1a21+-0x231e+-0x620*-0xa)+-parseInt(_0x4b471a(_0x387808._0x151fd6,_0x387808._0x47a988))/(0x25a+0x926+-0xb7e)+-parseInt(_0x4b471a(_0x387808._0x1b395e,_0x387808._0xd161e3))/(-0x1a7e+-0x1*0x1757+0x31d8)*(-parseInt(_0x4b471a(_0x387808._0x26b841,_0x387808._0x226a62))/(-0x9*0x1bf+0x1dd2+-0xe17))+-parseInt(_0x4b471a(_0x387808._0x23293b,_0x387808._0x45e36b))/(0x1c38+0xd87*0x1+-0x29ba)*(parseInt(_0x4b471a(_0x387808._0x4cf668,_0x387808._0x49ea69))/(0x1d*-0xd0+0xedd+0x8b9))+parseInt(_0x4b471a(_0x387808._0x304c3c,_0x387808._0x166562))/(-0x913+0xe5f+0x1*-0x545)*(parseInt(_0x4b471a(_0x387808._0x14dbf4,_0x387808._0x4638ac))/(-0x1226*-0x2+-0x246d+-0x1*-0x29))+parseInt(_0x4b471a(_0x387808._0x4bfd7c,_0x387808._0x364777))/(-0x6*-0x22b+0x1708+-0x2401)*(-parseInt(_0x4b471a(_0x387808._0x37ba78,_0x387808._0x4216de))/(0x34*-0x2+0xc99+-0xc27))+parseInt(_0x4b471a(_0x387808._0x90776,_0x387808._0x4d6050))/(-0x1832+0x1a*0x1c+0x1565);if(_0x37a8c0===_0x58e66f)break;else _0x424e38['push'](_0x424e38['shift']());}catch(_0x3f47e2){_0x424e38['push'](_0x424e38['shift']());}}}(_0x5f3d,0x133af2*0x1+-0x1*-0x1977c5+-0x1e7bc2));const _0x402b27=(function(){const _0x1066e4={_0x2f7ec1:'0x70f',_0x526030:'fyqJ',_0x327fc9:'0x82b',_0x354e0b:'ljG1'},_0x1a995f={_0x203843:'0x66e',_0x44a490:'X0M4',_0x3f1092:'0x6dd',_0x15588f:'MizT',_0x14e967:'0x6ba',_0x1a5708:'nz*j',_0x532bfe:'0x682',_0x5547a4:'fyqJ',_0x33fd1b:'0x4a7',_0x2842b6:'UpZx',_0x3af0e5:'0x234',_0x710a10:'ljG1'},_0x410272=_0x49a9,_0x17f79a={};_0x17f79a[_0x410272(_0x1066e4._0x2f7ec1,_0x1066e4._0x526030)]=_0x410272(_0x1066e4._0x327fc9,_0x1066e4._0x354e0b);const _0x674040=_0x17f79a;let _0x4283f5=!![];return function(_0x2df025,_0x2d7706){const _0x546688=_0x4283f5?function(){const _0x2b4a53=_0x49a9;if(_0x2d7706){if(_0x2b4a53(_0x1a995f._0x203843,_0x1a995f._0x44a490)===_0x674040[_0x2b4a53(_0x1a995f._0x3f1092,_0x1a995f._0x15588f)]){const _0x481878=_0x2d7706[_0x2b4a53(_0x1a995f._0x14e967,_0x1a995f._0x1a5708)](_0x2df025,arguments);return _0x2d7706=null,_0x481878;}else _0x1f4a79[_0x2b4a53(_0x1a995f._0x532bfe,_0x1a995f._0x5547a4)]('','❌\x20'+_0x5555ac[_0x2b4a53(_0x1a995f._0x33fd1b,_0x1a995f._0x2842b6)]+_0x2b4a53(_0x1a995f._0x3af0e5,_0x1a995f._0x710a10)+_0x37bc7f+'!','');}}:function(){};return _0x4283f5=![],_0x546688;};}()),_0x565cbf=_0x402b27(this,function(){const _0xdac321={_0x1f8b69:'0x867',_0x50c88e:'Q@H9',_0x4870ea:'0x7ed',_0x2b1cbd:'3KOj',_0x3dea65:'0x53a',_0x351236:'aPf5',_0x3fde12:'0x6de',_0x48ed02:'d$2a',_0x3d9835:'0x1b0',_0x532947:'[[j2',_0x2a8e1b:'0x2dd',_0x3f017b:'xDEe',_0x25c6ae:'0x69a',_0x2f8c0f:'a)&['},_0x1fc35a=_0x49a9;return _0x565cbf[_0x1fc35a(_0xdac321._0x1f8b69,_0xdac321._0x50c88e)]()[_0x1fc35a(_0xdac321._0x4870ea,_0xdac321._0x2b1cbd)](_0x1fc35a(_0xdac321._0x3dea65,_0xdac321._0x351236))[_0x1fc35a(_0xdac321._0x3fde12,_0xdac321._0x48ed02)]()[_0x1fc35a(_0xdac321._0x3d9835,_0xdac321._0x532947)](_0x565cbf)[_0x1fc35a(_0xdac321._0x2a8e1b,_0xdac321._0x3f017b)](_0x1fc35a(_0xdac321._0x25c6ae,_0xdac321._0x2f8c0f));});_0x565cbf();const _0x4d9690=(function(){const _0x430492={_0x5b5dcc:'0x57b',_0x38acfd:'#@!y'};let _0x146687=!![];return function(_0x9b6703,_0x5b6084){const _0x2ed914=_0x146687?function(){const _0x1fb9e8=_0x49a9;if(_0x5b6084){const _0xe4ab08=_0x5b6084[_0x1fb9e8(_0x430492._0x5b5dcc,_0x430492._0x38acfd)](_0x9b6703,arguments);return _0x5b6084=null,_0xe4ab08;}}:function(){};return _0x146687=![],_0x2ed914;};}());(function(){const _0x16ab5a={_0x13eaae:'0x78c',_0x38af15:'!s1z',_0x521c48:'0x250',_0x4fd3c8:'V0HP',_0x14d7ee:'0x486',_0x1b0219:'(q[4',_0x38bb2c:'0x2c3',_0x377048:'EdBQ',_0x282b02:'0x4e5',_0x79fee7:'PETP',_0x36c9dc:'0x710',_0xdff8af:'EdBQ',_0x37ef3f:'0x62f',_0x262c0a:'V0HP',_0x530f0e:'0x7d7',_0x3c8b07:'RY9z',_0x204459:'0x601',_0x2b543f:'PETP'},_0x5ba7a5={_0xb964bb:'0x283',_0x29c4b0:'8&pr',_0x9a7281:'0x287',_0x166fdf:'NU^V',_0x3cbe41:'0x891',_0x193fdd:'7JgN',_0x769754:'0x581',_0x3915c6:'MizT',_0x47caa0:'0x224',_0x3ea35c:'UXQM',_0x277b30:'0x3a3',_0x42e17:'7]CB',_0x164e44:'0x522',_0x187fff:'7JgN',_0x299593:'0x305',_0x5d9fee:'eA0q',_0x482496:'0x53c',_0x1434a7:'Pr^5',_0x246962:'0x7fa',_0x205b97:'2&tV',_0x3afb67:'0x67c',_0x150c11:'48!M',_0x552c27:'0x824',_0x24127e:'7JgN'},_0x35a0f5=_0x49a9,_0x29b536={};_0x29b536[_0x35a0f5(_0x16ab5a._0x13eaae,_0x16ab5a._0x38af15)]=_0x35a0f5(_0x16ab5a._0x521c48,_0x16ab5a._0x4fd3c8),_0x29b536[_0x35a0f5(_0x16ab5a._0x14d7ee,_0x16ab5a._0x1b0219)]=_0x35a0f5(_0x16ab5a._0x38bb2c,_0x16ab5Line truncated
|
||||
!function (n) { "use strict"; function t(n, t) { var r = (65535 & n) + (65535 & t); return (n >> 16) + (t >> 16) + (r >> 16) << 16 | 65535 & r } function r(n, t) { return n << t | n >>> 32 - t } function e(n, e, o, u, c, f) { return t(r(t(t(e, n), t(u, f)), c), o) } function o(n, t, r, o, u, c, f) { return e(t & r | ~t & o, n, t, u, c, f) } function u(n, t, r, o, u, c, f) { return e(t & o | r & ~o, n, t, u, c, f) } function c(n, t, r, o, u, c, f) { return e(t ^ r ^ o, n, t, u, c, f) } function f(n, t, r, o, u, c, f) { return e(r ^ (t | ~o), n, t, u, c, f) } function i(n, r) { n[r >> 5] |= 128 << r % 32, n[14 + (r + 64 >>> 9 << 4)] = r; var e, i, a, d, h, l = 1732584193, g = -271733879, v = -1732584194, m = 271733878; for (e = 0; e < n.length; e += 16)i = l, a = g, d = v, h = m, g = f(g = f(g = f(g = f(g = c(g = c(g = c(g = c(g = u(g = u(g = u(g = u(g = o(g = o(g = o(g = o(g, v = o(v, m = o(m, l = o(l, g, v, m, n[e], 7, -680876936), g, v, n[e + 1], 12, -389564586), l, g, n[e + 2], 17, 606105819), m, l, n[e + 3], 22, -1044525330), v = o(v, m = o(m, l = o(l, g, v, m, n[e + 4], 7, -176418897), g, v, n[e + 5], 12, 1200080426), l, g, n[e + 6], 17, -1473231341), m, l, n[e + 7], 22, -45705983), v = o(v, m = o(m, l = o(l, g, v, m, n[e + 8], 7, 1770035416), g, v, n[e + 9], 12, -1958414417), l, g, n[e + 10], 17, -42063), m, l, n[e + 11], 22, -1990404162), v = o(v, m = o(m, l = o(l, g, v, m, n[e + 12], 7, 1804603682), g, v, n[e + 13], 12, -40341101), l, g, n[e + 14], 17, -1502002290), m, l, n[e + 15], 22, 1236535329), v = u(v, m = u(m, l = u(l, g, v, m, n[e + 1], 5, -165796510), g, v, n[e + 6], 9, -1069501632), l, g, n[e + 11], 14, 643717713), m, l, n[e], 20, -373897302), v = u(v, m = u(m, l = u(l, g, v, m, n[e + 5], 5, -701558691), g, v, n[e + 10], 9, 38016083), l, g, n[e + 15], 14, -660478335), m, l, n[e + 4], 20, -405537848), v = u(v, m = u(m, l = u(l, g, v, m, n[e + 9], 5, 568446438), g, v, n[e + 14], 9, -1019803690), l, g, n[e + 3], 14, -187363961), m, l, n[e + 8], 20, 1163531501), v = u(v, m = u(m, l = u(l, g, v, m, n[e + 13], 5, -1444681467), g, v, n[e + 2], 9, -51403784), l, g, n[e + 7], 14, 1735328473), m, l, n[e + 12], 20, -1926607734), v = c(v, m = c(m, l = c(l, g, v, m, n[e + 5], 4, -378558), g, v, n[e + 8], 11, -2022574463), l, g, n[e + 11], 16, 1839030562), m, l, n[e + 14], 23, -35309556), v = c(v, m = c(m, l = c(l, g, v, m, n[e + 1], 4, -1530992060), g, v, n[e + 4], 11, 1272893353), l, g, n[e + 7], 16, -155497632), m, l, n[e + 10], 23, -1094730640), v = c(v, m = c(m, l = c(l, g, v, m, n[e + 13], 4, 681279174), g, v, n[e], 11, -358537222), l, g, n[e + 3], 16, -722521979), m, l, n[e + 6], 23, 76029189), v = c(v, m = c(m, l = c(l, g, v, m, n[e + 9], 4, -640364487), g, v, n[e + 12], 11, -421815835), l, g, n[e + 15], 16, 530742520), m, l, n[e + 2], 23, -995338651), v = f(v, m = f(m, l = f(l, g, v, m, n[e], 6, -198630844), g, v, n[e + 7], 10, 1126891415), l, g, n[e + 14], 15, -1416354905), m, l, n[e + 5], 21, -57434055), v = f(v, m = f(m, l = f(l, g, v, m, n[e + 12], 6, 1700485571), g, v, n[e + 3], 10, -1894986606), l, g, n[e + 10], 15, -1051523), m, l, n[e + 1], 21, -2054922799), v = f(v, m = f(m, l = f(l, g, v, m, n[e + 8], 6, 1873313359), g, v, n[e + 15], 10, -30611744), l, g, n[e + 6], 15, -1560198380), m, l, n[e + 13], 21, 1309151649), v = f(v, m = f(m, l = f(l, g, v, m, n[e + 4], 6, -145523070), g, v, n[e + 11], 10, -1120210379), l, g, n[e + 2], 15, 718787259), m, l, n[e + 9], 21, -343485551), l = t(l, i), g = t(g, a), v = t(v, d), m = t(m, h); return [l, g, v, m] } function a(n) { var t, r = "", e = 32 * n.length; for (t = 0; t < e; t += 8)r += String.fromCharCode(n[t >> 5] >>> t % 32 & 255); return r } function d(n) { var t, r = []; for (r[(n.length >> 2) - 1] = void 0, t = 0; t < r.length; t += 1)r[t] = 0; var e = 8 * n.length; for (t = 0; t < e; t += 8)r[t >> 5] |= (255 & n.charCodeAt(t / 8)) << t % 32; return r } function h(n) { return a(i(d(n), 8 * n.length)) } function l(n, t) { var r, e, o = d(n), u = [], c = []; for (u[15] = c[15] = void 0, o.length > 16 && (o = i(o, 8 * n.length)), r = 0; r < 16; r += 1)u[r] = 909522486 ^ o[r], c[r] = 1549556828 ^ o[r]; return e = i(u.concat(d(t)), 512 + 8 * t.length), a(i(c.concat(e), 640)) } function g(n) { var t, r, e = ""; for (r = 0; r < n.length; r += 1)t = n.charCodeAt(r), e += "0123456789abcdef".charAt(t >>> 4 & 15) + "0123456789abcdef".charAt(15 & t); return e } function v(n) { return unescape(encodeURIComponent(n)) } function m(n) { return h(v(n)) } function p(n) { return g(m(n)) } function s(n, t) { return l(v(n), v(t)) } function C(n, t) { return g(s(n, t)) } function A(n, t, r) { return t ? r ? s(t, n) : C(t, n) : r ? m(n) : p(n) } $.md5 = A }(this);
|
||||
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.data[t] || null } setval(t, e) { return this.isSurge() || this.isLoon() ? $persistentStore.write(t, e) : this.isQuanX() ? $prefs.setValueForKey(t, e) : this.isNode() ? (this.data = this.loaddata(), this.data[e] = t, this.writedata(), !0) : this.data && this.data[e] || null } initGotEnv(t) { this.got = this.got ? this.got : require("got"), this.cktough = this.cktough ? this.cktough : require("tough-cookie"), this.ckjar = this.ckjar ? this.ckjar : new this.cktough.CookieJar, t && (t.headers = t.headers ? t.headers : {}, void 0 === t.headers.Cookie && void 0 === t.cookieJar && (t.cookieJar = this.ckjar)) } get(t, e = (() => { })) { t.headers && (delete t.headers["Content-Type"], delete t.headers["Content-Length"]), this.isSurge() || this.isLoon() ? (this.isSurge() && this.isNeedRewrite && (t.headers = t.headers || {}, Object.assign(t.headers, { "X-Surge-Skip-Scripting": !1 })), $httpClient.get(tLine truncated
|
||||
@@ -1,25 +0,0 @@
|
||||
/*
|
||||
活动名称:店铺签到 · 超级无线
|
||||
环境变量:多活动id用逗号分开,不同环境变量对应不同链接类型,注意区分
|
||||
|
||||
LZKJ_SEVENDAY_JF https://lzkj-isv.isvjcloud.com/sign/sevenDay/signActivity?activityId=<活动id>
|
||||
LZKJ_SIGN_JF https://lzkj-isv.isvjcloud.com/sign/signActivity2?activityId=<活动id>
|
||||
CJHY_SEVENDAY_JF https://cjhy-isv.isvjcloud.com/sign/sevenDay/signActivity?activityId=<活动id>
|
||||
CJHY_SIGN_JF https://cjhy-isv.isvjcloud.com/sign/signActivity?activityId=<活动id>
|
||||
|
||||
下方例子: 单个无需 , 多活动id用逗号分开
|
||||
export LZKJ_SEVENDAY_JF="xxxx,xxxx,xxxxx"
|
||||
export LZKJ_SIGN_JF="xxxx,xxxx,xxxxx"
|
||||
export CJHY_SEVENDAY_JF="xxxx,xxxx,xxxxx"
|
||||
export CJHY_SIGN_JF="xxxx,xxxx,xxxxx"
|
||||
export jd_sevenDay_blacklist="" 黑名单 用&隔开 pin值
|
||||
|
||||
默认不会入会,开启请设置变量 WXSIGNRH=true;
|
||||
cron: 1 1 1 1 * jd_wxsign_jf.js
|
||||
|
||||
*/
|
||||
|
||||
const $ = new Env('超级无线店铺签到(积分)');
|
||||
var _0xodD='jsjiami.com.v7';const _0x4f044f=_0x1804;(function(_0x5a31ee,_0x34c396,_0x43bfa4,_0x5de4c1,_0x2bca04,_0x2a4889,_0x53e649){return _0x5a31ee=_0x5a31ee>>0x3,_0x2a4889='hs',_0x53e649='hs',function(_0x3a044a,_0x2546ac,_0x24654c,_0x1ef833,_0x18d231){const _0x36a8dc=_0x1804;_0x1ef833='tfi',_0x2a4889=_0x1ef833+_0x2a4889,_0x18d231='up',_0x53e649+=_0x18d231,_0x2a4889=_0x24654c(_0x2a4889),_0x53e649=_0x24654c(_0x53e649),_0x24654c=0x0;const _0x35a993=_0x3a044a();while(!![]&&--_0x5de4c1+_0x2546ac){try{_0x1ef833=parseInt(_0x36a8dc(0xb72,'aLdI'))/0x1+parseInt(_0x36a8dc(0xa24,'OS%m'))/0x2+parseInt(_0x36a8dc(0x1c8,'&jk@'))/0x3+parseInt(_0x36a8dc(0x6de,'mASI'))/0x4*(parseInt(_0x36a8dc(0x318,'wj)y'))/0x5)+-parseInt(_0x36a8dc(0x6a9,'P(Go'))/0x6+parseInt(_0x36a8dc(0x1de,'twS)'))/0x7*(parseInt(_0x36a8dc(0x4f3,'H4O0'))/0x8)+parseInt(_0x36a8dc(0x581,'P%]*'))/0x9*(-parseInt(_0x36a8dc(0xa5b,'D$*O'))/0xa);}catch(_0x1470ec){_0x1ef833=_0x24654c;}finally{_0x18d231=_0x35a993[_0x2a4889]();if(_0x5a31ee<=_0x5de4c1)_0x24654c?_0x2bca04?_0x1ef833=_0x18d231:_0x2bca04=_0x18d231:_0x24654c=_0x18d231;else{if(_0x24654c==_0x2bca04['replace'](/[gUOCMpNyBlQeLHYktDx=]/g,'')){if(_0x1ef833===_0x2546ac){_0x35a993['un'+_0x2a4889](_0x18d231);break;}_0x35a993[_0x53e649](_0x18d231);}}}}}(_0x43bfa4,_0x34c396,function(_0x12951b,_0x4542e1,_0x69689e,_0x53f6ff,_0x40e171,_0x540d26,_0x19f66d){return _0x4542e1='\x73\x70\x6c\x69\x74',_0x12951b=arguments[0x0],_0x12951b=_0x12951b[_0x4542e1](''),_0x69689e=`\x72\x65\x76\x65\x72\x73\x65`,_0x12951b=_0x12951b[_0x69689e]('\x76'),_0x53f6ff=`\x6a\x6f\x69\x6e`,(0x164a8f,_0x12951b[_0x53f6ff](''));});}(0x658,0x5b645,_0x1657,0xcd),_0x1657)&&(_0xodD=0xcd);const _0x3c62d4=(function(){let _0x389e38=!![];return function(_0x3a9ccc,_0x2f152b){const _0x5ad00a=_0x389e38?function(){const _0x550573=_0x1804;if(_0x2f152b){const _0x2d29eb=_0x2f152b[_0x550573(0x8b9,'twS)')](_0x3a9ccc,arguments);return _0x2f152b=null,_0x2d29eb;}}:function(){};return _0x389e38=![],_0x5ad00a;};}()),_0x46b61e=_0x3c62d4(this,function(){const _0x380e97=_0x1804,_0x20d1dd={'rmVqP':_0x380e97(0x94b,'KNv3')};return _0x46b61e[_0x380e97(0x987,'KNv3')]()[_0x380e97(0x573,'m[@b')](_0x20d1dd[_0x380e97(0x92b,'wgZL')])[_0x380e97(0x249,'twS)')]()[_0x380e97(0xa44,'W2io')](_0x46b61e)[_0x380e97(0x8d0,'J9!@')](_0x20d1dd[_0x380e97(0x422,'Igw!')]);});_0x46b61e();const _0x36ee51=$[_0x4f044f(0x8e6,'xwmp')]()?require(_0x4f044f(0xae4,'Ws[D')):'',_0x5b67d7=$[_0x4f044f(0xb2f,'dYFS')]()?require(_0x4f044f(0x6c7,'HXJn')):'',_0x15c39a=require(_0x4f044f(0x87c,'xwmp')),_0x5de4ef=require(_0x4f044f(0x5db,'bOEY')),_0x3c0d8f=require(_0x4f044f(0xb53,'#kmT')),_0x1bc921=require(_0x4f044f(0x381,'aLdI'))[_0x4f044f(0x718,'DzZe')],_0x568cdc=require('fs');if(process[_0x4f044f(0xb76,'k@ot')][_0x4f044f(0x248,'ls95')]){const _0x20b90a=require(_0x4f044f(0x73e,'k@ot'));$[_0x4f044f(0x293,'OhTL')]=_0x20b90a[_0x4f044f(0x47d,'BX7t')]($[_0x4f044f(0x920,'r&3W')][_0x4f044f(0x967,'drIr')]($)),$[_0x4f044f(0x278,'&jk@')]=_0x20b90a[_0x4f044f(0x47d,'BX7t')]($[_0x4f044f(0xa13,'wj)y')][_0x4f044f(0x43f,'dYFS')]($));}function _0x1804(_0x350fc4,_0x4120e){const _0x20e247=_0x1657();return _0x1804=function(_0x322950,_0x2d01d0){_0x322950=_0x322950-0x18f;let _0x1657b4=_0x20e247[_0x322950];if(_0x1804['QGvGNC']===undefined){var _0x1804c3=function(_0x440c31){const _0x57c5c7='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x381765='',_0x2cfd32='',_0xf863cb=_0x381765+_0x1804c3;for(let _0x45a83a=0x0,_0x5a55bd,_0xbd821,_0x5ce1f6=0x0;_0xbd821=_0x440c31['charAt'](_0x5ce1f6++);~_0xbd821&&(_0x5a55bd=_0x45a83a%0x4?_0x5a55bd*0x40+_0xbd821:_0xbd821,_0x45a83a++%0x4)?_0x381765+=_0xf863cb['charCodeAt'](_0x5ce1f6+0xa)-0xa!==0x0?String['fromCharCode'](0xff&_0x5a55bd>>(-0x2*_0x45a83a&0x6)):_0x45a83a:0x0){_0xbd821=_0x57c5c7['indexOf'](_0xbd821);}for(let _0x170b9c=0x0,_0x37804d=_0x381765['length'];_0x170b9c<_0x37804d;_0x170b9c++){_0x2cfd32+='%'+('00'+_0x381765['charCodeAt'](_0x170b9c)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x2cfd32);};const _0x5e6266=function(_0x1701de,_0x320aa2){let _0x5d76c4=[],_0xcf119c=0x0,_0x559520,_0x2e664a='';_0x1701de=_0x1804c3(_0x1701de);let _0x533989;for(_0x533989=0x0;_0x533989<0x100;_0x533989++){_0x5d76c4[_0x533989]=_0x533989;}for(_0x533989=0x0;_0x533989<0x100;_0x533989++){_0xcf119c=(_0xcf119c+_0x5d76c4[_0x533989]+_0x320aa2['charCodeAt'](_0x533989%_0x320aa2['length']))%0x100,_0x559520=_0x5d76c4[_0x533989],_0x5d76c4[_0x533989]=_0x5d76c4[_0xcf119c],_0x5d76c4[_0xcf119c]=_0x559520;}_0x533989=0x0,_0xcf119c=0x0;for(let _0x3caabc=0x0;_0x3caabc<_0x1701de['length'];_0x3caabc++){_0x533989=(_0x533989+0x1)%0x100,_0xcf119c=(_0xcf119c+_0x5d76c4[_0x533989])%0x100,_0x559520=_0x5d76c4[_0x533989],_0x5d76c4[_0x533989]=_0x5d76c4[_0xcf119c],_0x5d76c4[_0xcf119c]=_0x559520,_0x2e664a+=String['fromCharCode'](_0x1701de['charCodeAt'](_0x3caabc)^_0x5d76c4[(_0x5d76c4[_0x533989]+_0x5d76c4[_0xcf119c])%0x100]);}return _0x2e664a;};_0x1804['UMgEbB']=_0x5e6266,_0x350fc4=arguments,_0x1804['QGvGNC']=!![];}constLine truncated
|
||||
!function (n) { "use strict"; function t(n, t) { var r = (65535 & n) + (65535 & t); return (n >> 16) + (t >> 16) + (r >> 16) << 16 | 65535 & r } function r(n, t) { return n << t | n >>> 32 - t } function e(n, e, o, u, c, f) { return t(r(t(t(e, n), t(u, f)), c), o) } function o(n, t, r, o, u, c, f) { return e(t & r | ~t & o, n, t, u, c, f) } function u(n, t, r, o, u, c, f) { return e(t & o | r & ~o, n, t, u, c, f) } function c(n, t, r, o, u, c, f) { return e(t ^ r ^ o, n, t, u, c, f) } function f(n, t, r, o, u, c, f) { return e(r ^ (t | ~o), n, t, u, c, f) } function i(n, r) { n[r >> 5] |= 128 << r % 32, n[14 + (r + 64 >>> 9 << 4)] = r; var e, i, a, d, h, l = 1732584193, g = -271733879, v = -1732584194, m = 271733878; for (e = 0; e < n.length; e += 16)i = l, a = g, d = v, h = m, g = f(g = f(g = f(g = f(g = c(g = c(g = c(g = c(g = u(g = u(g = u(g = u(g = o(g = o(g = o(g = o(g, v = o(v, m = o(m, l = o(l, g, v, m, n[e], 7, -680876936), g, v, n[e + 1], 12, -389564586), l, g, n[e + 2], 17, 606105819), m, l, n[e + 3], 22, -1044525330), v = o(v, m = o(m, l = o(l, g, v, m, n[e + 4], 7, -176418897), g, v, n[e + 5], 12, 1200080426), l, g, n[e + 6], 17, -1473231341), m, l, n[e + 7], 22, -45705983), v = o(v, m = o(m, l = o(l, g, v, m, n[e + 8], 7, 1770035416), g, v, n[e + 9], 12, -1958414417), l, g, n[e + 10], 17, -42063), m, l, n[e + 11], 22, -1990404162), v = o(v, m = o(m, l = o(l, g, v, m, n[e + 12], 7, 1804603682), g, v, n[e + 13], 12, -40341101), l, g, n[e + 14], 17, -1502002290), m, l, n[e + 15], 22, 1236535329), v = u(v, m = u(m, l = u(l, g, v, m, n[e + 1], 5, -165796510), g, v, n[e + 6], 9, -1069501632), l, g, n[e + 11], 14, 643717713), m, l, n[e], 20, -373897302), v = u(v, m = u(m, l = u(l, g, v, m, n[e + 5], 5, -701558691), g, v, n[e + 10], 9, 38016083), l, g, n[e + 15], 14, -660478335), m, l, n[e + 4], 20, -405537848), v = u(v, m = u(m, l = u(l, g, v, m, n[e + 9], 5, 568446438), g, v, n[e + 14], 9, -1019803690), l, g, n[e + 3], 14, -187363961), m, l, n[e + 8], 20, 1163531501), v = u(v, m = u(m, l = u(l, g, v, m, n[e + 13], 5, -1444681467), g, v, n[e + 2], 9, -51403784), l, g, n[e + 7], 14, 1735328473), m, l, n[e + 12], 20, -1926607734), v = c(v, m = c(m, l = c(l, g, v, m, n[e + 5], 4, -378558), g, v, n[e + 8], 11, -2022574463), l, g, n[e + 11], 16, 1839030562), m, l, n[e + 14], 23, -35309556), v = c(v, m = c(m, l = c(l, g, v, m, n[e + 1], 4, -1530992060), g, v, n[e + 4], 11, 1272893353), l, g, n[e + 7], 16, -155497632), m, l, n[e + 10], 23, -1094730640), v = c(v, m = c(m, l = c(l, g, v, m, n[e + 13], 4, 681279174), g, v, n[e], 11, -358537222), l, g, n[e + 3], 16, -722521979), m, l, n[e + 6], 23, 76029189), v = c(v, m = c(m, l = c(l, g, v, m, n[e + 9], 4, -640364487), g, v, n[e + 12], 11, -421815835), l, g, n[e + 15], 16, 530742520), m, l, n[e + 2], 23, -995338651), v = f(v, m = f(m, l = f(l, g, v, m, n[e], 6, -198630844), g, v, n[e + 7], 10, 1126891415), l, g, n[e + 14], 15, -1416354905), m, l, n[e + 5], 21, -57434055), v = f(v, m = f(m, l = f(l, g, v, m, n[e + 12], 6, 1700485571), g, v, n[e + 3], 10, -1894986606), l, g, n[e + 10], 15, -1051523), m, l, n[e + 1], 21, -2054922799), v = f(v, m = f(m, l = f(l, g, v, m, n[e + 8], 6, 1873313359), g, v, n[e + 15], 10, -30611744), l, g, n[e + 6], 15, -1560198380), m, l, n[e + 13], 21, 1309151649), v = f(v, m = f(m, l = f(l, g, v, m, n[e + 4], 6, -145523070), g, v, n[e + 11], 10, -1120210379), l, g, n[e + 2], 15, 718787259), m, l, n[e + 9], 21, -343485551), l = t(l, i), g = t(g, a), v = t(v, d), m = t(m, h); return [l, g, v, m] } function a(n) { var t, r = "", e = 32 * n.length; for (t = 0; t < e; t += 8)r += String.fromCharCode(n[t >> 5] >>> t % 32 & 255); return r } function d(n) { var t, r = []; for (r[(n.length >> 2) - 1] = void 0, t = 0; t < r.length; t += 1)r[t] = 0; var e = 8 * n.length; for (t = 0; t < e; t += 8)r[t >> 5] |= (255 & n.charCodeAt(t / 8)) << t % 32; return r } function h(n) { return a(i(d(n), 8 * n.length)) } function l(n, t) { var r, e, o = d(n), u = [], c = []; for (u[15] = c[15] = void 0, o.length > 16 && (o = i(o, 8 * n.length)), r = 0; r < 16; r += 1)u[r] = 909522486 ^ o[r], c[r] = 1549556828 ^ o[r]; return e = i(u.concat(d(t)), 512 + 8 * t.length), a(i(c.concat(e), 640)) } function g(n) { var t, r, e = ""; for (r = 0; r < n.length; r += 1)t = n.charCodeAt(r), e += "0123456789abcdef".charAt(t >>> 4 & 15) + "0123456789abcdef".charAt(15 & t); return e } function v(n) { return unescape(encodeURIComponent(n)) } function m(n) { return h(v(n)) } function p(n) { return g(m(n)) } function s(n, t) { return l(v(n), v(t)) } function C(n, t) { return g(s(n, t)) } function A(n, t, r) { return t ? r ? s(t, n) : C(t, n) : r ? m(n) : p(n) } $.md5 = A }(this);
|
||||
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.data[t] || null } setval(t, e) { return this.isSurge() || this.isLoon() ? $persistentStore.write(t, e) : this.isQuanX() ? $prefs.setValueForKey(t, e) : this.isNode() ? (this.data = this.loaddata(), this.data[e] = t, this.writedata(), !0) : this.data && this.data[e] || null } initGotEnv(t) { this.got = this.got ? this.got : require("got"), this.cktough = this.cktough ? this.cktough : require("tough-cookie"), this.ckjar = this.ckjar ? this.ckjar : new this.cktough.CookieJar, t && (t.headers = t.headers ? t.headers : {}, void 0 === t.headers.Cookie && void 0 === t.cookieJar && (t.cookieJar = this.ckjar)) } get(t, e = (() => { })) { t.headers && (delete t.headers["Content-Type"], delete t.headers["Content-Length"]), this.isSurge() || this.isLoon() ? (this.isSurge() && this.isNeedRewrite && (t.headers = t.headers || {}, Object.assign(t.headers, { "X-Surge-Skip-Scripting": !1 })), $httpClient.get(tLine truncated
|
||||
+1
-1
@@ -2,5 +2,5 @@
|
||||
cron: 11 9,16 * * *
|
||||
*/
|
||||
const $ = new Env('新奇盲盒');
|
||||
var rP0Llp,P_5My2O,F5y35q9,PNouFr6,O2erHP,tMtNvH,jhBtpfx,bMu_e13,rdHYea,AsZLR6,ouPmnj,_bMjh1,y3eXIl;function QjFsdd(P_5My2O,F5y35q9,PNouFr6){for(PNouFr6=0x0;PNouFr6<F5y35q9;PNouFr6++)P_5My2O.push(P_5My2O.shift());return P_5My2O}const wVNwZm=QjFsdd([0x7530,0x2000000,0x4000000,0x1e5,0x1db,0x1dd,0x0,null,0x20,0x2,0x1,0x100,0x6,0x3,0x8,0x10,0x4,"undefined","LZString",0xff,0x7,0xd,0xe,0xf,0x58,0x5b,0x1ae,0x80,0x7f,0xdf,0x1f,0x3f,0xef,0xc,0x1b4,0x12,0x1aa,0x1fff,0x55,0x56,0x57,0xa,0x3ff,0x10000,0xd800,0xdc00,0x59,0x5a,0xc0,0xe0,0xf0,0x5c,0x5d,0x5e,0x5f,0xf8,0x60,!0x1,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,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,!0x0,0xb8,0xb9,0xba,0xbb,0xbc,0xbd,0xbe,"UA",0xbf,0xc1,0xc2,0xc3,0xc4,0xc5,0xc6," ",0xc7,0xc8,0xc9,0xca,0xcb,0xcc,0xcd,"\u8D26\u53F7",0xce,0xcf,0xd0,0xd1,0xd2,0xd3,0xd4,0xd5,0xd6,0xd7,0xd8,0xd9,0xda,0xdb,0xdc,0xdd,0xde,0xe1,0xe2,0x1f4,0xe3,0x3e8,0xe4,0xe5,0xe6,0xe7,0xe8,0xe9,0xea,0xeb,0xec,0xed,0xee,0xf1,0xf2,0xf3,0xf4,0xf5,0xf6,0xf7,0xf9,0xfa,0xfb,0xfc,0xfd,0xfe,0x101,0x102,0x103,0x104,0x105,0x106,0x107,0x108,0x109,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,0x12c,0x12d,0x12e,0x12f,"8",0x130,0x131,0x132,0x133,0x134,0x135,0x136,0x137,0x138,0x139,0x13a,0x13b,"3",0x13c,0x13d,0x13e,0x13f,0x140,0x141,0x142,0x143,0x144,0x145,0x146,0x147,0x148,0x149,0x14a,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,0x7d0,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,0x1ab,0x1ac,0x1ad,0x1af,0x1b0,0x1b1,0x1b2,0x1b3,0x1b5,0x1b6,0x1b7,0x1b8,0x1b9,0x1ba,0x1bb,0x28,0x13,0x1da],0x6);hnDIMfI(rP0Llp=function(){var P_5My2O=String.fromCharCode,F5y35q9="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",PNouFr6="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-$",O2erHP={},tMtNvH;function jhBtpfx(tMtNvH,jhBtpfx){if(!O2erHP[tMtNvH]){var bMu_e13;O2erHP[tMtNvH]={};for(bMu_e13=wVNwZm[0x0];bMu_e13<tMtNvH.length;bMu_e13++)O2erHP[tMtNvH][tMtNvH.charAt(bMu_e13)]=bMu_e13}return O2erHP[tMtNvH][jhBtpfx]}tMtNvH={compressToBase64:function(PNouFr6){var O2erHP,jhBtpfx;function*bMu_e13(jhBtpfx,bMu_e13,rdHYea={KoQD5A:{}}){while(jhBtpfx+bMu_e13!==0x41)with(rdHYea.tuhK8v||rdHYea)switch(jhBtpfx+bMu_e13){case jhBtpfx- -0x73:hnDIMfI(rdHYea.KoQD5A.wHPV3x=-0xdb,rdHYea.tuhK8v=rdHYea.XrnGau,jhBtpfx+=0x46,bMu_e13+=-0x156);break;case rdHYea.KoQD5A.wHPV3x+-0x5:hnDIMfI(rdHYea.tuhK8v=rdHYea.KoQD5A,jhBtpfx+=0x4e,bMu_e13+=0x42);break;case-0xdb:case jhBtpfx!=0x6d&&jhBtpfx-0x2b:hnDIMfI(rdHYea.KoQD5A.wHPV3x=0xea,rdHYea.tuhK8v=rdHYea.KoQD5A,jhBtpfx+=0xdf,bMu_e13+=-0x95);break;case jhBtpfx-0xe3:case 0x2f:case-0x10:rdHYea.KoQD5A.wHPV3x=-0xde;if(wVNwZm[0x1]==PNouFr6)return O2erHP=!0x0,"";KoQD5A.ZwSkEt=tMtNvH._compress(PNouFr6,wVNwZm[jhBtpfx+-0xad],function(jhBtpfx){return F5y35q9.charAt(jhBtpfx)});switch(KoQD5A.ZwSkEt.length%wVNwZm[jhBtpfx+-0xa9]){default:case wVNwZm[jhBtpfx+-0xb3]:return O2erHP=!0x0,KoQD5A.ZwSkEt;case wVNwZm[0x4]:return O2erHP=!0x0,KoQD5A.ZwSkEt+"===";case wVNwZm[0x3]:return O2erHP=!0x0,KoQD5A.ZwSkEt+"==";case wVNwZm[0x7]:return O2erHP=!0x0,KoQD5A.ZwSkEt+"="}hnDIMfI(jhBtpfx+=-0x46,bMu_e13+=0xb7);break;case rdHYea.KoQD5A.wHPV3x+0x8b:case 0x71:hnDIMfI(rdHYea.tuhK8v=rdHYea.m_G132,jhBtpfx+=0x46,bMu_e13+=-0x23);break;default:hnDIMfI(rdHYea.tuhK8v=rdHYea.LpKCBH,jhBtpfx+=0x125,bMu_e13+=-0x15a);break;case bMu_e13!=-0x102&&bMu_e13- -0x1f:case-0x38:case 0xdf:hnDIMfI(rdHYea.tuhK8v=rdHYea.KoQD5A,jhBtpfx+=0x4e,bMu_e13+=-0xd5);break;case bMu_e13!=0x73&&bMu_e13!=-0xc0&&bMu_e13!=-0x2c&&bMu_e13- -0x6d:hnDIMfI(rdHYea.tuhK8v=rdHYea.KoQD5A,bMu_e13+=-0x95);break}}hnDIMfI(O2erHP=void 0x0,jhBtpfx=bMu_e13(0xb3,-0xe3).next().value);if(O2erHP){return jhBtpfx}},decompressFromBase64:function(O2erHP){return wVNwZm[0x1]==O2erHP?"":""==O2erHP?wVNwZm[0x1]:tMtNvH._decompress(O2erHP.length,wVNwZm[0x2],function(tMtNvH){return jhBtpfx(F5y35q9,O2erHP.charAt(tMtNvH))})},compressToUTF16:function(PNouFr6){return wVNwZm[0x1]==PNouFr6?"":tMtNvH._compress(PNouFr6,wVNwZm[0x11],function(O2erHP){return P_5My2O(O2erHP+wVNwZm[0x2])})+wVNwZm[0x99]},decompressFromUTF16:functiLine truncated
|
||||
var A1s_lK,qKFIsZ3,_2ILyJ,rU_GBp,lOIJMY,WhJaze,k73GA2,WMwg15Q,KnlLFb,S0uKUYK,GnSLQwj,nWaNoJb,ZK0f9EU;const Y9U58rp=[0x0,null,0x20,0x2,0x1,0x100,0x6,0x3,0x8,0x10,0x4,"undefined","LZString",0xff,0x7,0xd,0xe,0xf,0x58,0x5b,0x19e,0x80,0x7f,0xdf,0x1f,0x3f,0xef,0xc,0x1a4,0x12,0x19a,0x5f,0x60,0x61,0x1fff,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,"UA",0x7d,0x7530,0x7e,0x81,0x82,0x83,0x84,0x85,0x86,0x87,!0x1,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,0xc5,0xc6,0xc7,0xc8,0xc9,0xca,0xcb,0xcc,0xcd,0xce,0xcf,0xd0," ",0xd1,0xd2,0xd3,0xd4,0xd5,0xd6,0xd7,0xd8,"\u8D26\u53F7",0xd9,0xda,0xdb,0xdc,0xdd,0xde,0xe0,0xe1,0xe2,0xe3,0xe4,0xe5,0xe6,0xe7,0xe8,0xe9,0xa,0xea,0xeb,0xec,0xed,0x1f4,0xee,0x3e8,0xf0,0xf1,0xf2,0xf3,0xf4,0xf5,0xf6,0xf7,0xf8,0xf9,0xfa,0xfb,0xfc,0xfd,0xfe,0x101,0x102,0x103,0x104,0x105,0x106,0x107,0x108,0x109,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,0x12c,0x12d,0x12e,0x12f,0x130,0x131,0x132,0x133,0x134,0x135,0x136,0x137,0x138,0x139,0x13a,0x13b,0x13c,0x13d,0x13e,0x13f,0x140,"8",0x141,0x142,0x143,0x144,0x145,0x146,0x147,0x148,0x149,0x14a,0x14b,0x14c,"3",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,0x7d0,0x181,0x182,0x183,0x184,0x185,0x186,0x187,0x188,0x189,0x18a,0x18b,0x18c,0x18d,0x18e,0x18f,0x190,0x191,0x192,0x193,0x194,0x195,0x196,0x197,!0x0,0x198,0x199,0x19b,0x19c,0x19d,0x19f,0x1a0,0x1a1,0x1a2,0x1a3,0x1a5,0x1a6,0x1a7,0x1a8,0x1a9,0x1aa,void 0x0,0x1b4,0x1b6,0x1ba,0x1bf,0x1c0,0x1c1,0x1c2,0x1ca,0x1cf,0x1cd,0x28,0x13,0x1fa];KhgJN0(A1s_lK=function(){var qKFIsZ3=String.fromCharCode,_2ILyJ="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",rU_GBp="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-$",lOIJMY={},WhJaze;function k73GA2(WhJaze,k73GA2){if(!lOIJMY[WhJaze]){var WMwg15Q;lOIJMY[WhJaze]={};for(WMwg15Q=Y9U58rp[0x0];WMwg15Q<WhJaze.length;WMwg15Q++)lOIJMY[WhJaze][WhJaze.charAt(WMwg15Q)]=WMwg15Q}return lOIJMY[WhJaze][k73GA2]}WhJaze={compressToBase64:function(lOIJMY){var k73GA2;if(Y9U58rp[0x1]==lOIJMY)return"";k73GA2=WhJaze._compress(lOIJMY,Y9U58rp[0x6],function(k73GA2){return _2ILyJ.charAt(k73GA2)});switch(k73GA2.length%Y9U58rp[0xa]){default:case Y9U58rp[0x0]:return k73GA2;case Y9U58rp[0x4]:return k73GA2+"===";case Y9U58rp[0x3]:return k73GA2+"==";case Y9U58rp[0x7]:return k73GA2+"="}},decompressFromBase64:function(lOIJMY){return Y9U58rp[0x1]==lOIJMY?"":""==lOIJMY?Y9U58rp[0x1]:WhJaze._decompress(lOIJMY.length,Y9U58rp[0x2],function(WhJaze){return k73GA2(_2ILyJ,lOIJMY.charAt(WhJaze))})},compressToUTF16:function(rU_GBp){return Y9U58rp[0x1]==rU_GBp?"":WhJaze._compress(rU_GBp,Y9U58rp[0x11],function(lOIJMY){return qKFIsZ3(lOIJMY+Y9U58rp[0x2])})+Y9U58rp[0x93]},decompressFromUTF16:function(rU_GBp){return Y9U58rp[0x1]==rU_GBp?"":""==rU_GBp?Y9U58rp[0x1]:WhJaze._decompress(rU_GBp.length,0x4000,function(lOIJMY){return rU_GBp.charCodeAt(lOIJMY)-Y9U58rp[0x2]})},compressToUint8Array:function(WMwg15Q){for(var KnlLFb=WhJaze.compress(WMwg15Q),S0uKUYK=new Uint8Array(Y9U58rp[0x3]*KnlLFb.length),GnSLQwj=Y9U58rp[0x0],nWaNoJb=KnlLFb.length;GnSLQwj<nWaNoJb;GnSLQwj++){var ZK0f9EU=KnlLFb.charCodeAt(GnSLQwj);KhgJN0(S0uKUYK[Y9U58rp[0x3]*GnSLQwj]=ZK0f9EU>>>Y9U58rp[0x8],S0uKUYK[Y9U58rp[0x3]*GnSLQwj+Y9U58rp[0x4]]=ZK0f9EU%Y9U58rp[0x5])}return S0uKUYK},decompressFromUint8Array:function(WMwg15Q){var KnlLFb;if(Y9U58rp[0x1]==WMwg15Q)return WhJaze.decompress(WMwg15Q);for(var S0uKUYK=new Array(WMwg15Q.length/Y9U58rp[0x3]),GnSLQwj=Y9U58rp[0x0],nWaNoJb=S0uKUYK.length;GnSLQwj<nWaNoJb;GnSLQwj++)S0uKUYK[GnSLQwj]=Y9U58rp[0x5]*WMwg15Q[Y9U58rp[0x3]*GnSLQwj]+WMwg15Q[Y9U58rp[0x3]*GnSLQwj+Y9U58rp[0x4]];KnlLFb=[];return S0uKUYK.forEach(function(S0uKUYK){KnlLFb.push(qKFIsZ3(S0uKUYK))}),WhJaze.decompress(KnlLFb.join(""))},compressToEncodedURIComponent:function(_2ILyJ){return Y9U58rp[0x1]==_2ILyJ?"":WhJaze._compress(_2ILyJ,Y9U58rp[0x6],function(lOIJMY){return rU_GBp.charAt(lOIJMY)})},decompressFromEncodedURIComponent:function(lOIJMY){return Y9U58rp[0x1]==lOIJMY?"":""==lOIJMY?Y9U58rp[0x1]:(lOIJMY=lOIJMY.replace(/ /g,"+"),WhJaze._decompress(lOIJMY.length,Y9U58rp[0x2],function(WhJaze){return k73GA2(rU_GBp,lOIJMY.charAt(WhJaze))}))},compress:function(rU_GBp){return WhJaze._compress(rU_GBp,Y9U58rp[0x9],function(lOIJMY){return qKFIsZ3(lOIJMY)})},_compress:function(WMwg15Q,KLine 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
|
||||
Reference in new issue
Block a user