by Robin at 20240801

This commit is contained in:
Leufolium 2024-08-01 16:21:48 +08:00
parent 739b1c6a6d
commit 7ec3af4584
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)
}
}