Merge pull request 'feat-IRONFANS-70' (#280) from feat-IRONFANS-70 into test
Reviewed-on: http://121.41.31.146:3000/wishpal_ironfan/service/pulls/280
This commit is contained in:
commit
0476432d25
|
@ -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