This commit is contained in:
wh_zcy 2023-07-04 18:54:27 +08:00
parent c5c35059d2
commit 19e083aa57

View File

@ -58,7 +58,12 @@ func (this *apiComp) Sell(session comm.IUserSession, req *pb.SmithySellReq) (err
rsp := &pb.SmithySellResp{
CustomerId: req.CustomerId,
EquipIds: req.EquipIds,
Customers: cus.Customers,
}
if cus != nil {
rsp.Customers = cus.Customers
} else {
rsp.Customers = []*pb.CustomerInfo{}
}
session.SendMsg(string(this.module.GetType()), "sell", rsp)