From b2a61cbeef9d39619294256d5f5b2e2d5101159d Mon Sep 17 00:00:00 2001 From: thinkphp Date: Wed, 3 Aug 2016 12:40:46 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3Route=E7=B1=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- library/think/Route.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/library/think/Route.php b/library/think/Route.php index 7d517250..966e569e 100644 --- a/library/think/Route.php +++ b/library/think/Route.php @@ -670,11 +670,11 @@ class Route * 检测子域名部署 * @access public * @param Request $request Request请求对象 - * @param array $rules 当前路由规则 + * @param array $currentRules 当前路由规则 * @param string $method 请求类型 * @return void */ - public static function checkDomain($request, &$rules, $method = 'GET') + public static function checkDomain($request, &$currentRules, $method = 'GET') { // 域名规则 $rules = self::$rules['domain']; @@ -757,7 +757,7 @@ class Route self::$domainBind = true; } else { self::$domainRule = $item; - $rules = isset($item[$method]) ? $item[$method] : $item['*']; + $currentRules = isset($item[$method]) ? $item[$method] : $item['*']; } } }