From cf6004718e58dc2f545022965c1d37de61059b96 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E5=BE=B7=E5=AE=87?= Date: Sat, 3 Oct 2026 17:27:49 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E5=90=8E=E5=8F=B0=E8=AE=A2=E5=8D=95):=20?= =?UTF-8?q?=E4=BC=9A=E5=91=98=E5=8F=98=E6=9B=B4=E6=91=98=E8=A6=81=E6=97=A0?= =?UTF-8?q?=E8=B4=A6=E6=9C=9F=E6=97=B6=E4=B8=8D=E5=86=8D=E8=BE=93=E5=87=BA?= =?UTF-8?q?=E6=82=AC=E7=A9=BA=E5=88=86=E9=9A=94=E7=AC=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - AdminRechargeOrderPage 的会员变更摘要仅在存在账期时才追加 "/ 月付|年付",避免输出 “新购 Pro / ”。 --- apps/admin-web/src/pages/AdminRechargeOrderPage.tsx | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/apps/admin-web/src/pages/AdminRechargeOrderPage.tsx b/apps/admin-web/src/pages/AdminRechargeOrderPage.tsx index 5fe0acbdf..efca3ed1d 100644 --- a/apps/admin-web/src/pages/AdminRechargeOrderPage.tsx +++ b/apps/admin-web/src/pages/AdminRechargeOrderPage.tsx @@ -1308,10 +1308,9 @@ function formatMembershipChangeSummary( before && after && before !== after ? `${before}→${after}` : (after ?? before ?? '-'); - const cycle = formatMembershipCycleKind( - change.cycleKindAfter ?? change.cycleKindBefore ?? '', - ); - return `${action} ${planPath} / ${cycle}`; + const cycleKind = change.cycleKindAfter ?? change.cycleKindBefore; + const cycle = cycleKind ? ` / ${formatMembershipCycleKind(cycleKind)}` : ''; + return `${action} ${planPath}${cycle}`; } function formatMoney(cents: number) {