This commit is contained in:
2023-04-17 17:15:31 +08:00
parent 038bd1de6c
commit 6b641ad82a
+2 -2
View File
@@ -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)) {