Commit 79003f99 by juan

Cambios para server de alta echo

1 parent 8fb80341
......@@ -19,7 +19,16 @@ class StatePhoneWs():
def Suspensor(self, data):
"""Envia a señal al server de chrome para levantar el navegador"""
pass
url = data['chrome_service']
if url in [False,None,""," "]:
return()
try:
print("#")
r = requests.get(url)
print(r.text)
print("#")
except Exception as E:
print(E)
def ChequearTelefono(self, telefono,data=False):
"""Chequea estado es el server remoto si esta conectado se almasena la
......
......@@ -77,7 +77,7 @@ class Wpp1(ServiceBase):
f.close()
if type(text) == bytes:
text = text.decode("utf-8")
self.controlSalida(stadotel,origen)
self.controlSalida(stadotel,origen,data)
result = requests.get(url = Wpp1.URL + Wpp1.URLmode[types[file]],params = {'token':Wpp1.token,'uid':origen,'to':data[Table.dest],'text':text})
succ[file] = result.json()['success']
else:
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!