mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-07 07:12:47 +08:00
改进url操作方法的自动转换
This commit is contained in:
@@ -555,7 +555,11 @@ class App
|
||||
|
||||
// 获取操作名
|
||||
$actionName = strip_tags($result[2] ?: $config['default_action']);
|
||||
$actionName = $convert ? strtolower($actionName) : $actionName;
|
||||
if (!empty($config['action_convert'])) {
|
||||
$actionName = Loader::parseName($actionName, 1);
|
||||
} else {
|
||||
$actionName = $convert ? strtolower($actionName) : $actionName;
|
||||
}
|
||||
|
||||
// 设置当前请求的控制器、操作
|
||||
$request->controller(Loader::parseName($controller, 1))->action($actionName);
|
||||
|
||||
Reference in New Issue
Block a user