From 8cfdd008ba407ef57556e8c18b6c9ca625774e78 Mon Sep 17 00:00:00 2001 From: John Ye Date: Wed, 10 Dec 2025 15:04:39 +0800 Subject: [PATCH 1/2] =?UTF-8?q?docs:=20=E6=9B=B4=E6=96=B0=E5=88=86?= =?UTF-8?q?=E6=94=AF=E5=88=97=E8=A1=A8=EF=BC=8C=E6=B7=BB=E5=8A=A0=20PR=20#?= =?UTF-8?q?16?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CLAUDE.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CLAUDE.md b/CLAUDE.md index fabcc9b..2fb0c2b 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -28,6 +28,7 @@ ByeByeCode 是一个 Rust 编写的 Claude Code 状态栏增强工具,用于 | `feature/progress-bar-usage-display` | 进度条功能 | PR #11 | ✅ 已合并 | | `fix/skip-free-subscription` | 跳过 FREE 套餐 | PR #12 | ✅ 已合并 | | `feature/simplify-subscription-display` | 精简订阅显示格式 | PR #15 | 🔄 待审核 | +| `feature/support-new-88code-domains` | 支持新域名 88code.ai | PR #16 | 🔄 待审核 | ### 分支工作流 From 9342e834fbcdab34655ea140d742e4d5ba589fe1 Mon Sep 17 00:00:00 2001 From: John Ye Date: Wed, 10 Dec 2025 15:23:49 +0800 Subject: [PATCH 2/2] =?UTF-8?q?feat:=20=E6=8C=89=E5=89=A9=E4=BD=99?= =?UTF-8?q?=E5=A4=A9=E6=95=B0=E5=8D=87=E5=BA=8F=E6=8E=92=E5=BA=8F=E8=AE=A2?= =?UTF-8?q?=E9=98=85=E5=88=97=E8=A1=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 快过期的套餐排在前面,方便用户关注即将到期的订阅。 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- src/core/segments/byebyecode_subscription.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/core/segments/byebyecode_subscription.rs b/src/core/segments/byebyecode_subscription.rs index 660c028..09952d3 100644 --- a/src/core/segments/byebyecode_subscription.rs +++ b/src/core/segments/byebyecode_subscription.rs @@ -115,11 +115,14 @@ pub fn collect(config: &Config, input: &InputData) -> Option { } // 过滤掉已禁用的订阅和已过期的订阅(剩余天数 <= 0) - let active_subscriptions: Vec<_> = subscriptions + let mut active_subscriptions: Vec<_> = subscriptions .iter() .filter(|sub| sub.is_active && sub.remaining_days > 0) .collect(); + // 按剩余天数升序排序(快过期的排在前面) + active_subscriptions.sort_by(|a, b| a.remaining_days.cmp(&b.remaining_days)); + if active_subscriptions.is_empty() { return Some(SegmentData { primary: "未订阅".to_string(),