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

index b1e297bff12d79feed7166d0c379203b99816dc3..eacc75a6b772be528e6eade8b6a41ed84686c8d1 100644 (file)
@@ -10,10 +10,12 @@ class SiteService {
         $result = null;
         try {
             $result = $client->post('http://test.api.bazacvetov24.ru/v1/order-logs', [
-                'phone' => $phone,
-                'bonusCount' => $bonusCount,
-                'purchaseDate' => $purchaseDate,
-                'orderId' => $orderId,
+                'json' => [
+                    'phone' => $phone,
+                    'bonusCount' => $bonusCount,
+                    'purchaseDate' => $purchaseDate,
+                    'orderId' => $orderId,
+                ],
             ]);
             $result = $result->getBody()->getContents();
         } catch (\Exception $e) {