This commit is contained in:
dev-chiefworks
2022-04-13 19:38:21 -04:00
parent 4f001741c2
commit ffb1668a1f
+9 -1
View File
@@ -109,7 +109,15 @@ class Savvy extends BaseController
upload_file_call();
exit();
} else {
$in = $this->flatten(json_decode(file_get_contents('php://input'), true));
// $in = $this->flatten(json_decode(file_get_contents('php://input'), true));
$raw_json = file_get_contents("php://input");
$raw_array = json_decode($raw_json, true);
if ($endpoint == "createuser") {
$in = $raw_array;
} else {
$in = $this->flatten($raw_array);
$this->logArray($in);
}
}
}