``feat(socket): 完善踢人流程日志记录,添加CloseChan确保数据保存完成``

This commit is contained in:
1
2025-10-16 18:59:38 +00:00
parent 52ea55ac39
commit 08fcc72b6d
6 changed files with 22 additions and 6 deletions

View File

@@ -29,7 +29,8 @@ type ServerHandler struct{}
// 实现踢人
func (h *ServerHandler) Kick(ctx context.Context, userid uint32) error {
cool.Loger.Info(context.TODO(),"服务器收到踢人" )
useid1, err := share.ShareManager.GetUserOnline(userid)
if err != nil {