上传体力购买上限报错处理

This commit is contained in:
liwei1dao 2022-12-30 15:22:19 +08:00
parent d400023dab
commit 0438dd9bfb

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)