Commit 5256987cd14cdcda3901c3bb49290fbbb1546aec

Authored by Starlone Passos
1 parent d987af60

Obtendo as configuracoes do modulo em ConfiguracaoSEI.php

Showing 1 changed file with 6 additions and 1 deletions   Show diff stats
rn/MdEstatisticasEnviarRN.php
... ... @@ -19,8 +19,13 @@ class MdEstatisticasEnviarRN extends InfraRN {
19 19 $json = json_encode($indicadores);
20 20 InfraDebug::getInstance()->gravar('JSON: ' . $json, InfraLog::$INFORMACAO);
21 21  
  22 + $objConfiguracaoSEI = ConfiguracaoSEI::getInstance();
  23 + $url = $objConfiguracaoSEI->getValor('MdEstatisticas','url', false, 'http://estatisticas.planejamento.gov.br');
  24 +
  25 + InfraDebug::getInstance()->gravar('URL: ' . $url, InfraLog::$INFORMACAO);
  26 +
22 27 $ch = curl_init();
23   - curl_setopt($ch, CURLOPT_URL, "http://192.168.1.7:8181/estatisticas");
  28 + curl_setopt($ch, CURLOPT_URL, $url);
24 29 curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
25 30 curl_setopt($ch, CURLOPT_POST, true);
26 31 curl_setopt($ch, CURLOPT_POSTFIELDS, $json);
... ...