上传道具使用的bug
This commit is contained in:
parent
8a22d8aa2f
commit
7e9ca63928
@ -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{
|
||||
|
Loading…
Reference in New Issue
Block a user