上传体力购买上限报错处理
This commit is contained in:
parent
d400023dab
commit
0438dd9bfb
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user