mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-06 15:02:47 +08:00
记录当前的泛域名到路由变量中 变量名为__domain__
This commit is contained in:
@@ -770,6 +770,10 @@ class Route
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (!empty($item)) {
|
if (!empty($item)) {
|
||||||
|
if (isset($panDomain)) {
|
||||||
|
// 保存当前泛域名
|
||||||
|
$request->route(['__domain__' => $panDomain]);
|
||||||
|
}
|
||||||
if (isset($item['[bind]'])) {
|
if (isset($item['[bind]'])) {
|
||||||
// 解析子域名部署规则
|
// 解析子域名部署规则
|
||||||
list($rule, $option, $pattern) = $item['[bind]'];
|
list($rule, $option, $pattern) = $item['[bind]'];
|
||||||
|
|||||||
Reference in New Issue
Block a user