log_message('critical', "WrenchTransactions-Gate 005");
This commit is contained in:
@@ -55,14 +55,14 @@ class WrenchTransactions extends BaseController
|
||||
// echo "EXYTACT INPUT DATA HERE";
|
||||
$raw_json = file_get_contents('php://input');
|
||||
$raw_array = json_decode($raw_json, true);
|
||||
|
||||
log_message('critical', "WrenchTransactions-Gate 003");
|
||||
$local_out =[];
|
||||
if ($_SERVER["REQUEST_METHOD"] == "POST") { // if upload lets modify all the data
|
||||
if (isset($_FILES) && is_array($_FILES) && count($_FILES)>0) {
|
||||
$raw_array = array_merge($_POST,$_FILES);
|
||||
}
|
||||
}
|
||||
|
||||
log_message('critical', "WrenchTransactions-Gate 004");
|
||||
if ($_SERVER['REQUEST_METHOD'] == 'GET') {
|
||||
log_message('critical', "Enpoint LOC2 HERE -> ".$endpoint );
|
||||
$get_param = $_GET['reqData'] ?? null;
|
||||
@@ -72,12 +72,13 @@ class WrenchTransactions extends BaseController
|
||||
log_message('critical', "wrenchboard_api-CALL RAW DATA".serialize($raw_array) );
|
||||
//-- move to another module start
|
||||
|
||||
|
||||
log_message('critical', "WrenchTransactions-Gate 005");
|
||||
$in["loc"] = $_SERVER["REMOTE_ADDR"];
|
||||
|
||||
switch ($endpoints){
|
||||
|
||||
case 'startcredit':
|
||||
log_message('critical', "WrenchTransactions-Gate 006");
|
||||
$call_backend = true;
|
||||
$in["action"] = WRENCHBOARD_USER_STARTCREDIT;
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user