From f9469f2cfca6d3a4ae7d9fc7cb94d1453929543b Mon Sep 17 00:00:00 2001 From: thinkphp Date: Tue, 17 May 2016 21:36:46 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3Route=E7=B1=BB=E4=B8=80?= =?UTF-8?q?=E5=A4=84=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- library/think/Route.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/think/Route.php b/library/think/Route.php index f87cf841..53ff4580 100644 --- a/library/think/Route.php +++ b/library/think/Route.php @@ -608,7 +608,7 @@ class Route // 检测是否定义路由 if (!empty($option['after_behavior'])) { if ($option['after_behavior'] instanceof \Closure) { - $result = call_user_method_array($option['after_behavior'], [$route]); + $result = call_user_func_array($option['after_behavior'], [$route]); } else { $result = Hook::exec($option['after_behavior'], $route); }