fix
This commit is contained in:
@@ -109,7 +109,15 @@ class Savvy extends BaseController
|
|||||||
upload_file_call();
|
upload_file_call();
|
||||||
exit();
|
exit();
|
||||||
} else {
|
} 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);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user