diff --git a/src/think/route/dispatch/Callback.php b/src/think/route/dispatch/Callback.php index 26614ccbff..987d0bdab0 100644 --- a/src/think/route/dispatch/Callback.php +++ b/src/think/route/dispatch/Callback.php @@ -22,7 +22,7 @@ class Callback extends Dispatch public function exec() { // 执行回调方法 - $vars = array_merge($this->request->param(), $this->param); + $vars = array_merge($this->request->get(), $this->param); return $this->app->invoke($this->dispatch, $vars); } diff --git a/src/think/route/dispatch/Controller.php b/src/think/route/dispatch/Controller.php index c36e521a87..9417a60916 100644 --- a/src/think/route/dispatch/Controller.php +++ b/src/think/route/dispatch/Controller.php @@ -87,7 +87,7 @@ public function exec() $action = $this->actionName . $suffix; if (is_callable([$instance, $action])) { - $vars = $this->request->param(); + $vars = array_merge($this->request->get(), $this->param); try { $reflect = new ReflectionMethod($instance, $action); // 严格获取当前操作方法名