]> gitweb.erp-flowers.ru Git - erp24_rep/yii-erp24/.git/commitdiff
debug
authorAlexander Smirnov <fredeom@mail.ru>
Thu, 6 Mar 2025 08:10:23 +0000 (11:10 +0300)
committerAlexander Smirnov <fredeom@mail.ru>
Thu, 6 Mar 2025 08:10:23 +0000 (11:10 +0300)
erp24/jobs/SendBonusInfoToSiteJob.php

index 18599c9fd2a8e4fffcb00d739b54be74ec2e2641..628b1c4b4922eeca2b5253f71d3e360aa0970b82 100644 (file)
@@ -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);