From 900a8035251a8d9c024463a1b795f8a18496beda Mon Sep 17 00:00:00 2001 From: Leufolium Date: Fri, 21 Jun 2024 21:28:16 +0800 Subject: [PATCH] by Robin at 20240621 --- app/mix/service/apiservice.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/mix/service/apiservice.go b/app/mix/service/apiservice.go index fb7f6999..c6ba7a06 100644 --- a/app/mix/service/apiservice.go +++ b/app/mix/service/apiservice.go @@ -1230,7 +1230,7 @@ func (s *Service) ApiGetStreamerExtListFuzzilyByUserId(ctx *gin.Context, req *st // 从redis中获取当前禁止被搜索的主播 blockedlist := make([]string, 0) err := redis.GetRedisClient().GetObject(consts.RedisStreamerPrefix+"blocked_from_being_searched_list", &blockedlist) - if err != nil { + if err != nil && !redis.GetRedisClient().IsErrNil(err) { logger.Error("Redis read failed : %v", err) return } @@ -1276,7 +1276,7 @@ func (s *Service) ApiGetStreamerExtListFuzzilyByName(ctx *gin.Context, req *stre // 从redis中获取当前禁止被搜索的主播 blockedlist := make([]string, 0) err := redis.GetRedisClient().GetObject(consts.RedisStreamerPrefix+"blocked_from_being_searched_list", &blockedlist) - if err != nil { + if err != nil && !redis.GetRedisClient().IsErrNil(err) { logger.Error("Redis read failed : %v", err) return }