Repository navigation
v3.3.2 · GitHub issue #50 + #51 hotfix
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
致谢
感谢以下贡献者帮助发现 / 诊断 / 修复:
- @chenxiang-bj (issue #50 报告 + agent 自诊)
- @bilieebiliee1-design (issue #51 报告)
- @Kylin824 (issue #51 提供新 endpoint URL)
升级方法
# Hermes
hermes skills update wbh604/UZI-Skill/skills/deep-analysis
# Claude Code
/plugin update stock-deep-analyzer
# CLI 直用
cd UZI-Skill && git pull