diff --git a/public/admin.php b/public/admin.php index bc87c19018d3f62406ccc40f884f2076110bb068..9f19b8465c8ebac53fdd6c034573b07224a54c61 100644 --- a/public/admin.php +++ b/public/admin.php @@ -16,7 +16,7 @@ define('APP_PATH', __DIR__ . '/../application/'); // 判断是否安装FastAdmin -if (!file_exists(APP_PATH . 'admin/command/Install/install.lock')) +if (!is_file(APP_PATH . 'admin/command/Install/install.lock')) { header("location:./install.php"); exit; @@ -32,4 +32,4 @@ require __DIR__ . '/../thinkphp/base.php'; \think\Url::root(''); // 执行应用 -\think\App::run()->send(); \ No newline at end of file +\think\App::run()->send(); diff --git a/public/index.php b/public/index.php index 249ed699a3444dd1c603cca4d29bdb70291364f3..004784df8936068ede9163a5ffa277ce651bf8a7 100755 --- a/public/index.php +++ b/public/index.php @@ -14,7 +14,7 @@ define('APP_PATH', __DIR__ . '/../application/'); // 判断是否安装FastAdmin -if (!file_exists(APP_PATH . 'admin/command/Install/install.lock')) +if (!is_file(APP_PATH . 'admin/command/Install/install.lock')) { header("location:./install.php"); exit;