From d0e42a27b73b54c75dd39c3b0bd7052e3b149766 Mon Sep 17 00:00:00 2001 From: Twhmr Date: Sat, 25 Apr 2020 10:46:44 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8DApi=E6=A8=A1=E5=9D=97?= =?UTF-8?q?=E8=AF=AD=E8=A8=80=E5=8C=85=E5=8A=A0=E8=BD=BD=E4=B8=8D=E5=88=B0?= =?UTF-8?q?=E6=96=87=E4=BB=B6=E5=90=8D=E4=BB=A5=5F=E5=88=86=E5=89=B2?= =?UTF-8?q?=E7=9A=84=E6=96=87=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/common/controller/Api.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/application/common/controller/Api.php b/application/common/controller/Api.php index fd2ddd32..042feb73 100644 --- a/application/common/controller/Api.php +++ b/application/common/controller/Api.php @@ -116,7 +116,7 @@ class Api $this->auth = Auth::instance(); $modulename = $this->request->module(); - $controllername = strtolower($this->request->controller()); + $controllername = Loader::parseName($this->request->controller()); $actionname = strtolower($this->request->action()); // token