登录退出完善

This commit is contained in:
1
2025-08-28 21:57:30 +00:00
parent 79361e68cd
commit 406d9129b0
4 changed files with 18 additions and 2 deletions

View File

@@ -52,6 +52,7 @@ func (s *Server) OnClose(c gnet.Conn, _ error) (action gnet.Action) {
t.IsLogin = false
socket.Mainplayer.Delete(t.Info.UserID)
share.ShareManager.DeleteUserOnline(t.Info.UserID) //设置用户登录服务器
t.Save() //保存玩家数据
}
//}