Merge pull request 'by Robin at 20240411' (#279) from dev-feat-IRONFANS-70-Robin into feat-IRONFANS-70
Reviewed-on: http://121.41.31.146:3000/wishpal_ironfan/service/pulls/279
This commit is contained in:
commit
bb635d8778
|
@ -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, ",")))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -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{
|
||||||
|
|
Loading…
Reference in New Issue