|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
if($producer->active) { |
|
|
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') ; |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |