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

@@ -12,7 +12,7 @@ type Broadcast struct {
}
func (h *Server) Broadcast(t string) int {
cool.Loger.Info(context.TODO(), "全服广播", t)
cool.Logger.Info(context.TODO(), "全服广播", t)
var count int
player.Mainplayer.Range(func(key uint32, value *player.Player) bool {
count++
@@ -25,7 +25,7 @@ func (h *Server) Broadcast(t string) int {
return count
}
func (h *Server) KickPerson(a int) error {
cool.Loger.Info(context.TODO(), "检测到踢人请求", a)
cool.Logger.Info(context.TODO(), "检测到踢人请求", a)
if a == 0 {
return nil
}