From 024f75c84675393f4482dfe330aef7221341cabc Mon Sep 17 00:00:00 2001 From: thinkphp Date: Wed, 7 Dec 2016 08:13:15 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AE=B0=E5=BD=95=E5=BD=93=E5=89=8D=E7=9A=84?= =?UTF-8?q?=E6=B3=9B=E5=9F=9F=E5=90=8D=E5=88=B0=E8=B7=AF=E7=94=B1=E5=8F=98?= =?UTF-8?q?=E9=87=8F=E4=B8=AD=20=E5=8F=98=E9=87=8F=E5=90=8D=E4=B8=BA=5F=5F?= =?UTF-8?q?domain=5F=5F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- library/think/Route.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/library/think/Route.php b/library/think/Route.php index e2ebd655..d3272071 100644 --- a/library/think/Route.php +++ b/library/think/Route.php @@ -770,6 +770,10 @@ class Route } } if (!empty($item)) { + if (isset($panDomain)) { + // 保存当前泛域名 + $request->route(['__domain__' => $panDomain]); + } if (isset($item['[bind]'])) { // 解析子域名部署规则 list($rule, $option, $pattern) = $item['[bind]'];