修复im发送无法获取session

This commit is contained in:
junleea 2024-06-27 17:00:29 +08:00
parent f3314d2d1d
commit db90205818
1 changed files with 1 additions and 1 deletions

View File

@ -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)