From 6b641ad82addd6eecf4eadc641471ffa2c26b137 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=91=E6=9E=97?= Date: Mon, 17 Apr 2023 17:15:31 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8F=98=E6=9B=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- GiiController.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/GiiController.php b/GiiController.php index b4bbc0b..0174d52 100644 --- a/GiiController.php +++ b/GiiController.php @@ -333,7 +333,7 @@ use Kiri\Router\Annotate\AutoController; */ public function actionBatchDelete(): ResponseInterface { - $_key = $this->request->array(\'ids\'); + $_key = $this->request->post(\'ids\', []); if (empty($_key)) { return $this->response->json([\'code\' => 500, \'message\' => PARAMS_IS_NULL]); } @@ -400,7 +400,7 @@ use Kiri\Router\Annotate\AutoController; */ public function actionDelete(): ResponseInterface { - $_key = $this->request->int(\'id\', true); + $_key = $this->request->post(\'id\', 0); $model = ' . $managerName . '::findOne($_key); if (empty($model)) {