1
0
mirror of synced 2024-11-25 14:56:09 +03:00

issues #75 запись в лог перед отправкой в црм

This commit is contained in:
gorokh 2019-11-01 12:00:54 +03:00
parent a0db53017c
commit 46c50034f3

View File

@ -137,9 +137,6 @@ class RetailCrmUser
$normalizer = new RestNormalizer();
$customer = $normalizer->normalize($customer, 'customers');
$log = new Logger();
$log->write($customer, 'customerSend');
if (function_exists('retailCrmBeforeCustomerSend')) {
$newResCustomer = retailCrmBeforeCustomerSend($customer);
if (is_array($newResCustomer) && !empty($newResCustomer)) {
@ -151,6 +148,9 @@ class RetailCrmUser
}
}
$log = new Logger();
$log->write($customer, 'customerSend');
RCrmActions::apiMethod($api, 'customersEdit', __METHOD__, $customer, $site);
}