move hostname to ENV in dbconn.php

This commit is contained in:
merelendor 2025-11-06 06:20:11 +00:00
parent 0a02c49841
commit 6f925d54d3
2 changed files with 2 additions and 2 deletions

View File

@ -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']

View File

@ -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']