diff --git a/app/mix/service/utilservice.go b/app/mix/service/utilservice.go index e48b27a5..9563c18b 100644 --- a/app/mix/service/utilservice.go +++ b/app/mix/service/utilservice.go @@ -933,6 +933,10 @@ func (s *Service) utilGetStreamerRecommListVO(ctx *gin.Context, recommlist []int return make([]*streamerproto.ApiListExtVO, 0), nil } + if consts.StreamerRecommThroughput < recommListLength { + upperBound = consts.StreamerRecommThroughput + } + // 根据用户游标查询得到结果 midList := make([]int64, 0) for i := 0; i < upperBound; i++ {