refactor(cool): 修复Logger变量名拼写错误

将全局Logger变量从Loger修正为Logger,统一日志实例命名规范,
确保所有模块中日志记录的一致性。

BREAKING CHANGE: 全局日志实例变量名从Loger改为Logger
```
This commit is contained in:
2025-12-25 12:14:04 +08:00
parent ff199e339f
commit 164e70519f
30 changed files with 85 additions and 85 deletions

View File

@@ -32,12 +32,12 @@ func (h Controller) Login(data *user.MAIN_LOGIN_IN, c gnet.Conn) (result *user.L
fmt.Println("踢人失败", err)
}
cool.Loger.Info(context.TODO(), "踢人请求完成,继续登录流程")
cool.Logger.Info(context.TODO(), "踢人请求完成,继续登录流程")
share.ShareManager.SetUserOnline(data.Head.UserID, h.Port) //设置用户登录服务器
currentPlayer := player.GetPlayer(c, data.Head.UserID)
if currentPlayer == nil {
cool.Loger.Error(context.Background(), "获取玩家失败", data.Head.UserID)
cool.Logger.Error(context.Background(), "获取玩家失败", data.Head.UserID)
defer c.Close()
return