上传道具使用的bug

This commit is contained in:
liwei 2022-08-15 14:39:24 +08:00
parent 8a22d8aa2f
commit 7e9ca63928

View File

@ -101,7 +101,7 @@ func (this *apiComp) Useitem(session comm.IUserSession, req *pb.ItemsUseItemReq)
code = pb.ErrorCode_ConfigNoFound
return
}
sale := make([]*cfg.Gameatn, len(prop))
sale := make([]*cfg.Gameatn, 0, len(prop))
for _, v := range prop {
for _, v1 := range v.Prize {
sale = append(sale, &cfg.Gameatn{