mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-04-06 04:15:46 +08:00
docker-compose file update
This commit is contained in:
parent
b294a8138c
commit
ca7bba33e6
@ -230,7 +230,7 @@ func (ws *WServer) MultiTerminalLoginChecker(uid string, platformID int, newConn
|
|||||||
log.NewError(operationID, "conn close err", err.Error(), uid, platformID)
|
log.NewError(operationID, "conn close err", err.Error(), uid, platformID)
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
log.NewWarn(operationID, "abnormal uid-conn ", uid, platformID, oldConnMap[platformID])
|
log.NewWarn(operationID, "normal uid-conn ", uid, platformID, oldConnMap[platformID])
|
||||||
}
|
}
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
|
@ -5,22 +5,26 @@ package constant
|
|||||||
|
|
||||||
const (
|
const (
|
||||||
//Platform ID
|
//Platform ID
|
||||||
IOSPlatformID = 1
|
IOSPlatformID = 1
|
||||||
AndroidPlatformID = 2
|
AndroidPlatformID = 2
|
||||||
WindowsPlatformID = 3
|
WindowsPlatformID = 3
|
||||||
OSXPlatformID = 4
|
OSXPlatformID = 4
|
||||||
WebPlatformID = 5
|
WebPlatformID = 5
|
||||||
MiniWebPlatformID = 6
|
MiniWebPlatformID = 6
|
||||||
LinuxPlatformID = 7
|
LinuxPlatformID = 7
|
||||||
|
AndroidPadPlatformID = 8
|
||||||
|
IPadPlatformID = 9
|
||||||
|
|
||||||
//Platform string match to Platform ID
|
//Platform string match to Platform ID
|
||||||
IOSPlatformStr = "IOS"
|
IOSPlatformStr = "IOS"
|
||||||
AndroidPlatformStr = "Android"
|
AndroidPlatformStr = "Android"
|
||||||
WindowsPlatformStr = "Windows"
|
WindowsPlatformStr = "Windows"
|
||||||
OSXPlatformStr = "OSX"
|
OSXPlatformStr = "OSX"
|
||||||
WebPlatformStr = "Web"
|
WebPlatformStr = "Web"
|
||||||
MiniWebPlatformStr = "MiniWeb"
|
MiniWebPlatformStr = "MiniWeb"
|
||||||
LinuxPlatformStr = "Linux"
|
LinuxPlatformStr = "Linux"
|
||||||
|
AndroidPadPlatformStr = "APad"
|
||||||
|
IPadPlatformStr = "IPad"
|
||||||
|
|
||||||
//terminal types
|
//terminal types
|
||||||
TerminalPC = "PC"
|
TerminalPC = "PC"
|
||||||
@ -28,22 +32,26 @@ const (
|
|||||||
)
|
)
|
||||||
|
|
||||||
var PlatformID2Name = map[int]string{
|
var PlatformID2Name = map[int]string{
|
||||||
IOSPlatformID: IOSPlatformStr,
|
IOSPlatformID: IOSPlatformStr,
|
||||||
AndroidPlatformID: AndroidPlatformStr,
|
AndroidPlatformID: AndroidPlatformStr,
|
||||||
WindowsPlatformID: WindowsPlatformStr,
|
WindowsPlatformID: WindowsPlatformStr,
|
||||||
OSXPlatformID: OSXPlatformStr,
|
OSXPlatformID: OSXPlatformStr,
|
||||||
WebPlatformID: WebPlatformStr,
|
WebPlatformID: WebPlatformStr,
|
||||||
MiniWebPlatformID: MiniWebPlatformStr,
|
MiniWebPlatformID: MiniWebPlatformStr,
|
||||||
LinuxPlatformID: LinuxPlatformStr,
|
LinuxPlatformID: LinuxPlatformStr,
|
||||||
|
AndroidPadPlatformID: AndroidPadPlatformStr,
|
||||||
|
IPadPlatformID: IPadPlatformStr,
|
||||||
}
|
}
|
||||||
var PlatformName2ID = map[string]int{
|
var PlatformName2ID = map[string]int{
|
||||||
IOSPlatformStr: IOSPlatformID,
|
IOSPlatformStr: IOSPlatformID,
|
||||||
AndroidPlatformStr: AndroidPlatformID,
|
AndroidPlatformStr: AndroidPlatformID,
|
||||||
WindowsPlatformStr: WindowsPlatformID,
|
WindowsPlatformStr: WindowsPlatformID,
|
||||||
OSXPlatformStr: OSXPlatformID,
|
OSXPlatformStr: OSXPlatformID,
|
||||||
WebPlatformStr: WebPlatformID,
|
WebPlatformStr: WebPlatformID,
|
||||||
MiniWebPlatformStr: MiniWebPlatformID,
|
MiniWebPlatformStr: MiniWebPlatformID,
|
||||||
LinuxPlatformStr: LinuxPlatformID,
|
LinuxPlatformStr: LinuxPlatformID,
|
||||||
|
AndroidPadPlatformStr: AndroidPadPlatformID,
|
||||||
|
IPadPlatformStr: IPadPlatformID,
|
||||||
}
|
}
|
||||||
var Platform2class = map[string]string{
|
var Platform2class = map[string]string{
|
||||||
IOSPlatformStr: TerminalMobile,
|
IOSPlatformStr: TerminalMobile,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user