From: Alexander Smirnov Date: Fri, 7 Mar 2025 15:14:06 +0000 (+0300) Subject: [ERP-356] debug 4 X-Git-Url: https://gitweb.erp-flowers.ru/?a=commitdiff_plain;h=d6de91b9dddc9d241d786f14364260fca60ceb42;p=erp24_rep%2Fyii-erp24%2F.git [ERP-356] debug 4 --- diff --git a/erp24/services/SiteService.php b/erp24/services/SiteService.php index b1e297bf..eacc75a6 100644 --- a/erp24/services/SiteService.php +++ b/erp24/services/SiteService.php @@ -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) {