diff --git a/library/contentaudit/textaudit/textaudit.go b/library/contentaudit/textaudit/textaudit.go index a6966516..fe823415 100644 --- a/library/contentaudit/textaudit/textaudit.go +++ b/library/contentaudit/textaudit/textaudit.go @@ -232,6 +232,12 @@ func finalizeTask(action *TextAuditAction) (err error) { func copyScanResultInfo(textaudit *dbstruct.TextAudit, elements *textaudit.ScanTextResponseBodyDataElements) (pass bool, err error) { pass = true + if len(elements.Results) == 0 { + pass = false + textaudit.Status = goproto.Int64(consts.TextAudit_ServiceFailed) + textaudit.NotPassScenes = append(textaudit.NotPassScenes, "机审失败") + return + } for _, result := range elements.Results { textaudit.Suggestion = result.Suggestion textaudit.Label = result.Label