Commit 54d6a9f7c0d64e4a00df136d39becb29c69900ed
1 parent
f9bd618c
Exists in
master
and in
1 other branch
Corrige nome da variável no getConfig
Showing
1 changed file
with
4 additions
and
2 deletions
Show diff stats
src/Cacic/WSBundle/Controller/DefaultController.php
| ... | ... | @@ -189,7 +189,7 @@ class DefaultController extends Controller |
| 189 | 189 | $ip_computador = $request->getClientIp(); |
| 190 | 190 | } |
| 191 | 191 | |
| 192 | - $te_node_adress = TagValueHelper::getValueFromTags( 'MACAddress', OldCacicHelper::deCrypt( $request, $request->get('NetworkAdapterConfiguration'))); | |
| 192 | + $te_node_address = TagValueHelper::getValueFromTags( 'MACAddress', OldCacicHelper::deCrypt( $request, $request->get('NetworkAdapterConfiguration'))); | |
| 193 | 193 | |
| 194 | 194 | // Caso não tenha encontrado, tenta pegar a variável da requisição |
| 195 | 195 | if (empty($te_node_address)) { |
| ... | ... | @@ -200,9 +200,11 @@ class DefaultController extends Controller |
| 200 | 200 | $netmask = $request->get('netmask'); |
| 201 | 201 | } |
| 202 | 202 | |
| 203 | + $logger->debug("Teste de Conexão! Ip do computador: $ip_computador Máscara da rede: $netmask MAC Address: $te_node_address"); | |
| 204 | + | |
| 203 | 205 | $so = $this->getDoctrine()->getRepository('CacicCommonBundle:So')->findOneBy( array('teSo'=>$request->get( 'te_so' ))); |
| 204 | 206 | $rede = $this->getDoctrine()->getRepository('CacicCommonBundle:Rede')->getDadosRedePreColeta( $ip_computador, $netmask ); |
| 205 | - $computador = $this->getDoctrine()->getRepository('CacicCommonBundle:Computador')->getComputadorPreCole( $request, $request->get( 'te_so' ),$te_node_adress, $rede, $so, $ip_computador ); | |
| 207 | + $computador = $this->getDoctrine()->getRepository('CacicCommonBundle:Computador')->getComputadorPreCole( $request, $request->get( 'te_so' ),$te_node_address, $rede, $so, $ip_computador ); | |
| 206 | 208 | //$local = $this->getDoctrine()->getRepository('CacicCommonBundle:Local')->findOneBy(array( 'idLocal' => $rede->getIdLocal() )); |
| 207 | 209 | $local = $rede->getIdLocal(); |
| 208 | 210 | $data = new \DateTime('NOW'); | ... | ... |