Browse Source

ajustes diversos

master
douglasstrappasson 1 year ago
parent
commit
a37083023c
  1. 6
      Clientes/StarNet/AdicionaInfoCliente.php
  2. 6
      Clientes/StarNet/ConsultaCliente_noturno.php
  3. 6
      Clientes/StarNet/ConsultaDetalhesFatura.php
  4. 6
      Clientes/StarNet/ConsultaDetalhesFatura_old.php
  5. 6
      Clientes/StarNet/DesbloqueiaCliente.php
  6. 6
      Clientes/StarNet/EnviaBoletoEmail.php
  7. 6
      Clientes/StarNet/EnviaBoletoEmail_teste.php
  8. 3
      Clientes/StarNet/MKSolutions.php
  9. 6
      Clientes/StarNet/VerificaClienteNovo.php
  10. 6
      Clientes/StarNet/VerificaPendencia.php
  11. 6
      Clientes/StarNet/VerificaPendencia_noturno.php
  12. 4
      Clientes/StarNet/config.php
  13. 6
      Clientes/StarNet/consultaCliente.php
  14. 6
      Clientes/StarNet/teste_requisicao.php
  15. 6
      Clientes/StarNet/verificaParadaTecnica.php

6
Clientes/StarNet/AdicionaInfoCliente.php

@ -21,11 +21,7 @@ $registros = array(
"reg_inicio" => date());
$mk = new MkSolutions(
'f2e87897171de861c0910342dc166ffe',
"168.121.64.110:60180",
'38861d4be7c3698',
true);
$mk = new MkSolutions();
$mk->db()->setRegistros($registros);
$mk->db()->setIdAudioError('');

6
Clientes/StarNet/ConsultaCliente_noturno.php

@ -21,11 +21,7 @@ $registros = array(
"reg_inicio" => date());
$mk = new MkSolutions(
'87bf6111a9157a61f9bcac116699064f',
"168.121.64.110:60180",
'38861d4be7c3698',
true);
$mk = new MkSolutions();
$mk->db()->setRegistros($registros);
$mk->db()->setIdAudioError('81');

6
Clientes/StarNet/ConsultaDetalhesFatura.php

@ -21,11 +21,7 @@
"reg_inicio" => date());
$mk = new MkSolutions(
'f2e87897171de861c0910342dc166ffe',
"168.121.64.110:60180",
'38861d4be7c3698',
true);
$mk = new MkSolutions();
$mk->db()->setRegistros($registros);
$mk->db()->setIdAudioError('');

6
Clientes/StarNet/ConsultaDetalhesFatura_old.php

@ -21,11 +21,7 @@ $registros = array(
"reg_inicio" => date());
$mk = new MkSolutions(
'f2e87897171de861c0910342dc166ffe',
"168.121.64.110:60180",
'38861d4be7c3698',
true);
$mk = new MkSolutions();
$mk->db()->setRegistros($registros);
$mk->db()->setIdAudioError('');

6
Clientes/StarNet/DesbloqueiaCliente.php

@ -21,11 +21,7 @@ $registros = array(
"reg_inicio" => date());
$mk = new MkSolutions(
'87bf6111a9157a61f9bcac116699064f',
"168.121.64.110:60180",
'38861d4be7c3698',
true);
$mk = new MkSolutions();
$mk->db()->setRegistros($registros);
$mk->db()->setIdAudioError('');

6
Clientes/StarNet/EnviaBoletoEmail.php

@ -20,11 +20,7 @@ $registros = array(
"reg_status_exec" => '1',
"reg_inicio" => date());
$mk = new MkSolutions(
'87bf6111a9157a61f9bcac116699064f',
"168.121.64.110:60180",
'38861d4be7c3698',
true);
$mk = new MkSolutions();
$mk->db()->setRegistros($registros);
$mk->db()->setIdAudioError('110');

6
Clientes/StarNet/EnviaBoletoEmail_teste.php

@ -10,11 +10,7 @@ ini_set('display_errors', 1);
*/
include 'MKSolutions.php';
$mk = new MkSolutions(
'87bf6111a9157a61f9bcac116699064f',
"168.121.64.110:60180",
'38861d4be7c3698',
true);
$mk = new MkSolutions();
$invoice = $mk->buscaFatura(36255);

