mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-07 15:12:48 +08:00
改进Url类
This commit is contained in:
@@ -174,10 +174,10 @@ class Url
|
|||||||
$url = substr($url, 1);
|
$url = substr($url, 1);
|
||||||
} else {
|
} else {
|
||||||
// 解析到 模块/控制器/操作
|
// 解析到 模块/控制器/操作
|
||||||
$module = $request->module();
|
$module = $request->module();
|
||||||
|
$domains = Route::rules('domain');
|
||||||
if (true === $domain && 2 == substr_count($url, '/')) {
|
if (true === $domain && 2 == substr_count($url, '/')) {
|
||||||
$current = $request->host();
|
$current = $request->host();
|
||||||
$domains = Route::rules('domain');
|
|
||||||
$match = [];
|
$match = [];
|
||||||
$pos = [];
|
$pos = [];
|
||||||
foreach ($domains as $key => $item) {
|
foreach ($domains as $key => $item) {
|
||||||
|
|||||||
Reference in New Issue
Block a user