diff --git a/logic/service/player/base.go b/logic/service/player/base.go index e5463f681..766473ca9 100644 --- a/logic/service/player/base.go +++ b/logic/service/player/base.go @@ -68,10 +68,10 @@ func (f *baseplayer) FindPet(catchTime uint32) (int, *model.PetInfo, bool) { func (f *Player) PetDel(catchTime uint32) { index, olpet, ok := f.FindPet(catchTime) if ok { - f.Info.PetList = append(f.Info.PetList[:index], f.Info.PetList[index+1:]...) //先将背包更新 f.Service.Pet.UPdate(*olpet) f.Service.Pet.Pet_del(catchTime) + f.Info.PetList = append(f.Info.PetList[:index], f.Info.PetList[index+1:]...) } }