mirror of
https://ghfast.top/https://github.com/aeroxw/tick-stock-panel.git
synced 2026-09-12 15:34:16 +08:00
「概念分析/行业分析 → AI 轮动分析」生成的报告里, 大盘部分写成「上证指数 上涨 123%」「深证成指下跌 45%」, 第 5 节「结合大盘」的结论也跟着跑偏。 _build_market_block 用 _fmt_pct 渲染指数涨跌幅, 而 _fmt_pct 是给概念/行业 涨幅(小数口径)写的, 会 *100。但 overview["indices"][].change_pct 是百分数 口径 (CONTRIBUTING §3.1): quote_service._build_index_quotes 的注释写明 "统一转成百分比输出", DB 兜底的 _index_quotes 同样 change_amount/pc*100。 于是 1.23 被渲染成 +123.00% 送进提示词。 新增 _fmt_index_pct 按百分数口径直接格式化, 与 market_recap._build_indices_block (同一份 overview, 不 *100) 和 abnormal_moves._bench_rt_pct (消费前显式 /100) 的口径对齐; 概念/行业涨幅仍走原来的 _fmt_pct。