娃娃兑换
This commit is contained in:
parent
2141f00ba9
commit
bf1efc0139
|
@ -520,14 +520,14 @@ func CSDollChange(s *netlib.Session, packetid int, data interface{}, sid int64)
|
|||
pack := &bag.SCDollChange{}
|
||||
for _, item := range msg.Items {
|
||||
if item.ItemId == 0 {
|
||||
continue
|
||||
return nil
|
||||
}
|
||||
info := srvdata.GameItemMgr.Get(p.Platform, item.ItemId)
|
||||
if info == nil {
|
||||
continue
|
||||
return nil
|
||||
}
|
||||
if info.Type != common.ItemTypeDoll {
|
||||
continue
|
||||
return nil
|
||||
}
|
||||
|
||||
bagInfo, rest, isF := BagMgrSingleton.AddItemsV2(&model.AddItemParam{
|
||||
|
|
Loading…
Reference in New Issue