diff --git a/local/components/evolution/calculator/component.php b/local/components/evolution/calculator/component.php index 86177fb..e605d45 100644 --- a/local/components/evolution/calculator/component.php +++ b/local/components/evolution/calculator/component.php @@ -18,7 +18,7 @@ use Bitrix\Main\Context, if($this->StartResultCache(60*60*24, md5(var_export($_POST, true)))) { $arResult = []; - $arResult['CALCULATION'] = (array) json_decode(file_get_contents("https://evoleasing.ru/api/calculation/" + $arResult['CALCULATION'] = (array) json_decode(file_get_contents("https://".HOSTNAME."/api/calculation/" ."?car_price=".$arParams['car_price'] ."&initial_payment=".$arParams['initial_payment'] ."&lease_period=".$arParams['lease_period'] diff --git a/local/components/evolution/catalog.position/component.php b/local/components/evolution/catalog.position/component.php index df931e8..477eb59 100644 --- a/local/components/evolution/catalog.position/component.php +++ b/local/components/evolution/catalog.position/component.php @@ -36,7 +36,7 @@ if($this->StartResultCache(60*60*24, md5(var_export($_POST, true)))) $arParams['car_price'] = $ar_res['PROPERTIES']['PRICE']['VALUE']; - $ar_res['CALCULATION'] = (array) json_decode(file_get_contents("https://evoleasing.ru/api/calculation/" + $ar_res['CALCULATION'] = (array) json_decode(file_get_contents("https://".HOSTNAME."/api/calculation/" ."?car_price=".$arParams['car_price'] ."&initial_payment=".$arParams['initial_payment'] ."&lease_period=".$arParams['lease_period']