From 704012dfc7c77767a46ff294460943f36b753917 Mon Sep 17 00:00:00 2001 From: Alexander Smirnov Date: Thu, 6 Mar 2025 11:10:23 +0300 Subject: [PATCH] debug --- erp24/jobs/SendBonusInfoToSiteJob.php | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/erp24/jobs/SendBonusInfoToSiteJob.php b/erp24/jobs/SendBonusInfoToSiteJob.php index 18599c9f..628b1c4b 100644 --- a/erp24/jobs/SendBonusInfoToSiteJob.php +++ b/erp24/jobs/SendBonusInfoToSiteJob.php @@ -9,12 +9,14 @@ use yii_app\services\SiteService; class SendBonusInfoToSiteJob extends \yii\base\BaseObject implements JobInterface { - public $messageData; + public $phone; + public $bonus; + public $bonus_created_at; public function execute($queue) { - $phone = ($this->messageData)['phone']; - $bonus = ($this->messageData)['bonus']; - $bonus_created_at = ($this->messageData)['bonus_created_at']; + $phone = $this->phone; + $bonus = $this->bonus; + $bonus_created_at = $this->bonus_created_at; try { $result = SiteService::notifySiteAboutBonuses($phone, $bonus, $bonus_created_at); -- 2.39.5