mirror of
https://github.com/httprunner/httprunner.git
synced 2026-06-09 01:39:39 +08:00
fix: checkout ocr response status code
This commit is contained in:
@@ -1 +1 @@
|
|||||||
v4.3.3.2304142136
|
v4.3.3.2304142149
|
||||||
@@ -97,7 +97,7 @@ func (s *veDEMOCRService) getOCRResult(imageBuf *bytes.Buffer) ([]OCRResult, err
|
|||||||
if resp != nil {
|
if resp != nil {
|
||||||
logID = getLogID(resp.Header)
|
logID = getLogID(resp.Header)
|
||||||
}
|
}
|
||||||
if err == nil {
|
if err == nil && resp.StatusCode == http.StatusOK {
|
||||||
log.Debug().
|
log.Debug().
|
||||||
Str("X-TT-LOGID", logID).
|
Str("X-TT-LOGID", logID).
|
||||||
Int("imageBufSize", size).
|
Int("imageBufSize", size).
|
||||||
|
|||||||
Reference in New Issue
Block a user