From 98aac81b431be859da3c7b8beaaa4f84f2fcf98d Mon Sep 17 00:00:00 2001 From: zetaloop Date: Sat, 4 Apr 2026 01:43:02 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E6=AD=A3=E6=89=93=E6=89=8B?= =?UTF-8?q?=E6=9B=B4=E6=96=B0=E6=89=A7=E8=A1=8C=E7=BC=BA=E5=A4=B1=E4=B8=8E?= =?UTF-8?q?=E5=BA=97=E9=93=BA=20owner=5Fid=20=E6=8C=81=E4=B9=85=E5=8C=96?= =?UTF-8?q?=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/player/rpc/internal/logic/updatePlayersLogic.go | 5 +++++ app/shop/rpc/internal/logic/addShopsLogic.go | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/app/player/rpc/internal/logic/updatePlayersLogic.go b/app/player/rpc/internal/logic/updatePlayersLogic.go index d6486da..590ab86 100644 --- a/app/player/rpc/internal/logic/updatePlayersLogic.go +++ b/app/player/rpc/internal/logic/updatePlayersLogic.go @@ -33,5 +33,10 @@ func (l *UpdatePlayersLogic) UpdatePlayers(in *pb.UpdatePlayersReq) (*pb.UpdateP update.SetRating(rating) } + err := update.Exec(l.ctx) + if err != nil { + return nil, err + } + return &pb.UpdatePlayersResp{}, nil } diff --git a/app/shop/rpc/internal/logic/addShopsLogic.go b/app/shop/rpc/internal/logic/addShopsLogic.go index 6a2cefe..ebb3e91 100644 --- a/app/shop/rpc/internal/logic/addShopsLogic.go +++ b/app/shop/rpc/internal/logic/addShopsLogic.go @@ -99,7 +99,7 @@ func (l *AddShopsLogic) AddShops(in *pb.AddShopsReq) (*pb.AddShopsResp, error) { _, err = l.svcCtx.ShopModelRW.Shops.Create(). SetID(idResp.Id). - SetOwnerID(idResp.Id). + SetOwnerID(in.OwnerId). SetName(in.Name). SetBanner(in.Banner). SetDescription(in.Description).