mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-06 23:02:48 +08:00
域名绑定支持控制器
This commit is contained in:
@@ -228,9 +228,12 @@ class App
|
||||
|
||||
// 检测域名部署
|
||||
if (!IS_CLI && !empty($config['domain_deploy'])) {
|
||||
$module = Route::checkDomain($config['domain_rules']);
|
||||
if (null != $module) {
|
||||
define('BIND_MODULE', $module);
|
||||
$result = Route::checkDomain($config['domain_rules']);
|
||||
if (null != $result) {
|
||||
define('BIND_MODULE', $result[0]);
|
||||
if (isset($result[1])) {
|
||||
define('BIND_CONTROLLER', $result[1]);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user