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
9d0f726e
Commit
9d0f726e
authored
May 06, 2019
by
Cristian Mauricio Diaz Canales
💬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Segundo tipo wapush-masivo
parent
34afc44f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
7 deletions
+9
-7
src/Command/EnviarWapushUsuariosCommand.php
src/Command/EnviarWapushUsuariosCommand.php
+8
-6
src/WsBundle/Controller/wapPushController.php
src/WsBundle/Controller/wapPushController.php
+1
-1
No files found.
src/Command/EnviarWapushUsuariosCommand.php
View file @
9d0f726e
...
...
@@ -70,10 +70,7 @@ class EnviarWapushUsuariosCommand extends Command {
}
endforeach
;
$nuevaFechaSiguienteEjecucion
=
new
PluEntelWapushProximaFecha
();
$nuevaFechaSiguienteEjecucion
->
setEwfFecha
(
$fechaSiguiente
->
modify
(
'+7 days'
));
$this
->
em
->
persist
(
$nuevaFechaSiguienteEjecucion
);
$this
->
em
->
flush
();
//AVISO DE CONTENIDO GRATUITO MASIVO
...
...
@@ -92,7 +89,7 @@ class EnviarWapushUsuariosCommand extends Command {
if
(
count
(
$arraySuscripciones
)
>=
1
)
{
$retornoWapPush
=
EntelWapush
::
wsGenerarPeticionWapPush
(
null
,
PluTipoWapush
::
TIPO_WP_INFO_CONTENIDO_GRATUITO
,
array
(
$arraySuscripciones
));
$retornoWapPush
=
EntelWapush
::
wsGenerarPeticionWapPush
(
0
,
PluTipoWapush
::
TIPO_WP_INFO_CONTENIDO_GRATUITO
,
array
(
$arraySuscripciones
));
$log
->
debug
(
"retorno wapush masivo lista : "
.
$lista
->
getLisId
()
.
"
$retornoWapPush
"
);
if
(
$retornoWapPush
==
200
)
{
$log
->
debug
(
"wapush masivo enviado a"
.
print_r
(
$arrayMsisdn
));
...
...
@@ -101,7 +98,12 @@ class EnviarWapushUsuariosCommand extends Command {
}
}
endforeach
;
$nuevaFechaSiguienteEjecucion
=
new
PluEntelWapushProximaFecha
();
$nuevaFechaSiguienteEjecucion
->
setEwfFecha
(
$fechaSiguiente
->
modify
(
'+7 days'
));
$this
->
em
->
persist
(
$nuevaFechaSiguienteEjecucion
);
$this
->
em
->
flush
();
$log
->
debug
(
"la proxima fecha de ejecucion es "
.
$nuevaFechaSiguienteEjecucion
->
getEwfFecha
()
->
format
(
"Y-m-d"
));
}
catch
(
\Exception
$e
)
{
$io
->
success
(
print_r
(
$e
));
...
...
src/WsBundle/Controller/wapPushController.php
View file @
9d0f726e
...
...
@@ -51,7 +51,7 @@ class wapPushController extends AbstractController
throw
new
HttpException
(
Response
::
HTTP_BAD_REQUEST
,
"Invalid XML"
);
}
if
(
$suscripcionIn
!=
0
){
if
(
$suscripcionI
dI
n
!=
0
){
$suscripcion
=
$em
->
getRepository
(
PluSuscripcion
::
class
)
->
find
(
$suscripcionIdIN
);
$log
->
debug
(
'validando suscripcion..'
);
if
(
$suscripcion
==
null
){
...
...
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