Commit 648ed908 by yeran

commit

1 parent 4dd2277b
Showing with 1 additions and 1 deletions
...@@ -59,7 +59,7 @@ abstract class Controller extends PhalconController ...@@ -59,7 +59,7 @@ abstract class Controller extends PhalconController
if (empty($input)) { if (empty($input)) {
// $input_string = file_get_contents('php://input'); // $input_string = file_get_contents('php://input');
// $input_data = json_decode($input_string, true); // $input_data = json_decode($input_string, true);
$input_data = $this->request->getPost(); $input_data = $this->request->getJsonRawBody(true);
if (is_array($input_data)) { if (is_array($input_data)) {
$input = $input_data; $input = $input_data;
} else { } else {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!