Skip to content

[codex] 移除 Account 欠费上限展示#36

Merged
cnYui merged 1 commit into
mainfrom
codex/account-remove-credit-limit-display
Jun 16, 2026
Merged

[codex] 移除 Account 欠费上限展示#36
cnYui merged 1 commit into
mainfrom
codex/account-remove-credit-limit-display

Conversation

@cnYui

@cnYui cnYui commented Jun 16, 2026

Copy link
Copy Markdown
Owner

背景

当前 Shop 托管 API key 的真实放行逻辑是余额必须大于 0,余额等于 0 或负数都会返回 insufficient_balanceaccount_balances.credit_limit_* 的 10 元字段仍保留为历史兼容字段,但不参与 API 调用放行。

改动

  • 移除 /shop/account/ 余额卡片中的「欠费上限」展示。
  • Account 余额卡片布局从 4 列调整为 3 列。
  • 更新 shop/js/account.js 缓存版本。
  • 增加前端回归测试,确保 Account 余额卡片不再展示未参与放行逻辑的欠费上限。
  • 更新 AGENTS.md 项目记忆,记录该字段不参与 API 放行。

验证

  • npm run build:css && npm test
  • 结果:CSS 构建成功,172 个测试通过。

风险

  • 后端接口和数据库字段未改,Admin 余额面板兼容性不受影响。
  • 本次只移除用户侧误导性展示,不改变账务和 API key 放行逻辑。

@cnYui cnYui merged commit a1fd67b into main Jun 16, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant