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