Merge pull request 'by Robin at 20240801' (#673) from feat-IRONFANS-185-Robin into test

Reviewed-on: http://121.41.31.146:3000/wishpal_ironfan/service/pulls/673
This commit is contained in:
chenhao 2024-08-01 16:22:05 +08:00
commit 4876bb6ca8
1 changed files with 10 additions and 0 deletions

View File

@ -881,6 +881,16 @@ func (s *Service) utilEncryptInaccessibleZoneMoment(vo *zonemomentproto.ApiZoneM
}
imageIds = imageIds[:mediaVisibleRange]
vo.MediaComp.ImageIds = util.Int64Slice(imageIds)
} else if vo.GetMType() == consts.MediaTypeVideo {
videoIdForUploadFail, err := apollo.GetIntValue(consts.VideoIdForUploadFail, apollo.ApolloOpts().SetNamespace("application"))
if err != nil {
logger.Error("Apollo read failed : %v", err)
}
videoIds := vo.MediaComp.GetVideoIds()
for i := range videoIds {
videoIds[i] = int64(videoIdForUploadFail)
}
vo.MediaComp.VideoIds = util.Int64Slice(videoIds)
}
}