Compare commits
1 Commits
main
...
feat-IRONF
Author | SHA1 | Date |
---|---|---|
|
3cdd0bc0b3 |
|
@ -302,11 +302,13 @@ func (s *Service) utilFillMomentsWithApiVOInfo(ctx *gin.Context, list []*dbstruc
|
|||
return
|
||||
}
|
||||
|
||||
// 仅创建者才填充信息
|
||||
if visitorMid == vo.Moment.GetMid() {
|
||||
// 填充审核信息
|
||||
vo.ImageAuditOpinion = taskMp[fmt.Sprint(vo.Moment.GetId())].GetImageAuditOpinion()
|
||||
vo.TextAuditOpinion = taskMp[fmt.Sprint(vo.Moment.GetId())].GetTextAuditOpinion()
|
||||
vo.ManuallyReviewOpinion = taskMp[fmt.Sprint(vo.Moment.GetId())].GetManuallyReviewOpinion()
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
return
|
||||
|
@ -1896,6 +1898,18 @@ func (s *Service) utilFillZoneMomentsWithApiVOInfo(ctx *gin.Context, list []*dbs
|
|||
vo.IronfanshipCoinPrice = zv.GetIronfanshipCoinPrice()
|
||||
vo.IsSuperfanshipEnabled = int64(zv.IsSuperfanshipEnabled)
|
||||
}
|
||||
|
||||
// 非创建者,抹去审核信息
|
||||
if visitorMid != vo.ZoneMoment.GetMid() {
|
||||
vo.ZoneMoment.Status = nil
|
||||
vo.ZoneMoment.ImageAuditStatus = nil
|
||||
vo.ZoneMoment.TextAuditStatus = nil
|
||||
vo.ZoneMoment.ManuallyReviewStatus = nil
|
||||
vo.ZoneMoment.ImageAuditOpinion = nil
|
||||
vo.ZoneMoment.TextAuditOpinion = nil
|
||||
vo.ZoneMoment.ManuallyReviewOpinion = nil
|
||||
vo.ZoneMoment.ManuallyReviewOperator = nil
|
||||
}
|
||||
}
|
||||
|
||||
return
|
||||
|
|
Loading…
Reference in New Issue