Ajuste rotina de bloqueio
This commit is contained in:
parent
2c319920b1
commit
ffd35fae51
2 changed files with 10 additions and 4 deletions
12
vendor/action/liberation/liberation.php
vendored
12
vendor/action/liberation/liberation.php
vendored
|
|
@ -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 {
|
||||
|
||||
|
|
|
|||
|
|
@ -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))
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue