PhalApi/PhalApi/Request.php
@@ -83,7 +83,7 @@ // 备用数据源 $this->headers = $this->getAllHeaders(); $this->get = $_GET; $this->post = $_POST; $this->post = !empty($_POST)?$_POST:file_get_contents('php://input'); $this->request = $_REQUEST; $this->cookie = $_COOKIE; @@ -177,6 +177,8 @@ ? $this->getDataBySource($rule['source']) : $this->data; DI()->logger->error('test', $_POST); $rs = PhalApi_Request_Var::format($rule['name'], $rule, $data); if ($rs === NULL && (isset($rule['require']) && $rule['require'])) {