]> gitweb.erp-flowers.ru Git - erp24_rep/yii-erp24/.git/commitdiff
[ERP-356] final debug
authorAlexander Smirnov <fredeom@mail.ru>
Fri, 7 Mar 2025 15:18:01 +0000 (18:18 +0300)
committerAlexander Smirnov <fredeom@mail.ru>
Fri, 7 Mar 2025 15:18:01 +0000 (18:18 +0300)
erp24/api2/controllers/BonusController.php

index 65c500009153ff5e94fc0505097a1f8ab882225b..1809d88d32ffaf9351a635a1415b72fc100a0dcc 100644 (file)
@@ -963,13 +963,12 @@ class BonusController extends BaseController
 
                 return $this->asJson(["error_id" => 5, "error" => $userBonus2->getErrors()]);
             } else {
-//                Yii::$app->queue->push(new SendBonusInfoToSiteJob([
-//                    'phone' => $phone,
-//                    'bonusCount' => $back,
-//                    'purchaseDate' => date("Y-m-d H:i:s"),
-//                    'orderId' => $check_id,
-//                ]));
-                SiteService::notifySiteAboutBonuses($phone, 10000, date("Y-m-d H:i:s"), "" . time());
+                Yii::$app->queue->push(new SendBonusInfoToSiteJob([
+                    'phone' => $phone,
+                    'bonusCount' => $back,
+                    'purchaseDate' => date("Y-m-d H:i:s"),
+                    'orderId' => $check_id,
+                ]));
             }
 
             file_put_contents(self::OUT_DIR . '/sale_bonuses_' . $fl . '.json', PHP_EOL . '--' . __LINE__, FILE_APPEND);