From 5aec26f10aa5f902906067b8c2bb3717dc15085c Mon Sep 17 00:00:00 2001 From: thinkphp Date: Thu, 16 Jun 2016 00:22:46 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3miss=E8=B7=AF=E7=94=B1?= =?UTF-8?q?=E7=9A=84=E9=97=AD=E5=8C=85=E5=AE=9A=E4=B9=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- library/think/Route.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/library/think/Route.php b/library/think/Route.php index 61f457ef..dc1e22b3 100644 --- a/library/think/Route.php +++ b/library/think/Route.php @@ -744,9 +744,9 @@ class Route } if (isset($miss)) { // 未匹配所有路由的路由规则处理 - if ($miss instanceof \Closure) { + if ($miss['route'] instanceof \Closure) { // 执行闭包 - return ['type' => 'function', 'function' => $miss, 'params' => []]; + return ['type' => 'function', 'function' => $miss['route'], 'params' => []]; } if (self::checkOption($miss['option'], $url, $request)) { return self::parseRule('', $miss['route'], $url, []);