From bf19ff0d52432daddd4eb44a5b57e5c69be6ff37 Mon Sep 17 00:00:00 2001 From: thinkphp Date: Thu, 16 Jun 2016 17:32:22 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3Route=E7=B1=BB=E7=9A=84?= =?UTF-8?q?=E5=88=86=E7=BB=84=E5=8F=82=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- library/think/Route.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/think/Route.php b/library/think/Route.php index 081cce87..45cb384c 100644 --- a/library/think/Route.php +++ b/library/think/Route.php @@ -225,7 +225,7 @@ class Route $key = array_shift($val); } if (is_array($val)) { - $result = ['route' => $val[0], 'option' => $val[1], 'pattern' => isset($val[2]) ? $val[2] : []]; + $result = ['route' => $val[0], 'option' => array_merge($option, $val[1]), 'pattern' => isset($val[2]) ? $val[2] : []]; } else { $result = ['route' => $val, 'option' => $option, 'pattern' => $pattern]; }