3
Clientes/StarNet/MKSolutions.php

@ -6,6 +6,7 @@
* CLASSE PARA INTEGRACAO DAS API'S MK SOLUTIONS.
*
* @documentation: https://documentacao.mksolutions.com.br/display/MK30/Gerenciamento+de+Webservices
* @documentation: https://documentacao.mksolutions.com.br/display/MK30/APIs+gerais
* @author Jose Henrique Joanoni
* @function developer
* @company SimplesIP
@ -219,7 +220,7 @@
* @param string $url
* @param boolean $log
*/
public function __construct($token, $url, $password, $log = false) {
public function __construct($token = CONF_TOKEN_API, $url = CONF_URL_API, $password = CONF_PASSWORD_API, $log = CONF_LOGGER_ATIVO) {
$this->auth = $token;
$this->password = $password;
$this->url = "http://{$url}/mk/";

6
Clientes/StarNet/VerificaClienteNovo.php

@ -21,11 +21,7 @@ $registros = array(
"reg_inicio" => date());
$mk = new MkSolutions(
'f2e87897171de861c0910342dc166ffe',
"168.121.64.110:60180",
'38861d4be7c3698',
true);
$mk = new MkSolutions();
$mk->db()->setRegistros($registros);
$mk->db()->setIdAudioError('');

6
Clientes/StarNet/VerificaPendencia.php

@ -21,11 +21,7 @@ $registros = array(
"reg_inicio" => date());
$mk = new MkSolutions(
'87bf6111a9157a61f9bcac116699064f',
"168.121.64.110:60180",
'38861d4be7c3698',
true);
$mk = new MkSolutions();
$mk->db()->setRegistros($registros);
$mk->db()->setIdAudioError('');

6
Clientes/StarNet/VerificaPendencia_noturno.php

@ -21,11 +21,7 @@ $registros = array(
"reg_inicio" => date());
$mk = new MkSolutions(
'87bf6111a9157a61f9bcac116699064f',
"168.121.64.110:60180",
'38861d4be7c3698',
true);
$mk = new MkSolutions();
$mk->db()->setRegistros($registros);
$mk->db()->setIdAudioError('');

4
Clientes/StarNet/config.php

@ -9,8 +9,8 @@
define('CONF_ID_CREDENCIAIS', '');
define('CONF_TOKEN_API', '70cf5d37f9e0ee65252ca63d4b49ff37');
define('CONF_URL_API', 'https://api.tracksale.co/v2/');
define('CONF_TOKEN_API', '89af510c326dbcc5ad53ab71bf8f11b7');
define('CONF_URL_API', '168.121.64.110:60180');
define('CONF_USER_API', 'SIMPLESIP');
define('CONF_PASSWORD_API', '38861d4be7c3698');
define('CONF_USERID_API', '8');

6
Clientes/StarNet/consultaCliente.php

@ -21,11 +21,7 @@ $registros = array(
"reg_inicio" => date());
$mk = new MkSolutions(
'87bf6111a9157a61f9bcac116699064f',
"168.121.64.110:60180",
'38861d4be7c3698',
true);
$mk = new MkSolutions();
$mk->db()->setRegistros($registros);
$mk->db()->setIdAudioError('81');

6
Clientes/StarNet/teste_requisicao.php

@ -2,11 +2,7 @@
<?php
require 'MKSolutions.php';
$mk = new MkSolutions(
'87bf6111a9157a61f9bcac116699064f',
"168.121.64.110:60180",
'38861d4be7c3698',
true);
$mk = new MkSolutions();
$documento = $mk->identificarDocumento("44476218865");
print_r($documento);

6
Clientes/StarNet/verificaParadaTecnica.php

@ -21,11 +21,7 @@
"reg_inicio" => date());
$mk = new MkSolutions(
'87bf6111a9157a61f9bcac116699064f',
"168.121.64.110:60180",
'38861d4be7c3698',
true);
$mk = new MkSolutions();
$mk->db()->setRegistros($registros);
$mk->db()->setIdAudioError('');

Loading…
Cancel
Save