issues #75 запись в лог перед отправкой в црм
This commit is contained in:
parent
a0db53017c
commit
46c50034f3
@ -137,9 +137,6 @@ class RetailCrmUser
|
|||||||
$normalizer = new RestNormalizer();
|
$normalizer = new RestNormalizer();
|
||||||
$customer = $normalizer->normalize($customer, 'customers');
|
$customer = $normalizer->normalize($customer, 'customers');
|
||||||
|
|
||||||
$log = new Logger();
|
|
||||||
$log->write($customer, 'customerSend');
|
|
||||||
|
|
||||||
if (function_exists('retailCrmBeforeCustomerSend')) {
|
if (function_exists('retailCrmBeforeCustomerSend')) {
|
||||||
$newResCustomer = retailCrmBeforeCustomerSend($customer);
|
$newResCustomer = retailCrmBeforeCustomerSend($customer);
|
||||||
if (is_array($newResCustomer) && !empty($newResCustomer)) {
|
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);
|
RCrmActions::apiMethod($api, 'customersEdit', __METHOD__, $customer, $site);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user