From da0ef16df5736dfe1cbc0aa7081e68361687d76a 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:31:20 +0800 Subject: [PATCH] =?UTF-8?q?refactor(=E4=BC=9A=E5=91=98=E4=B8=8B=E5=8D=95):?= =?UTF-8?q?=20=E4=B8=8B=E5=8D=95=E5=85=A5=E5=8F=82=E5=8E=BB=E6=8E=89?= =?UTF-8?q?=E6=9C=AA=E4=BD=BF=E7=94=A8=E7=9A=84=20kind?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - useAccountWallet.buyRechargeProduct 入参收窄为仅 productId,会员结算调用同步删除未被消费的 kind: 'membership'。 --- .../src/features/app-shell/useAccountWallet.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/apps/ai-game-creator-shell/src/features/app-shell/useAccountWallet.ts b/apps/ai-game-creator-shell/src/features/app-shell/useAccountWallet.ts index 1259629e5..fb7e47c20 100644 --- a/apps/ai-game-creator-shell/src/features/app-shell/useAccountWallet.ts +++ b/apps/ai-game-creator-shell/src/features/app-shell/useAccountWallet.ts @@ -287,7 +287,7 @@ export function useAccountWallet(currentUserId: string) { } async function buyRechargeProduct( - product: Pick, + product: Pick, ) { if (submittingRechargeProductId) { return; @@ -434,7 +434,6 @@ export function useAccountWallet(currentUserId: string) { // 这里只需要把 productId 交给同一条下单链路。 void buyRechargeProduct({ productId: resolveMembershipProductId(plan, cycleKind), - kind: 'membership', }); }