From c6ed13711322f8cfc7b4b75944112ed1e6d6db92 Mon Sep 17 00:00:00 2001 From: "CHIEFSOFT\\ameye" Date: Tue, 18 Jul 2023 11:05:34 -0400 Subject: [PATCH] Notifications --- www-api/app/Controllers/WrenchNotifications.php | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/www-api/app/Controllers/WrenchNotifications.php b/www-api/app/Controllers/WrenchNotifications.php index 31835b3a..cd476515 100644 --- a/www-api/app/Controllers/WrenchNotifications.php +++ b/www-api/app/Controllers/WrenchNotifications.php @@ -69,29 +69,23 @@ class WrenchNotifications extends BaseController $raw_array = ($get_param!=null) ? json_decode($get_param, true):[]; } //$in = $raw_array; - log_message('critical', "wrenchboard_api-CALL RAW DATA".serialize($raw_array) ); + log_message('critical', "WrenchNotifications-CALL RAW DATA".serialize($raw_array) ); //-- move to another module start - + $in = $raw_array; $in["loc"] = $_SERVER["REMOTE_ADDR"]; switch ($endpoints){ - case 'startcredit': + case 'mynotifications': break; - case 'confirmcredit': - // Confrim - break; - case 'mynotifications': - $in["action"] = WRENCHBOARD_ACCOUNT_NOTIFICATIONS; - break; + } $in["loc"] = $_SERVER["REMOTE_ADDR"]; log_message('critical', "wrenchboard_api-CALL PREPARE DATA".serialize($in) ); - if ( $call_backend == true && $in["action"] !='' ){ $wrenchboard = new \App\Models\BackendModel(); $ret = $wrenchboard->wrenchboard_api($in, $out);