Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
musica_listas_backend
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Cristian Mauricio Diaz Canales
musica_listas_backend
Commits
57fa2511
Commit
57fa2511
authored
May 06, 2019
by
Cristian Mauricio Diaz Canales
💬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Segundo tipo wapush-masivo
parent
ae8e4e2c
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
2 deletions
+7
-2
src/Command/EnviarWapushUsuariosCommand.php
src/Command/EnviarWapushUsuariosCommand.php
+1
-1
src/Utilities/EntelWapush.php
src/Utilities/EntelWapush.php
+3
-0
src/WsBundle/Controller/wapPushController.php
src/WsBundle/Controller/wapPushController.php
+3
-1
No files found.
src/Command/EnviarWapushUsuariosCommand.php
View file @
57fa2511
...
...
@@ -90,7 +90,7 @@ class EnviarWapushUsuariosCommand extends Command {
if
(
count
(
$arraySuscripciones
)
>=
1
)
{
$retornoWapPush
=
EntelWapush
::
wsGenerarPeticionWapPush
(
0
,
PluTipoWapush
::
TIPO_WP_INFO_CONTENIDO_GRATUITO
,
$arraySuscripciones
);
$log
->
debug
(
"retorno wapush masivo lista
: "
.
$lista
->
getLisId
()
.
"
$retornoWapPush
"
);
$log
->
debug
(
"retorno wapush masivo lista
"
.
$lista
->
getLisId
()
.
" :
$retornoWapPush
"
);
if
(
$retornoWapPush
==
200
)
{
$log
->
debug
(
"wapush masivo enviado a"
.
print_r
(
$arrayMsisdn
,
true
));
}
else
{
...
...
src/Utilities/EntelWapush.php
View file @
57fa2511
...
...
@@ -172,11 +172,13 @@ class EntelWapush {
$array_msisdn
=
array
();
$suscripcionBase
=
$em
->
getRepository
(
PluSuscripcion
::
class
)
->
find
(
$arraySuscripciones
[
0
]);
$listasAsociadas
=
$em
->
getRepository
(
PluRelacionesListas
::
class
)
->
findBy
(
array
(
"rliPadre"
=>
$suscripcionBase
->
getLisId
()));
$log
->
debug
(
"buscando listas asociadas..."
);
foreach
(
$listasAsociadas
as
$index
=>
$listasHijas
)
:
$nombreListasAsociadas
=
$listasHijas
->
getLisNombre
()
.
" ,"
;
endforeach
;
if
(
$arraySuscripciones
&&
is_array
(
$arraySuscripciones
)
&&
$nombreListasAsociadas
!=
""
)
{
$log
->
debug
(
"recorriendo suscripciones..."
);
foreach
(
$arraySuscripciones
as
$sus_id
)
:
$suscripcion
=
$em
->
getRepository
(
PluSuscripcion
::
class
)
->
find
(
$sus_id
);
if
(
$suscripcion
)
{
...
...
@@ -209,6 +211,7 @@ class EntelWapush {
$transid
=
$entelWappushMasive
->
getEwaId
();
$message
=
$tipoWappush
->
getTwaMensaje
();
$log
->
debug
(
"decidiendo que wapush masivo enviar..."
);
switch
(
$tipoWappush
->
getTwaId
())
:
case
PluTipoWapush
::
TIPO_WP_INFO_CONTENIDO_GRATUITO
:
$log
->
debug
(
'Enviar recordatorio contenido asociado a listas del usuario...'
);
...
...
src/WsBundle/Controller/wapPushController.php
View file @
57fa2511
...
...
@@ -73,10 +73,12 @@ class wapPushController extends AbstractController
throw
new
HttpException
(
Response
::
HTTP_BAD_REQUEST
,
"Parametros invalidos"
);
}
$log
->
debug
(
'llamando controlador procesoPeticionEnviarWapPush...'
);
if
(
$suscripcionIdIN
!=
0
){
$log
->
debug
(
'llamando controlador procesoPeticionEnviarWapPush...'
);
EntelWapush
::
procesoPeticionEnviarWapPush
(
$xmlIN
,
$suscripcion
,
$tipoWappush
,
$em
);
}
else
{
$log
->
debug
(
'llamando controlador procesoPeticionEnviarWapPushMasivo...'
);
EntelWapush
::
procesoPeticionEnviarWapPushMasivo
(
$xmlIN
,
$tipoWappush
,
$em
);
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment