上传道具修改

This commit is contained in:
liwei1dao 2022-07-22 23:29:25 +08:00
parent 33dbbbdebf
commit 3d3b3b8553

View File

@ -171,7 +171,7 @@ func (this *ModelItemsComp) AddItemsToUserPack(uId string, items map[int32]int32
this.module.Errorf("err:%v", err)
return
}
change = make([]*pb.DB_UserItemData, len(itmes))
change = make([]*pb.DB_UserItemData, 0)
for k, v := range items {
add, update, del, leftnum = this.addItemToUserPack(uId, itmes, k, v)
if leftnum < 0 {