From 242074a4912047ffdb05b172103aa8ecd9946916 Mon Sep 17 00:00:00 2001 From: Leufolium Date: Mon, 5 Feb 2024 19:03:35 +0800 Subject: [PATCH] fix null --- app/mix/service/utilservice.go | 4 ++++ 1 file changed, 4 insertions(+) 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 {