修复im发送无法获取session
This commit is contained in:
parent
f3314d2d1d
commit
db90205818
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in New Issue