Commit Graph

3 Commits

Author SHA1 Message Date
bookworm
c2e3f0e65f fix(admin): AuthGen $y 类型修复 — [int]$y 防止 PS2EXE Object[] 降级
PS2EXE 编译后 $y 被隐式当作 Object[], 导致 $y - 2 算术运算失败:
"Method invocation failed because [System.Object[]] does not contain
a method named 'op_Subtraction'"

修复: 强类型声明 [int]$y = 72

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-10 02:15:10 +08:00
bookworm
dba9d19129 fix(admin): AuthGen EXE 在 dist/ 子目录运行时找不到 gen-authcode.js
ScriptDir 指向 EXE 所在目录 (dist/), 但 gen-authcode.js 和
secrets.txt 在父目录。添加向上一级查找的 fallback 逻辑。

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-10 02:10:15 +08:00
bookworm
353bbffada feat(admin): GUI 授权码生成器 Bookworm-AuthGen.exe
新增管理员可视化工具, 替代 CLI gen-authcode.js:
- WinForms GUI: 用户名/Sub-Key/有效期 + 一键生成 + 一键复制
- 品牌视觉: 白底 + #5865F2 蓝紫 + 深色标题栏 + 书虫学者图标
- PS2EXE -NoConsole -NoOutput (92 KB)

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-10 01:59:27 +08:00