logging, new unique ID and improve start case

This commit is contained in:
Fernando Ontiveros
2025-04-24 17:55:41 +00:00
parent 85020fbdbd
commit 66d2c7a6a4
5 changed files with 69 additions and 45 deletions

View File

@@ -35,6 +35,7 @@ if (! function_exists( $_REQUEST['action'] ) || !G::isUserFunction($_REQUEST['ac
die();
}
$functionName = $_REQUEST['action'];
$functionParams = isset( $_REQUEST['params'] ) ? $_REQUEST['params'] : array ();
@@ -209,7 +210,6 @@ function startCase()
try {
// Initializing variables
$sequenceType = (!empty($_REQUEST['actionFrom']) && $_REQUEST['actionFrom'] === 'webEntry') ? AppSequence::APP_TYPE_WEB_ENTRY : AppSequence::APP_TYPE_NORMAL;
// Update CONTENT table
lookinginforContentProcess($_POST['processId']);
@@ -237,11 +237,13 @@ function startCase()
$newCase['status'] = 'success';
// Print JSON response
print (G::json_encode($newCase));
ob_end_clean();
header('Content-Type: application/json');
print (json_encode($newCase));
} catch (Exception $e) {
$newCase['status'] = 'failure';
$newCase['message'] = $e->getMessage();
print_r(G::json_encode($newCase));
print_r(json_encode($newCase));
}
}