From b0a8ad1ac1970af3092328eed9e948b9f40473d0 Mon Sep 17 00:00:00 2001 From: Gordon <1432970085@qq.com> Date: Thu, 13 Jan 2022 18:33:11 +0800 Subject: [PATCH] tidy --- internal/msg_gateway/gate/ws_server.go | 2 +- pkg/common/constant/constant.go | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/internal/msg_gateway/gate/ws_server.go b/internal/msg_gateway/gate/ws_server.go index 88fad8c0c..2197fbbc2 100644 --- a/internal/msg_gateway/gate/ws_server.go +++ b/internal/msg_gateway/gate/ws_server.go @@ -128,7 +128,7 @@ func (ws *WServer) MultiTerminalLoginChecker(uid string, platformID int32, newCo } delete(ws.wsConnToUser, oldConn) if err != nil { - log.NewError("", "conn close err", err.Error()) + log.NewError("", "conn close err", err.Error(), uid, platformID) } } diff --git a/pkg/common/constant/constant.go b/pkg/common/constant/constant.go index 636096176..d0bfec2e0 100644 --- a/pkg/common/constant/constant.go +++ b/pkg/common/constant/constant.go @@ -78,13 +78,13 @@ const ( ExpiredToken = 3 //MultiTerminalLogin - //全端登录,但是同端互斥 + //Full-end login, but the same end is mutually exclusive AllLoginButSameTermKick = 1 - //所有端中只能有一端能够登录 + //Only one of the endpoints can log in 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 - //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 OnlineStatus = "online"