Merge pull request 'fix null' (#98) from feat-IRONFANS-40-20240125-Robin into test
Reviewed-on: #98
This commit is contained in:
commit
2d2877131a
|
@ -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 {
|
||||||
|
|
Loading…
Reference in New Issue