修正缓存

This commit is contained in:
thinkphp
2016-01-10 16:40:47 +08:00
parent 0c05a264f4
commit 13b830057d

View File

@@ -51,7 +51,7 @@ class Url
$match = self::checkRoute($url, $vars); $match = self::checkRoute($url, $vars);
Cache::set(md5($url), $match); Cache::set(md5($url), $match);
} }
if (false === $match) { if (is_null($match)) {
// 路由不存在 直接解析 // 路由不存在 直接解析
if (false !== strpos($url, '\\')) { if (false !== strpos($url, '\\')) {
// 解析到类 // 解析到类
@@ -177,7 +177,7 @@ class Url
} }
} }
} }
return false; return null;
} }
// 检测变量规则 // 检测变量规则