feat: 机器列表新增运行状态 & refactor: 登录账号信息存储与context

This commit is contained in:
meilin.huang
2023-11-07 21:05:21 +08:00
parent d9adf0fd25
commit eddda41291
74 changed files with 915 additions and 652 deletions

View File

@@ -38,8 +38,6 @@ func (s *System) ConnectWs(g *gin.Context) {
biz.ErrIsNil(err, "sys websocket没有权限连接")
// 登录账号信息
la := rc.LoginAccount
if la != nil {
ws.AddClient(ws.UserId(la.Id), clientId, wsConn)
}
la := rc.GetLoginAccount()
ws.AddClient(ws.UserId(la.Id), clientId, wsConn)
}