Skip to content

v3.3.2 · GitHub issue #50 + #51 hotfix

Choose a tag to compare

@wbh604 wbh604 released this 30 Apr 08:28
· 114 commits to main since this release

v3.3.2 · 社区驱动 hotfix

Bug #50 · Stage 2 总是超时(NameError 根因)

Reporter: @chenxiang-bj · agent 自诊出根因 → 我验证修复

症状:跑 stage2 卡死 · 用户感知"超时"

根因:v3.2 拆分 `assemble_report.py` → `lib/report/*` 时漏掉了一个 import:

  • `institutional.py` 的 import 块只列了 `svg_gauge` / `svg_progress_row`
  • 但 `_render_lbo_block` 实际调用了 `svg_sparkline`
  • 当 `dim20.lbo.ebitda_path` 非空时(绝大多数股都有)→ `NameError` → stage2 整个崩

修法: `lib/report/institutional.py` 加 `svg_sparkline` 到 import.

Bug #51 · XueQiu cubes_search.json endpoint 已下线

Reporter: @bilieebiliee1-design · Fix: @Kylin824

症状:登录成功但验证失败 · cookie 已保存但所有 cubes API 仍 400

根因:XueQiu 把 `/cubes/cubes_search.json` 完全下线 · 未保留兼容

新 endpoint:`/query/v1/search/cube/stock.json?q={code}&count={limit}&page=1`

修法: 3 处文件同步换 endpoint

  • `lib/xueqiu_browser.py::LOGIN_TEST_URL`
  • `lib/xueqiu_browser.py::fetch_cubes_via_browser`
  • `fetch_contests.py::fetch_xueqiu_cubes`

测试

  • 新增 `tests/test_v3_3_2_issue_fixes.py` (5 tests)
  • 总套件 337 tests 全过(332 + 5 新)
  • 002217 真机 e2e: 78s 出 614 KB HTML · _render_lbo_block 实跑生成 2 个 SVG sparkline 不再 NameError

致谢

感谢以下贡献者帮助发现 / 诊断 / 修复:

升级方法

# Hermes
hermes skills update wbh604/UZI-Skill/skills/deep-analysis

# Claude Code
/plugin update stock-deep-analyzer

# CLI 直用
cd UZI-Skill && git pull