From 251774d0bd02160504e356b21daf938f3d05db4a Mon Sep 17 00:00:00 2001 From: CoolAbc <13836962@qq.com> Date: Sat, 16 Mar 2019 10:35:08 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BD=BF=E7=94=A8Thinkphp=E5=86=85=E7=BD=AE?= =?UTF-8?q?=E8=BD=AC=E6=8D=A2=E6=8E=A7=E5=88=B6=E5=99=A8=E5=90=8D=E4=B8=BA?= =?UTF-8?q?c=E9=A3=8E=E6=A0=BC,=E5=8C=B9=E9=85=8D=E5=89=8D=E5=8F=B0?= =?UTF-8?q?=E8=AE=BF=E9=97=AE=E8=B7=AF=E5=BE=84=E6=8E=A7=E5=88=B6=E5=99=A8?= =?UTF-8?q?=E6=98=AFxxxx=5Fxx=E7=9A=84=E5=86=99=E6=B3=95;thinkphp=E9=BB=98?= =?UTF-8?q?=E8=AE=A4=E6=98=AF=E5=B0=86=E6=8E=A7=E5=88=B6=E5=99=A8dict=5Fde?= =?UTF-8?q?f=E8=BD=AC=E6=88=90dictDef,fastadmin=E7=9B=B4=E6=8E=A5=E8=BD=AC?= =?UTF-8?q?=E6=88=90=E5=B0=8F=E5=86=99,=E9=80=A0=E6=88=90=E6=9D=83?= =?UTF-8?q?=E9=99=90=E5=A4=B1=E8=B4=A5.=E4=BD=BF=E7=94=A8thinkphp=E5=86=85?= =?UTF-8?q?=E7=BD=AE=E7=9A=84=E6=96=B9=E6=B3=95=E8=BD=AC=E6=8D=A2=E6=8E=A7?= =?UTF-8?q?=E5=88=B6=E5=99=A8=E5=90=8D,=E4=B8=8E=E5=89=8D=E5=8F=B0?= =?UTF-8?q?=E8=B7=AF=E5=BE=84=E8=AE=BF=E9=97=AE=E4=BF=9D=E6=8C=81=E4=B8=80?= =?UTF-8?q?=E8=87=B4.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/common/controller/Backend.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/application/common/controller/Backend.php b/application/common/controller/Backend.php index ce3c239cb..59b37c06e 100644 --- a/application/common/controller/Backend.php +++ b/application/common/controller/Backend.php @@ -7,6 +7,7 @@ use think\Config; use think\Controller; use think\Hook; use think\Lang; +use think\Loader; use think\Session; use fast\Tree; @@ -114,7 +115,7 @@ class Backend extends Controller public function _initialize() { $modulename = $this->request->module(); - $controllername = strtolower($this->request->controller()); + $controllername = Loader::parseName($this->request->controller()); $actionname = strtolower($this->request->action()); $path = str_replace('.', '/', $controllername) . '/' . $actionname; -- Gitee