Merge pull request 'by Robin at 20240911; vdmdbug' (#726) from BUG-20240911-vd into main

Reviewed-on: http://121.41.31.146:3000/wishpal_ironfan/service/pulls/726
This commit is contained in:
chenhao 2024-09-11 11:01:09 +08:00
commit 062f6473ac
2 changed files with 2 additions and 2 deletions

View File

@ -2290,7 +2290,7 @@ func (s *Service) ApiUpdateMoment(ctx *gin.Context, req *momentproto.ApiUpdateRe
momentAuditTask.ImageAuditTaskStatus = goproto.Int64(consts.MomentAudit_Created)
} else if len(videomoderationtasks) > 0 {
momentAuditTask.ImageAuditTaskId = videomoderationtasks[0].Id
momentAuditTask.AuditedMedia = imageaudittasks[0].AuditedMedia
momentAuditTask.AuditedMedia = videomoderationtasks[0].AuditedMedia
momentAuditTask.ImageAuditTaskStatus = goproto.Int64(consts.MomentAudit_Created)
} else { // 媒体内容未更新,默认设置为通过
momentAuditTask.ImageAuditTaskStatus = goproto.Int64(consts.MomentAudit_Passed)

View File

@ -1272,7 +1272,7 @@ func (s *Service) OpUpdateMoment(ctx *gin.Context, req *momentproto.OpUpdateReq)
momentAuditTask.AuditedMedia = imageaudittasks[0].AuditedMedia
} else if len(videomoderationtasks) > 0 {
momentAuditTask.ImageAuditTaskId = videomoderationtasks[0].Id
momentAuditTask.AuditedMedia = imageaudittasks[0].AuditedMedia
momentAuditTask.AuditedMedia = videomoderationtasks[0].AuditedMedia
}
if len(textaudittasks) > 0 {
momentAuditTask.AuditedText = textaudittasks[0].AuditedText