Merge pull request 'by Robin at 20240520' (#459) from feat-IRONFANS-129-Robin into test
Reviewed-on: http://121.41.31.146:3000/wishpal_ironfan/service/pulls/459
This commit is contained in:
commit
bc30b6a7f7
|
@ -1191,6 +1191,9 @@ func (s *Service) utilGetStreamerRecommListVO(ctx *gin.Context, recommlist []int
|
|||
|
||||
// 向下操作,去尾
|
||||
upperBound := int64(consts.StreamerRecommThroughput)
|
||||
if len(recommlist) < consts.StreamerRecommThroughput {
|
||||
upperBound = int64(len(recommlist))
|
||||
}
|
||||
if opType == consts.Recomm_Down {
|
||||
surplusVolume := recommListLength - offset
|
||||
if surplusVolume < consts.StreamerRecommThroughput {
|
||||
|
|
Loading…
Reference in New Issue