feat: 定价编辑器人民币化 + 对账差异定位 + 敏感词拒答#13
Merged
Merged
Conversation
- 换算内核注入美元兑人民币汇率:ModelRatio/ModelPrice 两个货币边界 ×/÷ rate, 派生倍率为同币种比值不参与换算;存储倍率与计费完全不变 - 显示按实际精度 + 保底 2 位补 0 + 去往返浮点漂移(formatDisplayPrice) - 汇率优先取页面级 options.USDExchangeRate(随保存刷新),StatusContext 仅兜底, 避免改汇率后同会话不刷新折算错 - PriceInput 聚焦用原始高精度串编辑,失焦不回写圆整值,廉价模型不丢精度 - 顶部提示条说明单位/汇率;表达式/阶梯计费仍按美元,标注口径差异 - 手动模式更名「倍率(高级)」并加美元口径警告条
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
本分支包含三块改动:
1. 可视化定价编辑器人民币化(最新)
ModelRatio/ModelPrice×/÷ rate),派生倍率为同币种比值不参与换算options.USDExchangeRate(随保存刷新),避免同会话改汇率不刷新折算错web/classic,后端零改动;经 3 轮 Codex review 收敛2. 对账差异定位重构
3. 敏感词拒答