mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-04-26 03:26:57 +08:00
tidy
This commit is contained in:
parent
29e92015d5
commit
b0a8ad1ac1
@ -128,7 +128,7 @@ func (ws *WServer) MultiTerminalLoginChecker(uid string, platformID int32, newCo
|
|||||||
}
|
}
|
||||||
delete(ws.wsConnToUser, oldConn)
|
delete(ws.wsConnToUser, oldConn)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.NewError("", "conn close err", err.Error())
|
log.NewError("", "conn close err", err.Error(), uid, platformID)
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -78,13 +78,13 @@ const (
|
|||||||
ExpiredToken = 3
|
ExpiredToken = 3
|
||||||
|
|
||||||
//MultiTerminalLogin
|
//MultiTerminalLogin
|
||||||
//全端登录,但是同端互斥
|
//Full-end login, but the same end is mutually exclusive
|
||||||
AllLoginButSameTermKick = 1
|
AllLoginButSameTermKick = 1
|
||||||
//所有端中只能有一端能够登录
|
//Only one of the endpoints can log in
|
||||||
SingleTerminalLogin = 2
|
SingleTerminalLogin = 2
|
||||||
//web端可以同时在线,其他端只能有一端登录
|
//The web side can be online at the same time, and the other side can only log in at one end
|
||||||
WebAndOther = 3
|
WebAndOther = 3
|
||||||
//Pc端互斥,移动端互斥,但是web端可以同时在线
|
//The PC side is mutually exclusive, and the mobile side is mutually exclusive, but the web side can be online at the same time
|
||||||
PcMobileAndWeb = 4
|
PcMobileAndWeb = 4
|
||||||
|
|
||||||
OnlineStatus = "online"
|
OnlineStatus = "online"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user