域名绑定支持控制器

This commit is contained in:
thinkphp
2015-12-04 09:25:11 +08:00
parent 6251b2ccdb
commit 0319d84331
2 changed files with 43 additions and 40 deletions

View File

@@ -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]);
}
}
}