From db902058185c938a3e3ab12e8b6cf66be7aacaf9 Mon Sep 17 00:00:00 2001 From: junleea <354425203@qq.com> Date: Thu, 27 Jun 2024 17:00:29 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Dim=E5=8F=91=E9=80=81=E6=97=A0?= =?UTF-8?q?=E6=B3=95=E8=8E=B7=E5=8F=96session?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- handler/im.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/handler/im.go b/handler/im.go index a16f941..d9e7be5 100644 --- a/handler/im.go +++ b/handler/im.go @@ -53,7 +53,7 @@ func GetImKey(c *gin.Context) { } else { redis_key = strconv.Itoa(req.To_user_id) + "_" + strconv.Itoa(id1) + "_imKey" } - if worker.IsContainKey(redis_key) == true { + if worker.IsContainKey(redis_key+"_connection") == true { res := worker.GetRedis(redis_key) var retrievedData map[string]interface{} err2 := json.Unmarshal([]byte(res), &retrievedData)