Notifications
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user