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

@@ -31,7 +31,7 @@ func (h Controller) GetPetInfo(
return nil, errorcode.ErrorCodes.ErrPokemonNotExists
}
result = &pet.OutInfo{
PetInfo: player.Service.Pet.PetInfo_One(data.CatchTime).Data,
PetInfo: ret.Data,
}
return result, 0
}

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

View File

@@ -27,6 +27,9 @@ func (h Controller) GetUserSimInfo(data *user.SimUserInfoInboundInfo, player *pl
func (h Controller) GetUserMoreInfo(data *user.MoreUserInfoInboundInfo, player *player.Player) (result *user.MoreUserInfoOutboundInfo, err errorcode.ErrorCode) {
result = &user.MoreUserInfoOutboundInfo{}
info := player.Service.Info.Person(data.UserId)
if info == nil {
return nil, errorcode.ErrorCode(errorcode.ErrorCodes.ErrSystemError)
}
copier.CopyWithOption(result, info.Data, copier.Option{IgnoreEmpty: true, DeepCopy: true})
//todo 待实现