mirror of
https://gitee.com/dromara/mayfly-go
synced 2025-11-14 21:30:26 +08:00
feat: 机器列表新增运行状态 & refactor: 登录账号信息存储与context
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user