From 2b9d1c97c5ff685816b44482b91f109bf708e4ec Mon Sep 17 00:00:00 2001 From: Minoricew <154642983+Minoricew@users.noreply.github.com> Date: Fri, 7 Nov 2025 22:13:49 +0800 Subject: [PATCH] =?UTF-8?q?[=E2=9A=A0=20Emg=20Fix]=20Issue=20#47?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 1. [/] 将所有 JS 中的 Magic numbers 更新到最新 SSA 的对应值, 从而解决异常 2. [?] 非常不要脸地 bump 了一个 version --- .gitignore | 3 +++ README.md | 7 ++++++- package.json | 2 +- src/aura/init/zeron/hookWS.js | 2 +- src/aura/jsRewrite/vendor/passwordValidation.js | 10 +++++----- src/aura/jsRewrite/vendor/screenLock.js | 16 +++++++++------- src/core/preload.js | 2 +- 7 files changed, 26 insertions(+), 16 deletions(-) diff --git a/.gitignore b/.gitignore index 67c28fb..c59f453 100755 --- a/.gitignore +++ b/.gitignore @@ -22,3 +22,6 @@ desktop.ini # Editor Files .vscode/ + +# Misc +*.bak diff --git a/README.md b/README.md index f464ae1..db213e4 100755 --- a/README.md +++ b/README.md @@ -12,7 +12,12 @@ > 在[此处](https://github.com/HugoAura/HugoAura/wiki)查看 HugoAura 的安装教程 > [!IMPORTANT] -> 已经过测试的希沃管家版本: v1.5.4.3828 +> 已经过测试的希沃管家版本: v1.5.5.3878 + +> [!CAUTION] +> 由于作者高三学业繁忙, 项目正处于缓慢更新阶段。 +> +> 作者将尽可能抽出时间维护项目, 但新功能的实现速度将大幅降低。 > [!WARNING] > 我们正在使用 C++ 重构 PLS, 新的子项目代号为 [Aikari](https://github.com/HugoAura/HugoAura-Aikari)。其将集成 MQTT 消息中转、HugoAura 自动更新、特权操作辅助等功能。 diff --git a/package.json b/package.json index 02835b4..6a74fcf 100755 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "HugoAura", - "version": "0.1.1-beta", + "version": "0.1.1-beta-patch-1", "description": "Aura for SeewoHugo", "main": "app.asar/main.js", "dependencies": {}, diff --git a/src/aura/init/zeron/hookWS.js b/src/aura/init/zeron/hookWS.js index 57b1210..1b5e696 100755 --- a/src/aura/init/zeron/hookWS.js +++ b/src/aura/init/zeron/hookWS.js @@ -1,6 +1,6 @@ const buildClass = (n) => { // >>> BEGIN OF SEEWO HUGO ORIGINAL CODE <<< // - const s = n(237), + const s = n(239), o = n(7); class WebSocketManager { constructor(e, t) { diff --git a/src/aura/jsRewrite/vendor/passwordValidation.js b/src/aura/jsRewrite/vendor/passwordValidation.js index 0cec27e..b85adc4 100755 --- a/src/aura/jsRewrite/vendor/passwordValidation.js +++ b/src/aura/jsRewrite/vendor/passwordValidation.js @@ -46,8 +46,8 @@ const newFunction = function (e, t, b) { _ = b(14), M = b(44), g = b(22), - w = (b(432), b(7)), - D = b(17), + w = (b(433), b(7)), + D = b(15), T = b.n(D), j = b(10), E = b.n(j), @@ -56,7 +56,7 @@ const newFunction = function (e, t, b) { z = b(19), Y = b(78), L = b.n(Y); - b(444); + b(445); var x, k = 2, S = 0, @@ -178,7 +178,7 @@ const newFunction = function (e, t, b) { value: s, size: n.width || null, }) - : v.a.createElement("img", { src: b(447) }) + : v.a.createElement("img", { src: b(448) }) ), d !== C && d !== O && @@ -386,8 +386,8 @@ const newFunction = function (e, t, b) { } else { originalFunc(); } + // ### EOR ### // break; - // ### EOR ### // default: return; } diff --git a/src/aura/jsRewrite/vendor/screenLock.js b/src/aura/jsRewrite/vendor/screenLock.js index ef092d5..e145a8c 100755 --- a/src/aura/jsRewrite/vendor/screenLock.js +++ b/src/aura/jsRewrite/vendor/screenLock.js @@ -30,12 +30,12 @@ const newFunction = function (e, t, n) { p = n.n(h), _ = n(41), M = n.n(_), - g = (n(808), n(7)), + g = (n(814), n(7)), b = n(9), y = n(8), v = n.n(y), w = - (n(810), + (n(816), { "./numberKeyboard.less": { "ps-icon": "numberKeyboard__ps-icon__1KO_WOCz", @@ -530,7 +530,7 @@ const newFunction = function (e, t, n) { password: "password", }, G = n(19); - n(812); + n(818); function W(e) { var t = e.canvasRender, n = void 0 === t || t, @@ -589,12 +589,12 @@ const newFunction = function (e, t, n) { ) ); } - n(815); + n(821); var J = n(64), V = n(20); var q, Z, - X = n(16); + X = n(17); function K(r) { var a = (function () { if ("undefined" == typeof Reflect || !Reflect.construct) return !1; @@ -805,7 +805,7 @@ const newFunction = function (e, t, n) { ); })(h.PureComponent)) ) || Z, - oe = (n(817), n(137).a); + oe = (n(823), n(137).a); function se(t, e) { var n = Object.keys(t); if (Object.getOwnPropertySymbols) { @@ -913,6 +913,7 @@ const newFunction = function (e, t, n) { }); }), (o.checkPasswordCorrect = function () { + // ### BOR ### // const originalAuthFailed = () => { o.failCount++, o.passwordCheckFail(), @@ -955,6 +956,7 @@ const newFunction = function (e, t, n) { o.state.inputPassword.join("") === o.password ? (o.props.onActivationCorrect(), (o.failCount = 0)) : customAuthFailed(); + // ### EOR ### // }), (o.insertHtml = function () { return p.a.createElement( @@ -1002,7 +1004,7 @@ const newFunction = function (e, t, n) { n ); })(I), - me = (n(819), n(38)); + me = (n(825), n(38)); function fe(r) { var a = (function () { if ("undefined" == typeof Reflect || !Reflect.construct) return !1; diff --git a/src/core/preload.js b/src/core/preload.js index 35ffaf5..3ba7e28 100755 --- a/src/core/preload.js +++ b/src/core/preload.js @@ -1,6 +1,6 @@ // @ts-check -const __AURA_VERSION__ = "0.1.1-beta"; +const __AURA_VERSION__ = "0.1.1-beta-patch-1"; (() => { if (require.main) return; // 如果只是导入 Aura Version, 不运行闭包逻辑