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

This commit is contained in:
昔念
2026-04-24 17:22:25 +08:00
parent 11bf46c7e4
commit 0ae65cee45
12 changed files with 132 additions and 75 deletions

View File

@@ -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]),
})
}

View File

@@ -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