From e7f8db994ac6b3bffa4de51bb434f0f02ad46a00 Mon Sep 17 00:00:00 2001 From: thinkphp Date: Fri, 9 Sep 2016 23:07:25 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B7=AF=E7=94=B1=E8=A7=84=E5=88=99=E7=9A=84?= =?UTF-8?q?=E6=A8=A1=E5=9E=8B=E7=BB=91=E5=AE=9A=E6=94=AF=E6=8C=81=E7=AE=80?= =?UTF-8?q?=E5=8C=96=E5=90=8D=E7=A7=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- library/think/Route.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/library/think/Route.php b/library/think/Route.php index fb68d3cc..0acd4ed6 100644 --- a/library/think/Route.php +++ b/library/think/Route.php @@ -15,6 +15,7 @@ use think\App; use think\Config; use think\exception\HttpException; use think\Hook; +use think\Loader; use think\Log; use think\Request; use think\Response; @@ -1347,6 +1348,7 @@ class Route $model = $val; $exception = true; } + $model = strpos($model, '\\') ? $model : Loader::model($model); $where = []; $match = true; foreach ($fields as $field) {