From 31674658652dbb8a6af319cdc9bca9f2f3e9f77d Mon Sep 17 00:00:00 2001 From: shanshanzhong Date: Tue, 31 Mar 2026 06:08:28 -0700 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=8D=95=E8=AE=A2=E9=98=85=E6=A8=A1?= =?UTF-8?q?=E5=BC=8F=E6=88=90=E5=91=98=E8=B4=AD=E4=B9=B0=E6=97=B6=E7=94=A8?= =?UTF-8?q?=E5=AE=B6=E5=BA=AD=E4=B8=BB=20ID=20=E6=9F=A5=E9=94=9A=E7=82=B9?= =?UTF-8?q?=E8=AE=A2=E9=98=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ResolvePurchaseRoute 传入 entitlement.EffectiveUserID (家庭主 ID)而非 u.Id(成员 ID),确保成员购买时 能找到家庭主已有订阅并续费,而不是新建一条订阅。 Co-Authored-By: claude-flow --- internal/logic/public/order/purchaseLogic.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/logic/public/order/purchaseLogic.go b/internal/logic/public/order/purchaseLogic.go index 6224e29..9a6402a 100644 --- a/internal/logic/public/order/purchaseLogic.go +++ b/internal/logic/public/order/purchaseLogic.go @@ -82,7 +82,7 @@ func (l *PurchaseLogic) Purchase(req *types.PurchaseOrderRequest) (resp *types.P decision, routeErr := commonLogic.ResolvePurchaseRoute( l.ctx, l.svcCtx.Config.Subscribe.SingleModel, - u.Id, + entitlement.EffectiveUserID, req.SubscribeId, l.svcCtx.UserModel.FindSingleModeAnchorSubscribe, )