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:
commit
4876bb6ca8
|
@ -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