From eed5862fcd0c09cd03d3e1e5d82e0f33720ac10b Mon Sep 17 00:00:00 2001 From: colly_wyx <wangyixiong_007@163.com> Date: Tue, 24 Apr 2018 13:36:27 +0800 Subject: [PATCH] 兼容 --- PhalApi/PhalApi/Request.php | 5 ++--- 1 files changed, 2 insertions(+), 3 deletions(-) diff --git a/PhalApi/PhalApi/Request.php b/PhalApi/PhalApi/Request.php index ad9ffca..2134c98 100644 --- a/PhalApi/PhalApi/Request.php +++ b/PhalApi/PhalApi/Request.php @@ -50,7 +50,7 @@ * @var string ��������������������� */ protected $actionName; - + /** * - ��������������������������������������������������������������������������������������������� * @@ -83,10 +83,9 @@ // ��������������� $this->headers = $this->getAllHeaders(); $this->get = $_GET; - $this->post = !empty($_POST)?$_POST:file_get_contents('php://input'); + $this->post = $_POST; $this->request = $_REQUEST; $this->cookie = $_COOKIE; - @list($this->apiName, $this->actionName) = explode('.', $this->getService()); } -- Gitblit v1.8.0