Добавлена передача ссылки на настройки модуля в админке
This commit is contained in:
parent
24ee93d335
commit
e1f429449f
@ -1047,6 +1047,8 @@ class intaro_retailcrm extends CModule
|
|||||||
$api_version = COption::GetOptionString($this->MODULE_ID, $this->CRM_API_VERSION, 0);
|
$api_version = COption::GetOptionString($this->MODULE_ID, $this->CRM_API_VERSION, 0);
|
||||||
$this->RETAIL_CRM_API = new \RetailCrm\ApiClient($api_host, $api_key);
|
$this->RETAIL_CRM_API = new \RetailCrm\ApiClient($api_host, $api_key);
|
||||||
$clientId = hash('md5', date('Y-m-d H:i:s'));
|
$clientId = hash('md5', date('Y-m-d H:i:s'));
|
||||||
|
$scheme = isset($_SERVER['HTTPS']) ? 'https://' : 'http://';
|
||||||
|
$baseUrl = $scheme . $_SERVER['HTTP_HOST'];
|
||||||
|
|
||||||
try {
|
try {
|
||||||
$configuration = array(
|
$configuration = array(
|
||||||
@ -1055,7 +1057,9 @@ class intaro_retailcrm extends CModule
|
|||||||
'integrationCode' => 'bitrix',
|
'integrationCode' => 'bitrix',
|
||||||
'active' => true,
|
'active' => true,
|
||||||
'name' => GetMessage('API_MODULE_NAME'),
|
'name' => GetMessage('API_MODULE_NAME'),
|
||||||
'logo' => 'https://s3.eu-central-1.amazonaws.com/retailcrm-billing/images/5af47fe682bf2-1c-bitrix-logo.svg'
|
'logo' => 'https://s3.eu-central-1.amazonaws.com/retailcrm-billing/images/5af47fe682bf2-1c-bitrix-logo.svg',
|
||||||
|
'baseUrl' => $baseUrl,
|
||||||
|
'accountUrl' => $baseUrl . '/bitrix/admin/settings.php?mid=intaro.retailcrm'
|
||||||
);
|
);
|
||||||
|
|
||||||
if ($api_version == 'v4') {
|
if ($api_version == 'v4') {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user