diff --git a/app/mix/service/apiservice.go b/app/mix/service/apiservice.go index 382b2360..36cde884 100644 --- a/app/mix/service/apiservice.go +++ b/app/mix/service/apiservice.go @@ -1262,7 +1262,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 } @@ -1308,7 +1308,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 }