by Robin at 20240411
This commit is contained in:
parent
1ecae673f6
commit
8faf3cfefe
|
@ -179,7 +179,7 @@ func (handler *ImageAuditTaskResultHandler) generateZoneMomentMediaComponentUpda
|
|||
for i, pass := range task.AuditedMediaResults {
|
||||
if !pass {
|
||||
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, ",")))
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -190,7 +190,7 @@ func (handler *TextAuditTaskResultHandler) generateZoneMomentTextUpdateFunc() {
|
|||
if util.DerefInt64(task.Status) == consts.TextAudit_ServiceFailed {
|
||||
textAuditOpinion = "机审失败"
|
||||
} 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{
|
||||
ZoneMoment: &dbstruct.ZoneMoment{
|
||||
|
|
Loading…
Reference in New Issue