move hostname to ENV in dbconn.php
This commit is contained in:
parent
0a02c49841
commit
6f925d54d3
@ -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']
|
||||
|
||||
@ -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']
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user