From e34ee89e0e2ec0bebddbff94903f4378cac60ce0 Mon Sep 17 00:00:00 2001 From: liqi Date: Wed, 18 Dec 2024 09:14:11 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=AF=86=E7=A0=81=E6=B5=8B?= =?UTF-8?q?=E8=AF=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- admin/foundation/Cors.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/admin/foundation/Cors.php b/admin/foundation/Cors.php index e073aa7..78d71e9 100644 --- a/admin/foundation/Cors.php +++ b/admin/foundation/Cors.php @@ -121,7 +121,10 @@ class Cors extends ActionFilter Yii::$app->request->setQueryParams(self::$param); } else { Yii::$app->request->setBodyParams(self::$param); - ds(Yii::$app->request->post()); + ds([ + Yii::$app->request->post(), + Yii::$app->request->getBodyParams(), + ]); } $this->response = $this->response ?: Yii::$app->getResponse();