fix: 修正打手更新执行缺失与店铺 owner_id 持久化错误
This commit is contained in:
@@ -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
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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).
|
||||||
|
|||||||
Reference in New Issue
Block a user