From dfaa65569cb35e27260e3b96631659409b8c16a1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8C=8E=E8=89=B3?= <863448246@qq.com> Date: Tue, 2 Nov 2021 11:55:59 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8DRequest=E5=AF=B9=E8=B1=A1getR?= =?UTF-8?q?awBody()=E4=B8=BA=E7=A9=BA=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/web/Request.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/web/Request.php b/src/web/Request.php index 6a6c570..312e8d9 100644 --- a/src/web/Request.php +++ b/src/web/Request.php @@ -137,7 +137,7 @@ public function getIsFlash() public function getRawBody() { if ($this->_rawBody === null) { - $this->_rawBody = file_get_contents("php://input"); + $this->_rawBody = $this->swooleRequest->rawContent(); return $this->_rawBody; } @@ -770,4 +770,4 @@ private function validateCsrfTokenInternal($clientSuppliedToken, $trueToken) return $security->unmaskToken($clientSuppliedToken) === $security->unmaskToken($trueToken); } -} \ No newline at end of file +}