From c787b73e9916b079a67cd2b704b92d42d6aa4964 Mon Sep 17 00:00:00 2001 From: "lilong.129" Date: Fri, 14 Apr 2023 21:50:24 +0800 Subject: [PATCH] fix: checkout ocr response status code --- hrp/internal/version/VERSION | 2 +- hrp/pkg/uixt/ocr_vedem.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/hrp/internal/version/VERSION b/hrp/internal/version/VERSION index 45631758..45af2229 100644 --- a/hrp/internal/version/VERSION +++ b/hrp/internal/version/VERSION @@ -1 +1 @@ -v4.3.3.2304142136 \ No newline at end of file +v4.3.3.2304142149 \ No newline at end of file diff --git a/hrp/pkg/uixt/ocr_vedem.go b/hrp/pkg/uixt/ocr_vedem.go index 67c80b40..f68964b6 100644 --- a/hrp/pkg/uixt/ocr_vedem.go +++ b/hrp/pkg/uixt/ocr_vedem.go @@ -97,7 +97,7 @@ func (s *veDEMOCRService) getOCRResult(imageBuf *bytes.Buffer) ([]OCRResult, err if resp != nil { logID = getLogID(resp.Header) } - if err == nil { + if err == nil && resp.StatusCode == http.StatusOK { log.Debug(). Str("X-TT-LOGID", logID). Int("imageBufSize", size).