From 1dccc60f9e4b1a8e3203710bd36fc9116306014b Mon Sep 17 00:00:00 2001 From: gluschenko Date: Mon, 13 Mar 2017 10:26:10 +0300 Subject: [PATCH] fix run.php and ApiHelper.php --- classes/ApiHelper.php | 6 ++++-- run.php | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/classes/ApiHelper.php b/classes/ApiHelper.php index ad1dcec..d40214e 100644 --- a/classes/ApiHelper.php +++ b/classes/ApiHelper.php @@ -98,8 +98,10 @@ class ApiHelper { try { $request = $this->crmClient->customersFixExternalIds( array( - 'id' => $customers['customers'][0]['id'], - 'externalId' => $order['externalId'] + array( + 'id' => $customers['customers'][0]['id'], + 'externalId' => $order['externalId'] + ) ) ); diff --git a/run.php b/run.php index 2fcd4b5..04d8762 100644 --- a/run.php +++ b/run.php @@ -25,7 +25,7 @@ if (file_exists(__DIR__ . "/logs/sync.log")) { $config['date_from'] = file_get_contents(__DIR__ . "/logs/sync.log"); } -$apiHelper = new ApiHelper($сonfig); +$apiHelper = new ApiHelper($config); if ($apiHelper->processXMLOrders()) { unlink($lockFile);