From 5d2de88a400c5e53ee7bcf77b4943192396f0574 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E5=BE=B7=E5=AE=87?= Date: Mon, 5 Oct 2026 11:59:12 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D(=E5=85=85=E5=80=BC=E5=BC=B9?= =?UTF-8?q?=E5=B1=82):=20=E5=BD=93=E5=89=8D=E6=A1=A3=E4=BD=8D=E7=BC=BA?= =?UTF-8?q?=E5=A4=B1=E6=97=B6=E7=A6=81=E7=94=A8=E4=BC=9A=E5=91=98=E4=B8=8B?= =?UTF-8?q?=E5=8D=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - resolveMembershipPlanAction 在有效会员查不到当前档位时返回「套餐信息缺失」并禁用,避免误判为新客对所有档位开放购买 --- .../src/components/PlatformProfileRechargeModal/index.tsx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/packages/shared/src/components/PlatformProfileRechargeModal/index.tsx b/packages/shared/src/components/PlatformProfileRechargeModal/index.tsx index e8bd6abea..619bfae2e 100644 --- a/packages/shared/src/components/PlatformProfileRechargeModal/index.tsx +++ b/packages/shared/src/components/PlatformProfileRechargeModal/index.tsx @@ -392,9 +392,13 @@ function resolveMembershipPlanAction( ): MembershipPlanAction { const isActive = membership?.status === 'active' && membership.plan !== 'normal'; - if (!isActive || !membership || !currentPlan) { + if (!isActive || !membership) { return { disabled: false, label: '开通会员', mode: 'purchase' }; } + // 有效会员但目录里查不到当前档位:无法判定升降档,禁用下单而不是退化成「新购」。 + if (!currentPlan) { + return { disabled: true, label: '套餐信息缺失', mode: 'purchase' }; + } if (plan.plan === membership.plan) { return { disabled: true, label: '当前套餐', mode: 'purchase' }; }