From c1b96f6bff6ff3f8a9d878cf4d6adc6c7994d186 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 14:59:35 +0800 Subject: [PATCH] =?UTF-8?q?refactor(=E4=BC=9A=E5=91=98=E4=B8=8B=E5=8D=95):?= =?UTF-8?q?=20=E6=94=B6=E7=AA=84=E5=B9=B3=E5=8F=B0=E9=9D=A2=E6=9D=BF?= =?UTF-8?q?=E4=B8=8B=E5=8D=95=E5=85=A5=E5=8F=82=E4=B8=BA=20productId=20?= =?UTF-8?q?=E4=B8=8E=20kind?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - usePlatformProfileCenterController.ts:buyRechargeProduct 只接受 productId 与 kind,会员下单不再传 priceCents 等无用字段 Co-authored-by: Junie --- .../platform-entry/usePlatformProfileCenterController.ts | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/src/components/platform-entry/usePlatformProfileCenterController.ts b/src/components/platform-entry/usePlatformProfileCenterController.ts index a5a7bfba5..13b734320 100644 --- a/src/components/platform-entry/usePlatformProfileCenterController.ts +++ b/src/components/platform-entry/usePlatformProfileCenterController.ts @@ -1041,7 +1041,7 @@ export function usePlatformProfileCenterController({ }, [isRechargeOrderCurrent, nativeWechatPayment]); const buyRechargeProduct = useCallback( - (product: ProfileRechargeProduct) => { + (product: Pick) => { const account = captureAccountLifecycle(); if ( rechargeSubmissionRef.current || @@ -1397,14 +1397,7 @@ export function usePlatformProfileCenterController({ // 这里只需要把 productId 交给同一条下单链路。 buyRechargeProduct({ productId: resolveMembershipProductId(plan, cycleKind), - title: plan, - priceCents: 0, kind: 'membership', - pointsAmount: 0, - bonusPoints: 0, - durationDays: 0, - badgeLabel: '', - description: '', }); }, [buyRechargeProduct],