!110 修复前台路径中控制器是带下划线,权限验证失败

Merge pull request !110 from CoolAbc/master
pull/110/MERGE
CoolAbc 2019-03-18 13:25:10 +08:00 committed by Karson
commit 4a12b47021
1 changed files with 2 additions and 1 deletions

View File

@ -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;