fix run.php and ApiHelper.php
This commit is contained in:
parent
233071dd51
commit
1dccc60f9e
@ -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()) {
|
||||||
|
2
run.php
2
run.php
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user