Segundo tipo wapush-masivo

parent 34afc44f
......@@ -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));
......
......@@ -51,7 +51,7 @@ class wapPushController extends AbstractController
throw new HttpException(Response::HTTP_BAD_REQUEST, "Invalid XML");
}
if($suscripcionIn != 0){
if($suscripcionIdIn != 0){
$suscripcion = $em->getRepository(PluSuscripcion::class)->find($suscripcionIdIN);
$log->debug('validando suscripcion..');
if($suscripcion == null){
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment