1
All checks were successful
ci/woodpecker/push/my-first-workflow Pipeline was successful

This commit is contained in:
昔念
2026-02-12 12:43:28 +08:00
parent d0cf598ced
commit 2f756c77bb
9 changed files with 128 additions and 18 deletions

View File

@@ -182,6 +182,9 @@ func (ctl Controller) GetHatchPet(
// TODO: 实现获得孵化精灵的具体逻辑,这里暂时返回默认值
r := playerObj.Service.Egg.GetEgg()
if r == nil {
return nil, errorcode.ErrorCodes.ErrSystemError
}
playerObj.Service.Pet.PetAdd(r)
result.PetID = r.ID