fix(fight): 修复技能效果

This commit is contained in:
1
2025-11-10 02:45:19 +00:00
parent 9a434d55d7
commit 7653f6b583
3 changed files with 15 additions and 2 deletions

View File

@@ -53,6 +53,12 @@ func (h *Controller) Login(data *user.MAIN_LOGIN_IN, c gnet.Conn) (result *user.
// <-time.After(time.Millisecond * 3000)
share.ShareManager.SetUserOnline(data.Head.UserID, h.Port) //设置用户登录服务器
t := player.GetPlayer(c, data.Head.UserID)
if t == nil {
cool.Loger.Error(context.Background(), "获取玩家失败", data.Head.UserID)
err = errorcode.ErrorCodes.ErrLoginServerError
defer c.Close()
return
}
t.Service = blservice.NewUserService(data.Head.UserID)
t.Info = t.Service.Person(data.Head.UserID)
if t.Info == nil {