Skip to content

feat: 精简订阅段显示格式 - #15

Merged
zcg merged 7 commits into
byebye-code:mainfrom
johnnyee:feature/simplify-subscription-display
Dec 10, 2025
Merged

zcg merged 7 commits into
byebye-code:mainfrom
johnnyee:feature/simplify-subscription-display

Conversation

@johnnyee

Copy link
Copy Markdown
Contributor

Summary

  • 过滤已过期套餐(剩余天数 <= 0),避免显示无效信息
  • 精简显示格式,减少状态栏占用空间:
    • 去掉"付"字(月付→月,年付→年)
    • 去掉"剩余"字
    • 去掉括号和逗号

效果对比

改进前:

PLUS ¥198/月付 (可重置2次, 剩余53天) | PLUS ¥198/月付 (可重置1次, 剩余27天) | PLUS ¥198/月付 (可重置2次, 剩余0天)

改进后:

PLUS ¥198/月 可重置2次 53天 | PLUS ¥198/月 可重置1次 27天

Test plan

  • 本地编译通过 (cargo build --release)
  • 本地测试状态栏显示正常
  • 过期套餐(剩余0天)被正确过滤
  • 格式精简后信息仍然完整可读

🤖 Generated with Claude Code

johnnyee and others added 7 commits December 10, 2025 10:17
详细说明:
- 新增 CLAUDE.md 为 Claude Code 提供项目开发指南
- 包含开发命令、核心架构、模块结构说明
- 更新 .gitignore 移除 CLAUDE.md 忽略规则

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <[email protected]>
改进内容:
1. 过滤已过期套餐(剩余天数 <= 0)
2. 精简显示格式:
   - 去掉"付"字(月付→月,年付→年)
   - 去掉"剩余"字
   - 去掉括号和逗号

改进前:PLUS ¥198/月付 (可重置2次, 剩余53天)
改进后:PLUS ¥198/月 可重置2次 53天

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <[email protected]>
johnnyee added a commit to johnnyee/byebyecode that referenced this pull request Dec 10, 2025
@zcg
zcg merged commit 388b44b into byebye-code:main Dec 10, 2025
4 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.

2 participants