Debug
This commit is contained in:
parent
a144b81197
commit
9eaef1b3a2
1 changed files with 32 additions and 32 deletions
|
|
@ -21,35 +21,35 @@ try{
|
|||
$CompaniesValidate->setCompanyId($companyId);
|
||||
|
||||
/** Verifico a existência de erros */
|
||||
if (empty($CompaniesValidate->getErrors())) {
|
||||
// if (empty($CompaniesValidate->getErrors())) {
|
||||
|
||||
/** Consulta os dados do cliente */
|
||||
$CompaniesResult = $Companies->Get($CompaniesValidate->getCompanyId());
|
||||
// /** Consulta os dados do cliente */
|
||||
// $CompaniesResult = $Companies->Get($CompaniesValidate->getCompanyId());
|
||||
|
||||
/** Parametros a serem enviados */
|
||||
$params = $Main->ClearDoc($CompaniesResult->document);
|
||||
$params .= '?numeroContrato='.$Main->LoadConfigPublic()->app->ticket->numero_contrato;
|
||||
$params .= '&codigoSituacao=1';
|
||||
$params .= '&dataInicio='.date("Y-m-01");
|
||||
$params .= '&dataFim='.date("Y-m-d");
|
||||
// /** Parametros a serem enviados */
|
||||
// $params = $Main->ClearDoc($CompaniesResult->document);
|
||||
// $params .= '?numeroContrato='.$Main->LoadConfigPublic()->app->ticket->numero_contrato;
|
||||
// $params .= '&codigoSituacao=1';
|
||||
// $params .= '&dataInicio='.date("Y-m-01");
|
||||
// $params .= '&dataFim='.date("Y-m-d");
|
||||
|
||||
/** REQUISIÇÃO RESPONSÁVEL EM GERAR O TOKEN */
|
||||
$ApiSicoob->accessToken();
|
||||
// /** REQUISIÇÃO RESPONSÁVEL EM GERAR O TOKEN */
|
||||
// $ApiSicoob->accessToken();
|
||||
|
||||
/** Verifica se foi retornado erros */
|
||||
if(empty($ApiSicoob->getErrors())){
|
||||
// /** Verifica se foi retornado erros */
|
||||
// if(empty($ApiSicoob->getErrors())){
|
||||
|
||||
/** Envia a solicitação */
|
||||
$ApiSicoob->sendService('cobranca_boletos_listar_por_pagador', [$params], NULL);
|
||||
// /** Envia a solicitação */
|
||||
// $ApiSicoob->sendService('cobranca_boletos_listar_por_pagador', [$params], NULL);
|
||||
|
||||
|
||||
/** Verifica possíveis erros */
|
||||
if(empty($ApiSicoob->getErrors())){
|
||||
// /** Verifica possíveis erros */
|
||||
// if(empty($ApiSicoob->getErrors())){
|
||||
|
||||
|
||||
?>
|
||||
// ?>
|
||||
|
||||
<div class="col-lg-12 mb-4">
|
||||
<!-- <div class="col-lg-12 mb-4">
|
||||
|
||||
<div class="card shadow mb-12">
|
||||
|
||||
|
|
@ -117,27 +117,27 @@ try{
|
|||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div> -->
|
||||
|
||||
<?php
|
||||
|
||||
} else {
|
||||
// } else {
|
||||
|
||||
/** Retorna a mensagem com seu respectivo erro **/
|
||||
throw new InvalidArgumentException($ApiSicoob->getErrors(), 0);
|
||||
}
|
||||
// /** Retorna a mensagem com seu respectivo erro **/
|
||||
// throw new InvalidArgumentException($ApiSicoob->getErrors(), 0);
|
||||
// }
|
||||
|
||||
} else {
|
||||
// } else {
|
||||
|
||||
/** Retorna a mensagem com seu respectivo erro **/
|
||||
throw new InvalidArgumentException($ApiSicoobValidate->getErrors(), 0);
|
||||
}
|
||||
// /** Retorna a mensagem com seu respectivo erro **/
|
||||
// throw new InvalidArgumentException($ApiSicoobValidate->getErrors(), 0);
|
||||
// }
|
||||
|
||||
} else {
|
||||
// } else {
|
||||
|
||||
/** Retorna a mensagem com seu respectivo erro **/
|
||||
throw new InvalidArgumentException($CompaniesValidate->getErrors(), 0);
|
||||
}
|
||||
// /** Retorna a mensagem com seu respectivo erro **/
|
||||
// throw new InvalidArgumentException($CompaniesValidate->getErrors(), 0);
|
||||
// }
|
||||
|
||||
/** Caso o token de acesso seja inválido, informo */
|
||||
}else{
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue