``feat(socket): 完善踢人流程日志记录,添加CloseChan确保数据保存完成``
This commit is contained in:
@@ -1,13 +1,14 @@
|
||||
package socket
|
||||
|
||||
import (
|
||||
"blazing/cool"
|
||||
"blazing/logic/service/player"
|
||||
"context"
|
||||
"fmt"
|
||||
)
|
||||
|
||||
func (h *Server) KickPerson(a int) error {
|
||||
|
||||
fmt.Println("检测到踢人请求", a)
|
||||
cool.Loger.Info(context.TODO(), "检测到踢人请求", a)
|
||||
|
||||
return player.KickPlayer(uint32(a))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user