This commit is contained in:
Leufolium 2024-07-19 22:54:22 +08:00
parent ebd161ba90
commit 8ce679e746
1 changed files with 4 additions and 0 deletions

View File

@ -69,6 +69,7 @@ func Run(batchId string) (successNum int, failNum int, err error) {
return
}
results = append(results, _result.Body.Data.Elements...)
logger.Info("Receive the response from ScanTextWithOptions: %v", _result.String())
}
// 4.处理应答
@ -123,6 +124,7 @@ func handleScanTextResponseBodyDataElements(ctrlBlock *TextAuditTaskBatchControl
action := &TextAuditAction{}
// 1.立即在textaudit-textaudit中更新该次审核结果
logger.Info("text_audit_id:%v", taskCtrlBlocks[i].TextAuditTask.TextAuditId)
pass, textaudit, err := handleTextAudit(taskCtrlBlocks[i].TextAuditTask.TextAuditId, result)
if err != nil {
logger.Error("handleTextAudit fail: %v", err)
@ -150,11 +152,13 @@ func handleTextAudit(id *string, result *textaudit.ScanTextResponseBodyDataEleme
textaudit = &dbstruct.TextAudit{
Id: id,
}
logger.Info("entering copyScanResultInfo...")
pass, err = copyScanResultInfo(textaudit, result)
if err != nil {
logger.Error("Copy Scan Result Info fail: %v\n", err)
return
}
logger.Info("entering _DefaultTextAudit.OpUpdate...")
if err = _DefaultTextAudit.OpUpdate(ctx, &textauditproto.OpUpdateReq{
TextAudit: textaudit,
}); err != nil {