mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-08 07:32:48 +08:00
@@ -686,7 +686,12 @@ class Request
|
|||||||
public function post($name = '', $default = null, $filter = '')
|
public function post($name = '', $default = null, $filter = '')
|
||||||
{
|
{
|
||||||
if (empty($this->post)) {
|
if (empty($this->post)) {
|
||||||
$this->post = $_POST;
|
$content = $this->input;
|
||||||
|
if (empty($_POST) && strpos($content, '":')) {
|
||||||
|
$this->post = json_decode($content, true);
|
||||||
|
} else {
|
||||||
|
$this->post = $_POST;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if (is_array($name)) {
|
if (is_array($name)) {
|
||||||
$this->param = [];
|
$this->param = [];
|
||||||
|
|||||||
Reference in New Issue
Block a user