feat: update Shop pricing and admin revenue fallback#28
Merged
Conversation
Owner
Author
客观 review结论:未发现阻断合并的问题。 检查范围:
剩余风险:
|
cnYui
commented
Jun 12, 2026
cnYui
left a comment
Owner
Author
There was a problem hiding this comment.
客观 review 结果:未发现阻塞问题。
检查点:
- 新价格版本
deepseek-v4-pro-rmb-20260612-output-20rmb只影响后续 usage;历史price_version没有被覆盖。 - Admin 收银构成对旧
deepseek-v4-pro-rmb-20260424和deepseek-v4-pro-rmb-20260612-cache-hit-10x都有显式价格回放,避免历史 output 按新 20 元价格重算。 - 排行柱状图在旧接口缺少
parts时会用黑色总额兜底,不再出现白色空框;新版接口返回parts后仍按黑 / 白 / 灰三段展示。 - 本地
npm test通过,GitHubvalidate通过。
非阻塞注意:运行中的 yui.web 需要重启后才会返回新版 parts 和新价格版本。
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.
背景
parts,柱状图会显示成白色空框。改动
deepseek-v4-pro-rmb-20260612-output-20rmb,输出 token 为 20000 nanos/token。price_version回放历史价格,旧cache-hit-10x输出仍按 6000 nanos/token 拆分。parts的情况,用黑色总金额兜底避免白框。shop.js版本参数,减少浏览器缓存旧脚本的概率。docs/ai/context/记录。验证
node --test --test-name-pattern "后台页面使用管理员 session,不渲染管理员 token 输入|Admin 收银排行兼容旧排行数据缺少 parts 时不渲染白色空柱|Admin 收银图表关键几何样式存在于构建 CSS 中" test/shop-flow.test.jsnpm testgit diff --check风险
parts和新价格版本。price_version展示。