refactor(service): 重构宠物捕捉击杀统计功能 - 移除Barge服务和相关模型,统一使用Done服务进行里程碑数据管理 - 更新PetBargeList接口实现,从Barge服务切换到Done服务 - 修改战斗循环中宠物捕捉击杀数据的更新逻辑 - 调整里程碑模型中的Results字段类型为uint32数组 feat(done): 新增宠物里程碑数据管理功能 - 实现UpdatePet方法用于更新宠物捕捉击杀统计数据 - 添加update和get内部方法处理
This commit is contained in:
@@ -12,14 +12,14 @@ func (h Controller) GetPetBargeList(data *pet.PetBargeListInboundInfo, player *p
|
||||
ret := &pet.PetBargeListOutboundInfo{
|
||||
PetBargeList: make([]pet.PetBargeListInfo, 0),
|
||||
}
|
||||
r := player.Service.Barge.Get(data.StartPetId, data.EndPetId)
|
||||
r := player.Service.Done.PetBarge(data.StartPetId, data.EndPetId)
|
||||
for _, v := range r {
|
||||
|
||||
ret.PetBargeList = append(ret.PetBargeList, pet.PetBargeListInfo{
|
||||
PetId: v.PetId,
|
||||
PetId: uint32(v.Args[0]),
|
||||
EnCntCnt: 1,
|
||||
IsCatched: v.CatchedCount,
|
||||
IsKilled: v.KilledCount,
|
||||
IsCatched: uint32(v.Results[0]),
|
||||
IsKilled: uint32(v.Results[1]),
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user