diff --git a/domain/model/tim_m/user.go b/domain/model/tim_m/user.go index 16e05cc2b71639d25f0701ae236a0ab97ec0c9d0..c88e3f53d6634c7f1e42f4d4aa26fc38147efc8a 100644 --- a/domain/model/tim_m/user.go +++ b/domain/model/tim_m/user.go @@ -387,10 +387,10 @@ func getOnlineStatus(extIds []string) ([]interface{}, error) { for _, e := range extIds { keys = append(keys, redis_key.GetOnLineStatusKey(e)) } - return redisCli.RedisClient.MGet(context.Background(), keys...).Result() + return redisCli.RedisClusterClient.MGet(context.Background(), keys...).Result() } func setOnlineStatus(extId string, status uint, ttl time.Duration) error { key := redis_key.GetOnLineStatusKey(extId) - return redisCli.RedisClient.Set(context.Background(), key, status, ttl).Err() + return redisCli.RedisClusterClient.Set(context.Background(), key, status, ttl).Err() }