diff --git a/CHANGELOG.md b/CHANGELOG.md index a9fb4438..ef2d4716 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,6 @@ +## v3.6.12 +* Добавлена передача дополнительных параметров в GET запросах + ## v3.6.11 * Добавлены подсказки в настройках модуля diff --git a/VERSION b/VERSION index e8b6c77d..8b7b0b52 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -3.6.11 +3.6.12 diff --git a/retailcrm/lib/api/RetailcrmHttpClient.php b/retailcrm/lib/api/RetailcrmHttpClient.php index f6419a4d..d63ebf1f 100644 --- a/retailcrm/lib/api/RetailcrmHttpClient.php +++ b/retailcrm/lib/api/RetailcrmHttpClient.php @@ -106,7 +106,14 @@ public function makeRequest( ); } - $parameters = array_merge($this->defaultParameters, $parameters); + $parameters = self::METHOD_GET === $method + ? array_merge($this->defaultParameters, $parameters, [ + 'cms_source' => 'PrestaShop', + 'cms_version' => _PS_VERSION_, + 'php_version' => function_exists('phpversion') ? phpversion() : '', + 'module_version' => RetailCRM::VERSION, + ]) + : $parameters = array_merge($this->defaultParameters, $parameters); $url = $this->url . $path; diff --git a/retailcrm/retailcrm.php b/retailcrm/retailcrm.php index d9e77dce..c573401f 100755 --- a/retailcrm/retailcrm.php +++ b/retailcrm/retailcrm.php @@ -48,8 +48,7 @@ class RetailCRM extends Module { - const VERSION = '3.6.11'; - + const VERSION = '3.6.12'; const API_URL = 'RETAILCRM_ADDRESS'; const API_KEY = 'RETAILCRM_API_TOKEN'; const DELIVERY = 'RETAILCRM_API_DELIVERY';