diff --git a/app/mix/service/utilservice.go b/app/mix/service/utilservice.go index 17cc79f3..8745295e 100644 --- a/app/mix/service/utilservice.go +++ b/app/mix/service/utilservice.go @@ -331,6 +331,10 @@ func (s *Service) utilUnThumbsUpMoment(ctx *gin.Context, req *momentproto.OpThum func (s *Service) utilFillMomentsStreamerInfo(ctx *gin.Context, moments []*dbstruct.Moment, option int) (vos []momentproto.MomentVO, ec errcode.ErrCode) { ec = errcode.ErrCodeMomentSrvOk + if len(moments) == 0 { + return + } + // 组装midList midSet := make(map[int64]*dbstruct.Moment) for _, moment := range moments {