by Robin at 20240411

This commit is contained in:
Leufolium 2024-04-11 22:19:28 +08:00
parent 1ecae673f6
commit 8faf3cfefe
2 changed files with 2 additions and 2 deletions

View File

@ -179,7 +179,7 @@ func (handler *ImageAuditTaskResultHandler) generateZoneMomentMediaComponentUpda
for i, pass := range task.AuditedMediaResults { for i, pass := range task.AuditedMediaResults {
if !pass { if !pass {
imageaudit := task.ImageAudits[i] imageaudit := task.ImageAudits[i]
imageAuditOpinion.WriteString(fmt.Sprintf("图片%d未通过机审,退回原因:%s\n", i, strings.Join(imageaudit.NotPassScenes, ","))) imageAuditOpinion.WriteString(fmt.Sprintf("图片%d%s ", i+1, strings.Join(imageaudit.NotPassScenes, ",")))
} }
} }
} }

View File

@ -190,7 +190,7 @@ func (handler *TextAuditTaskResultHandler) generateZoneMomentTextUpdateFunc() {
if util.DerefInt64(task.Status) == consts.TextAudit_ServiceFailed { if util.DerefInt64(task.Status) == consts.TextAudit_ServiceFailed {
textAuditOpinion = "机审失败" textAuditOpinion = "机审失败"
} else { } else {
textAuditOpinion = fmt.Sprintf("机审违规:含有 %s 关键词", strings.Join(task.TextAudit.NotPassScenes, ",")) textAuditOpinion = fmt.Sprintf("%s", strings.Join(task.TextAudit.NotPassScenes, ","))
} }
err := _DefaultZoneMoment.OpUpdate(ctx, &zonemomentproto.OpUpdateReq{ err := _DefaultZoneMoment.OpUpdate(ctx, &zonemomentproto.OpUpdateReq{
ZoneMoment: &dbstruct.ZoneMoment{ ZoneMoment: &dbstruct.ZoneMoment{