diff --git a/app/mix/service/utilservice.go b/app/mix/service/utilservice.go index 099d01ce..b7af11b9 100644 --- a/app/mix/service/utilservice.go +++ b/app/mix/service/utilservice.go @@ -833,6 +833,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++ {