This commit is contained in:
wh_zcy 2022-12-30 15:24:05 +08:00
commit f9c7bc15dd

View File

@ -45,6 +45,7 @@ func (this *apiComp) BuyPhysical(session comm.IUserSession, req *pb.ItemsBuyPhys
if req.Amount+uint32(user.Physicalbuynum) > uint32(len(needs)) { if req.Amount+uint32(user.Physicalbuynum) > uint32(len(needs)) {
code = pb.ErrorCode_ItemsBuyPsUpperLimit code = pb.ErrorCode_ItemsBuyPsUpperLimit
return
} }
haveneeds = make([]*cfg.Gameatn, 0) haveneeds = make([]*cfg.Gameatn, 0)