```
feat(socket): 统一使用 glog.Info 替代 glog.Infof 将 ServerEvent.go 中的 glog.Infof 更改为 glog.Info,以统一日志输出方式并减少格式化开销。 feat(controller): 优化宠物经验设置逻辑与错误码返回 在 SetPetExp 方法中提前返回结果,并修正最终返回的错误码为 ErrSystemError。同时规范化注释格式。 feat(space): 支持天气地图判断与动态天气 BOSS 刷新 引入 lo 包用于查找
This commit is contained in:
@@ -230,14 +230,17 @@ func (h Controller) SetPetExp(data *pet.PetSetExpInboundInfo, c *player.Player)
|
||||
if ok && onpet.Level < 100 {
|
||||
|
||||
defer c.AddPetExp(onpet, data.Exp)
|
||||
return &pet.PetSetExpOutboundInfo{
|
||||
Exp: c.Info.ExpPool,
|
||||
}, 0
|
||||
}
|
||||
|
||||
return &pet.PetSetExpOutboundInfo{
|
||||
Exp: c.Info.ExpPool,
|
||||
}, 0
|
||||
}, errorcode.ErrorCodes.ErrSystemError
|
||||
}
|
||||
|
||||
//精灵图鉴
|
||||
// 精灵图鉴
|
||||
func (h Controller) PetBargeList(data *pet.PetBargeListInboundInfo, c *player.Player) (result *pet.PetBargeListOutboundInfo, err errorcode.ErrorCode) {
|
||||
|
||||
return &pet.PetBargeListOutboundInfo{
|
||||
|
||||
Reference in New Issue
Block a user