Ajuste rotina de bloqueio

This commit is contained in:
Kenio 2025-09-08 11:22:53 -03:00
parent 2c319920b1
commit ffd35fae51
2 changed files with 10 additions and 4 deletions

View file

@ -101,10 +101,16 @@ try{
// Incrementa contador de registros
$i++;
}
}
echo json_encode($result, JSON_PRETTY_PRINT | JSON_UNESCAPED_UNICODE);
exit;
/** Informa */
echo json_encode($result, JSON_PRETTY_PRINT | JSON_UNESCAPED_UNICODE);
exit;
} else {
/** Informo */
throw new InvalidArgumentException('Nenhum cartório localizado para o CNS informado', 0);
}
} else {

View file

@ -216,7 +216,7 @@ class FinancialMovementsValidate
{
/** Trata a entrada da informação */
$this->cns = isset($cns) ? $this->Main->antiInjection($cns) : '';
$this->cns = isset($cns) ? $this->Main->antiInjection($this->Main->removeMask($cns)) : '';
/** Verifica se a informação foi informada */
if(empty($this->cns))