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 }