修复道具使用的问题
This commit is contained in:
parent
d61274b14f
commit
cecd70bfa9
@ -130,7 +130,7 @@ func (this *apiComp) Useitem(session comm.IUserSession, req *pb.ItemsUseItemReq)
|
|||||||
if code = this.module.AddItemforGrid(&comm.ModuleCallSource{}, session, req.GridId, -1*itemcf.SynthetizeNum*int32(req.Amount), true); code != pb.ErrorCode_Success {
|
if code = this.module.AddItemforGrid(&comm.ModuleCallSource{}, session, req.GridId, -1*itemcf.SynthetizeNum*int32(req.Amount), true); code != pb.ErrorCode_Success {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
sale := make([]*cfg.Game_atn, len(prop))
|
sale := make([]*cfg.Game_atn, 0, len(prop))
|
||||||
for _, v := range prop {
|
for _, v := range prop {
|
||||||
for _, v1 := range v.Prize {
|
for _, v1 := range v.Prize {
|
||||||
sale = append(sale, &cfg.Game_atn{
|
sale = append(sale, &cfg.Game_atn{
|
||||||
|
Loading…
Reference in New Issue
Block a user