Merge pull request 'by Robin at 20240621' (#548) from feat-IRONFANS-141-Robin into test

Reviewed-on: http://121.41.31.146:3000/wishpal_ironfan/service/pulls/548
This commit is contained in:
chenhao 2024-06-21 21:28:28 +08:00
commit aebca4b24d
1 changed files with 2 additions and 2 deletions

View File

@ -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
}