From 0f04cdf8b123546ec9815e8f02a623e64c5aae9d Mon Sep 17 00:00:00 2001 From: thinkphp Date: Wed, 27 Jan 2016 22:13:27 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E8=B7=AF=E7=94=B1=E5=92=8C?= =?UTF-8?q?=E7=BB=91=E5=AE=9A=E4=BF=A1=E6=81=AF=E8=AE=B0=E5=BD=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- library/think/App.php | 4 ++-- library/think/Route.php | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/library/think/App.php b/library/think/App.php index 4995dafc..b61804e6 100644 --- a/library/think/App.php +++ b/library/think/App.php @@ -78,8 +78,8 @@ class App // 未指定调度类型 则进行URL路由检测 self::route($config); } - // 记录调度信息 - Log::record('[ DISPATCH ] ' . var_export(self::$dispatch, true), 'info'); + // 记录路由信息 + Log::record('[ ROUTE ] ' . var_export(self::$dispatch, true), 'info'); // 监听app_begin APP_HOOK && Hook::listen('app_begin'); diff --git a/library/think/Route.php b/library/think/Route.php index f3ca05d6..5e041c69 100644 --- a/library/think/Route.php +++ b/library/think/Route.php @@ -419,6 +419,8 @@ class Route private static function checkUrlBind(&$url, &$rules) { if (!empty(self::$bind['type'])) { + // 记录绑定信息 + Log::record('[ BIND ] ' . var_export(self::$bind, true), 'info'); // 如果有URL绑定 则进行绑定检测 switch (self::$bind['type']) { case 'class':