空操作方法的参数传入去掉操作方法后缀

This commit is contained in:
thinkphp
2016-11-20 13:12:01 +08:00
parent 397d09925c
commit 0a9694123f

View File

@@ -386,7 +386,7 @@ class App
} elseif (is_callable([$instance, '_empty'])) {
// 空操作
$call = [$instance, '_empty'];
$vars = [$action];
$vars = [$$actionName];
} else {
// 操作不存在
throw new HttpException(404, 'method not exists:' . get_class($instance) . '->' . $action . '()');