Joywork/ajax/vue_ajax/chat_cian_avito_axios.php
2026-05-22 21:21:54 +03:00

21 lines
486 B
PHP

<?php
require_once($_SERVER['DOCUMENT_ROOT']."/ajax/vue_php_function.php");
/*error_reporting(E_ALL | E_STRICT);
ini_set('display_errors', 1);*/
$data = json_decode(file_get_contents("php://input"));
$function = $data->request;
session_write_close();
$chat = new ChatsCianAvito();
if(isset($data->agency_id)){
$agency_id = (int)$data->agency_id;
// $chat->set_agency($agency_id);
}
$responce = $chat->$function($data);
echo json_encode($responce, JSON_UNESCAPED_UNICODE);