Merge pull request 'fix null' (#98) from feat-IRONFANS-40-20240125-Robin into test

Reviewed-on: #98
This commit is contained in:
chenhao 2024-02-05 19:03:52 +08:00
commit 2d2877131a
1 changed files with 4 additions and 0 deletions

View File

@ -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) { func (s *Service) utilFillMomentsStreamerInfo(ctx *gin.Context, moments []*dbstruct.Moment, option int) (vos []momentproto.MomentVO, ec errcode.ErrCode) {
ec = errcode.ErrCodeMomentSrvOk ec = errcode.ErrCodeMomentSrvOk
if len(moments) == 0 {
return
}
// 组装midList // 组装midList
midSet := make(map[int64]*dbstruct.Moment) midSet := make(map[int64]*dbstruct.Moment)
for _, moment := range moments { for _, moment := range moments {