上传道具分解错误处理

This commit is contained in:
liwei1dao 2023-09-21 16:42:34 +08:00
parent d3bfe0480f
commit bd8055d883

View File

@ -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(),