refactor(rpc): 重构服务器信息获取逻辑,移除冗余锁机制并优化踢人逻辑

This commit is contained in:
1
2025-11-03 15:30:41 +00:00
parent 35935549bd
commit e86e138d94
8 changed files with 44 additions and 19 deletions

View File

@@ -9,6 +9,9 @@ import (
func (h *Server) KickPerson(a int) error {
cool.Loger.Info(context.TODO(), "检测到踢人请求", a)
if a == 0 {
return nil
}
return player.KickPlayer(uint32(a))
}