From 0c8c8b83b514491b766c1453aaf78959528bf6c0 Mon Sep 17 00:00:00 2001 From: Simples IP Desenvolvimento Date: Fri, 12 Aug 2022 15:57:26 -0400 Subject: [PATCH] testes --- Dockerfile | 2 +- index.php | 2 +- public/js/util.js | 8 -------- 3 files changed, 2 insertions(+), 10 deletions(-) diff --git a/Dockerfile b/Dockerfile index 8ed317c..0ca2dac 100644 --- a/Dockerfile +++ b/Dockerfile @@ -14,7 +14,7 @@ RUN php composer-setup.php --filename=composer --install-dir=/bin WORKDIR /var/www/html -RUN git clone http://desenvolvimento:SimpleS_G1t34@192.168.115.233:3000/awade/simples_client.git +RUN git clone -b develop http://desenvolvimento:SimpleS_G1t34@192.168.115.233:3000/awade/simples_client.git WORKDIR /var/www/html/simples_client diff --git a/index.php b/index.php index 70ff8ad..110e49b 100644 --- a/index.php +++ b/index.php @@ -11,7 +11,7 @@ $connected = false; if($geturl['t'] == 'gerar' && ($_SERVER['SERVER_NAME'] == 'localhost' || $geturl['password'] == 'S1MPL3S1P_CH4T')){ $expireToken = strtotime( '+1 days', time()); - $json_info = '{"servidor": "http://sipcloud02.simplesip.com.br:8000", "websocket": "ws://sipcloud02.simplesip.com.br:8000/wss", "matricula": "1000", "fila": "102", "expire": "'.$expireToken.'"}'; + $json_info = '{"servidor": "http://192.168.115.244:8080", "websocket": "ws://192.168.115.244:8080/wss", "matricula": "1000", "fila": "144", "expire": "'.$expireToken.'"}'; echo $json_info; echo "

"; echo "Token: "; diff --git a/public/js/util.js b/public/js/util.js index 103e212..20a95ed 100644 --- a/public/js/util.js +++ b/public/js/util.js @@ -509,14 +509,6 @@ const monitorPausaAgente = () => { const supervisorAgente = () => { /** MONITORA AS CONFIGURACOES */ setInterval(() => { - - /** FECHA A TELA DO AGENTE QUANDO O USUARIO SAI DO SIMPLESIP E DEIXA A TELA DO WHATSAPP ABERTO */ - // atualizaAgente().then((res) => { - // if (res.indexOf('close') >= 0) { - // window.close() - // } - // }) - statusAgente(localStorage.getItem('my_uniqueid')).then((agente) => { if (agente.status == 'error' && agente.message == 'Agente não encontrado') { window.close()