by Robin at 20240517
This commit is contained in:
parent
0c3bb46562
commit
52e8d60715
|
@ -931,6 +931,10 @@ func (s *Service) utilUnThumbsZoneMoment(ctx *gin.Context, req *zonemomentproto.
|
|||
|
||||
// 加密未解锁身份的动态
|
||||
func (s *Service) utilEncryptInaccessibleZoneMoment(vo *zonemomentproto.ApiZoneMomentVO) {
|
||||
if vo.GetIsCreatingPaidText() == consts.IsCreatingPaidText_Yes {
|
||||
vo.Text = goproto.String(vo.GetText()[:len(vo.GetText())-len(vo.GetPaidText())])
|
||||
vo.PaidText = nil
|
||||
}
|
||||
if vo.GetMType() == consts.MediaTypeImg {
|
||||
imageIds := vo.MediaComp.GetImageIds()
|
||||
mediaVisibleRange := vo.GetMediaVisibleRange()
|
||||
|
@ -944,9 +948,6 @@ func (s *Service) utilEncryptInaccessibleZoneMoment(vo *zonemomentproto.ApiZoneM
|
|||
imageIds = imageIds[:mediaVisibleRange]
|
||||
vo.MediaComp.ImageIds = util.Int64Slice(imageIds)
|
||||
}
|
||||
if vo.GetIsCreatingPaidText() == consts.IsCreatingPaidText_Yes {
|
||||
vo.Text = goproto.String(vo.GetText()[:len(vo.GetText())-len(vo.GetPaidText())])
|
||||
}
|
||||
}
|
||||
|
||||
// 填充动态是否解锁
|
||||
|
|
Loading…
Reference in New Issue