diff --git a/library/think/App.php b/library/think/App.php index 4eddc7cd..f8c3d29c 100644 --- a/library/think/App.php +++ b/library/think/App.php @@ -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 . '()');