This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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 待实现
|
||||
|
||||
Reference in New Issue
Block a user