安装bug

This commit is contained in:
2016-07-31 15:00:17 +08:00
parent fb4c7c1c12
commit d8c6d0b3b8

View File

@@ -5,7 +5,7 @@ class InitHook {
public function run(&$request){
//未安装时不执行
if (substr(request()->pathinfo(), 0, 7) != 'install') {
if (substr(request()->pathinfo(), 0, 7) != 'install' && is_file(APP_PATH . 'database.php') ) {
//初始化某些配置信息
if (cache('db_config_data')) {
\think\Config::set(cache('db_config_data'));