1
0
Fork 0
mirror of synced 2025-04-03 13:53:32 +03:00

Исправлено сравнение true

This commit is contained in:
anton 2024-09-24 13:16:54 +03:00
parent 3cc89dcc62
commit dc9af7bb30

View file

@ -472,7 +472,7 @@ class RetailCrmOrder
$crmBasket = RCrmActions::apiMethod($api, 'cartGet', __METHOD__, $externalId, $site);
$orderResponse = $client->createOrder($order, $site);
if ($orderResponse instanceof OrdersCreateResponse && $orderResponse->success !== true) {
if ($orderResponse instanceof OrdersCreateResponse && !$orderResponse->success) {
Logger::getInstance()->write([
'methodApi' => 'orderCreate',