Skip to content

Commit

Permalink
Merge pull request #5 from anatelgovbr/correios_v2.3.0
Browse files Browse the repository at this point in the history
Correção na consulta de retorno de AR no banco de dados Oracle
  • Loading branch information
gabriel9nc authored Nov 7, 2024
2 parents 2e5097d + c80c1ea commit ac5dead
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions sei/web/modulos/correios/rn/MdCorRetornoArRN.php
Original file line number Diff line number Diff line change
Expand Up @@ -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]);
Expand Down

0 comments on commit ac5dead

Please sign in to comment.