1
0
mirror of synced 2024-11-22 04:56:05 +03:00

Merge pull request #4 from sergeygw1990/master

fix run.php and ApiHelper.php
This commit is contained in:
Alex Lushpai 2017-03-13 12:25:43 +03:00 committed by GitHub
commit 4719950457
2 changed files with 5 additions and 3 deletions

View File

@ -97,10 +97,12 @@ class ApiHelper {
if ($customerId === false) { if ($customerId === false) {
try { try {
$request = $this->crmClient->customersFixExternalIds( $request = $this->crmClient->customersFixExternalIds(
array(
array( array(
'id' => $customers['customers'][0]['id'], 'id' => $customers['customers'][0]['id'],
'externalId' => $order['externalId'] 'externalId' => $order['externalId']
) )
)
); );
if ($request->isSuccessful()) { if ($request->isSuccessful()) {

View File

@ -25,7 +25,7 @@ if (file_exists(__DIR__ . "/logs/sync.log")) {
$config['date_from'] = file_get_contents(__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()) { if ($apiHelper->processXMLOrders()) {
unlink($lockFile); unlink($lockFile);