fix: checkout ocr response status code

This commit is contained in:
lilong.129
2023-04-14 21:50:24 +08:00
parent f5935f0ffd
commit 2d7634f6b0
2 changed files with 2 additions and 2 deletions

View File

@@ -1 +1 @@
v4.3.3.2304142136
v4.3.3.2304142149

View File

@@ -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).