娃娃兑换

This commit is contained in:
by 2024-09-21 15:39:16 +08:00
parent 2141f00ba9
commit bf1efc0139
1 changed files with 3 additions and 3 deletions

View File

@ -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{