This commit is contained in:
parent
3b8ed9a4e1
commit
4df038ad9e
|
@ -232,6 +232,12 @@ func finalizeTask(action *TextAuditAction) (err error) {
|
||||||
func copyScanResultInfo(textaudit *dbstruct.TextAudit, elements *textaudit.ScanTextResponseBodyDataElements) (pass bool, err error) {
|
func copyScanResultInfo(textaudit *dbstruct.TextAudit, elements *textaudit.ScanTextResponseBodyDataElements) (pass bool, err error) {
|
||||||
|
|
||||||
pass = true
|
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 {
|
for _, result := range elements.Results {
|
||||||
textaudit.Suggestion = result.Suggestion
|
textaudit.Suggestion = result.Suggestion
|
||||||
textaudit.Label = result.Label
|
textaudit.Label = result.Label
|
||||||
|
|
Loading…
Reference in New Issue