From c80c1eaa4c5135427ba61f329e0057462f78cc69 Mon Sep 17 00:00:00 2001 From: "gabrielg.colab" Date: Thu, 7 Nov 2024 14:58:29 -0300 Subject: [PATCH] =?UTF-8?q?Corre=C3=A7=C3=A3o=20na=20consulta=20de=20retor?= =?UTF-8?q?no=20de=20AR=20no=20banco=20de=20dados=20Oracle?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sei/web/modulos/correios/rn/MdCorRetornoArRN.php | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/sei/web/modulos/correios/rn/MdCorRetornoArRN.php b/sei/web/modulos/correios/rn/MdCorRetornoArRN.php index 1ec05ef..0e08330 100644 --- a/sei/web/modulos/correios/rn/MdCorRetornoArRN.php +++ b/sei/web/modulos/correios/rn/MdCorRetornoArRN.php @@ -337,14 +337,9 @@ protected function converterPdfImageControlado($url) // realiza leitura de qrcode ou barcode $result = $objDecoder->make($noArquivoJpg); + $codigo = $result->code == 200 ? $result->text : '0'; - if ( $result->code == 400 ) { - //$objInfraException->adicionarValidacao('Não foi possível fazer a leitura do QRCode ou Código de Barras.'); - //$objInfraException->lancarValidacoes(); - $result = '0'; - } - - $arrQrCode[$file] = $result; + $arrQrCode[$file] = $codigo; if (($key = array_search($file, $files)) !== false) { unset($files[$key]);