去掉控制器方法的后缀名

This commit is contained in:
2021-03-18 07:04:25 +08:00
parent 7223845862
commit bd9c315d7e
129 changed files with 837 additions and 838 deletions
+2 -2
View File
@@ -25,12 +25,12 @@ if (strpos($path, 'calendar/caldav') === 0) {
}
if (strpos($path, 'common') === 0) {
app('Gdoo\Index\Controllers\ApiController')->commonAction();
app('Gdoo\Index\Controllers\ApiController')->common();
}
// 首字母大写
$controller = Str::studly($uris['controller']);
$action = 'Gdoo\\'.ucfirst($uris['module']).'\\Controllers\\'.$controller.'Controller@'.$uris['action'].'Action';
$action = 'Gdoo\\'.ucfirst($uris['module']).'\\Controllers\\'.$controller.'Controller@'.$uris['action'];
$method = Request::method();