登录退出完善
This commit is contained in:
@@ -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() //保存玩家数据
|
||||
}
|
||||
|
||||
//}
|
||||
|
||||
Reference in New Issue
Block a user