by Robin at 20240517 #452
|
@ -931,6 +931,10 @@ func (s *Service) utilUnThumbsZoneMoment(ctx *gin.Context, req *zonemomentproto.
|
||||||
|
|
||||||
// 加密未解锁身份的动态
|
// 加密未解锁身份的动态
|
||||||
func (s *Service) utilEncryptInaccessibleZoneMoment(vo *zonemomentproto.ApiZoneMomentVO) {
|
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 {
|
if vo.GetMType() == consts.MediaTypeImg {
|
||||||
imageIds := vo.MediaComp.GetImageIds()
|
imageIds := vo.MediaComp.GetImageIds()
|
||||||
mediaVisibleRange := vo.GetMediaVisibleRange()
|
mediaVisibleRange := vo.GetMediaVisibleRange()
|
||||||
|
@ -944,9 +948,6 @@ func (s *Service) utilEncryptInaccessibleZoneMoment(vo *zonemomentproto.ApiZoneM
|
||||||
imageIds = imageIds[:mediaVisibleRange]
|
imageIds = imageIds[:mediaVisibleRange]
|
||||||
vo.MediaComp.ImageIds = util.Int64Slice(imageIds)
|
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