by Robin at 20240801
This commit is contained in:
parent
739b1c6a6d
commit
7ec3af4584
|
@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue