feat: 增加余额与今日消费显示,移除旧价分支,样式对齐原生视觉效果 - #2
Open
guoliwei117 wants to merge 2 commits into
Open
Conversation
…eyEnv), zero manual config
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.
改动内容
|分隔符样式;点开面板新增「余额」「今日约消费」两行GET /api/dsh-client-usage/balance路由,复用凭证服务的DEEPSEEK_API_KEY代理官方/user/balance,按余额差值估算当日消费并持久化(~/.dsh/storages/dsh-client-usage-day.json),Key 不出本机--dsw-alias-label-secondary→--dsw-alias-label-tertiary,与原生统计行同色级1.2M / 12.2K风格(≥100 取整、否则一位小数)|分隔符复用原生样式(--dsw-alias-separator-primary+ 10px 边距),行内间距与原生观感一致效果截图
验证
node --check通过dsh web重启后实测:chip 正常显示余额、面板显示余额/今日消费、计价按峰谷档位说明
DEEPSEEK_API_KEY时:chip 自动隐藏余额段,面板余额/今日消费显示「—」