Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Luciano Barletta
/
message-service
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
1
Wiki
Network
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
Commit 79003f99
authored
2024-04-23 19:03:07 -0300
by
juan
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Cambios para server de alta echo
1 parent
8fb80341
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
2 deletions
Wpp1State.py
services.py
Wpp1State.py
View file @
79003f9
...
@@ -19,7 +19,16 @@ class StatePhoneWs():
...
@@ -19,7 +19,16 @@ class StatePhoneWs():
def
Suspensor
(
self
,
data
):
def
Suspensor
(
self
,
data
):
"""Envia a señal al server de chrome para levantar el navegador"""
"""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
):
def
ChequearTelefono
(
self
,
telefono
,
data
=
False
):
"""Chequea estado es el server remoto si esta conectado se almasena la
"""Chequea estado es el server remoto si esta conectado se almasena la
...
...
services.py
View file @
79003f9
...
@@ -77,7 +77,7 @@ class Wpp1(ServiceBase):
...
@@ -77,7 +77,7 @@ class Wpp1(ServiceBase):
f
.
close
()
f
.
close
()
if
type
(
text
)
==
bytes
:
if
type
(
text
)
==
bytes
:
text
=
text
.
decode
(
"utf-8"
)
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
})
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'
]
succ
[
file
]
=
result
.
json
()[
'success'
]
else
:
else
:
...
...
Write
Preview
Styling with
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment