Ver código fonte

Merge branch 'dev'

prodstable
Guillaume 4 anos atrás
pai
commit
81a456dc83
1 arquivos alterados com 10 adições e 1 exclusões
  1. +10
    -1
      backend/controllers/CronController.php

+ 10
- 1
backend/controllers/CronController.php Ver arquivo

@@ -231,7 +231,16 @@ class CronController extends BackendController
}
if($producer->active) {
Yii::error($producer->name.' : Distribution du '.$date.', '.count($arrayOrders).' commande(s) enregistrée(s), '.$countOrders.' commande(s) payée(s), '.($mailOrdersSend ? 'Récapitulatif de commandes envoyé' : 'Aucun email envoyé'), 'cron-process-orders') ;
$messageLog = $producer->name.' : Distribution du '.$date.', '.count($arrayOrders).' commande(s) enregistrée(s), '.$countOrders.' commande(s) payée(s), '.($mailOrdersSend ? 'Récapitulatif de commandes envoyé' : 'Aucun email envoyé') ;

Yii::$app->mailer->compose()
->setFrom('contact@opendistrib.net')
->setTo('contact@opendistrib.net')
->setSubject('[Opendistrib] Log cron')
->setTextBody($messageLog)
->send();

Yii::error($messageLog, 'cron-process-orders') ;
}
}
}

Carregando…
Cancelar
Salvar