mirror of
https://gitee.com/dromara/mayfly-go
synced 2026-02-08 13:55:36 +08:00
refactor: websocket支持单用户多连接
This commit is contained in:
@@ -119,5 +119,5 @@ func (a *AccountLogin) OtpVerify(rc *req.Ctx) {
|
||||
|
||||
func (a *AccountLogin) Logout(rc *req.Ctx) {
|
||||
req.GetPermissionCodeRegistery().Remove(rc.LoginAccount.Id)
|
||||
ws.CloseClient(rc.LoginAccount.ClientUuid)
|
||||
ws.CloseClient(ws.UserId(rc.LoginAccount.Id))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user