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()); }