fix: 修复登录空指针及战斗效果
All checks were successful
ci/woodpecker/push/my-first-workflow Pipeline was successful

This commit is contained in:
xinian
2026-03-21 00:24:34 +08:00
committed by cnb
parent 2dbbc9713c
commit c049bbd5ac
17 changed files with 95 additions and 206 deletions

View File

@@ -156,7 +156,7 @@ func (s *EggService) GetEgg() *model.PetInfo {
return nil
}
mpets, isshiny := service.NewEggService().GetResult(tt.CurEgg.MalePetID, tt.CurEgg.FeMalePetID,tt.CurEgg.EggID+tt.Data.Intimacy)
mpets, isshiny := service.NewEggService().GetResult(tt.CurEgg.MalePetID, tt.CurEgg.FeMalePetID, tt.CurEgg.EggID)
if mpets == 0 {
return nil
}