move API host to constaint defined in dbconn.php

This commit is contained in:
merelendor 2025-12-12 18:03:23 +03:00
parent 9535ba026c
commit 5844d1685d

View File

@ -226,7 +226,7 @@ print_r($bitrix_modifications);
$c = 0; $c = 0;
foreach($json AS $car) foreach($json AS $car)
{ {
$modification_content = file_get_contents("https://web-api.evoleasing.ru:8443/site/Vehicle/GetCatalog?id=". $car['uid'] ."", false, stream_context_create($arrContextOptions)); $modification_content = file_get_contents(API_HOST."/site/Vehicle/GetCatalog?id=". $car['uid'] ."", false, stream_context_create($arrContextOptions));
$modification_json = json_decode($modification_content, true); $modification_json = json_decode($modification_content, true);
$name = "".$car['brand']['name']." ".$car['model']['name']." ".$car['modification'].""; $name = "".$car['brand']['name']." ".$car['model']['name']." ".$car['modification']."";