This commit is contained in:
@@ -18,8 +18,8 @@ func (h Controller) GetPetBargeList(data *PetBargeListInboundInfo, player *playe
|
||||
ret.PetBargeList = append(ret.PetBargeList, pet.PetBargeListInfo{
|
||||
PetId: uint32(v.Args[0]),
|
||||
EnCntCnt: 1,
|
||||
IsCatched: uint32(v.Results[0]),
|
||||
IsKilled: uint32(v.Results[1]),
|
||||
IsCatched: uint32(v.Results[1]),
|
||||
IsKilled: uint32(v.Results[0]),
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
@@ -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