refactor(rpc): 重构服务器信息获取逻辑,移除冗余锁机制并优化踢人逻辑
This commit is contained in:
@@ -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))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user