From 3323ba81d5dd7de1a97e51c8eebb550d2a2e88ce Mon Sep 17 00:00:00 2001 From: filesite Date: Fri, 14 Oct 2022 18:34:41 +0800 Subject: [PATCH] change api/ls request method to post --- controller/ApiController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/controller/ApiController.php b/controller/ApiController.php index bd35524..7edcb49 100644 --- a/controller/ApiController.php +++ b/controller/ApiController.php @@ -98,7 +98,7 @@ Class ApiController extends Controller { } - $cateId = $this->get('id', $menus[0]['id']); + $cateId = $this->post('id', $menus[0]['id']); if (empty($scanResults[$cateId])) { $err = "目录ID {$cateId} 不存在!"; return $this->renderJson(compact('code', 'msg', 'err', 'data'), $this->httpStatus['notFound']);