logging, new unique ID and improve start case
This commit is contained in:
@@ -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));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user