diff --git a/app/mix/service/utilservice.go b/app/mix/service/utilservice.go index 682b5a8c..b07e4a33 100644 --- a/app/mix/service/utilservice.go +++ b/app/mix/service/utilservice.go @@ -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) } }