fix: 修正打手更新执行缺失与店铺 owner_id 持久化错误

This commit is contained in:
zetaloop
2026-04-04 01:43:02 +08:00
parent 82e83ca30f
commit 98aac81b43
2 changed files with 6 additions and 1 deletions
@@ -33,5 +33,10 @@ func (l *UpdatePlayersLogic) UpdatePlayers(in *pb.UpdatePlayersReq) (*pb.UpdateP
update.SetRating(rating) update.SetRating(rating)
} }
err := update.Exec(l.ctx)
if err != nil {
return nil, err
}
return &pb.UpdatePlayersResp{}, nil return &pb.UpdatePlayersResp{}, nil
} }
+1 -1
View File
@@ -99,7 +99,7 @@ func (l *AddShopsLogic) AddShops(in *pb.AddShopsReq) (*pb.AddShopsResp, error) {
_, err = l.svcCtx.ShopModelRW.Shops.Create(). _, err = l.svcCtx.ShopModelRW.Shops.Create().
SetID(idResp.Id). SetID(idResp.Id).
SetOwnerID(idResp.Id). SetOwnerID(in.OwnerId).
SetName(in.Name). SetName(in.Name).
SetBanner(in.Banner). SetBanner(in.Banner).
SetDescription(in.Description). SetDescription(in.Description).