This commit is contained in:
@@ -106,6 +106,9 @@ func (h Controller) GetAllFurniture(data *FitmentAllInboundEmpty, c *player.Play
|
||||
// 返回: 精灵详细信息和错误码
|
||||
func (h Controller) GetRoomPetInfo(data *C2S_RoomPetInfo, c *player.Player) (result *pet.RoomPetInfo, err errorcode.ErrorCode) {
|
||||
petInfo := c.Service.Pet.PetInfoOneOther(data.UserID, data.CatchTime)
|
||||
if petInfo == nil {
|
||||
return nil, errorcode.ErrorCodes.ErrPokemonNotExists
|
||||
}
|
||||
result = &pet.RoomPetInfo{}
|
||||
copier.CopyWithOption(result, &petInfo.Data, copier.Option{DeepCopy: true})
|
||||
result.OwnerId = data.UserID
|
||||
|
||||
Reference in New Issue
Block a user