上传道具分解错误处理
This commit is contained in:
parent
d3bfe0480f
commit
bd8055d883
@ -686,7 +686,7 @@ func (this *ModelItemsComp) useitem(session comm.IUserSession, gid string, amoun
|
||||
return
|
||||
}
|
||||
|
||||
if itemcf.SynthetizeNum*int32(amount) > int32(item.Amount) { //碎片数量不够
|
||||
if amount > int32(item.Amount) { //碎片数量不够
|
||||
errdata = &pb.ErrorData{
|
||||
Code: pb.ErrorCode_ItemsNoEnough,
|
||||
Title: pb.ErrorCode_ItemsNoEnough.ToString(),
|
||||
|
Loading…
Reference in New Issue
Block a user