!28 将文件检查函数改为 is_file

Merge pull request !28 from F4NNIU/chk_install_lock
pull/567131/MERGE
F4NNIU 2017-12-19 23:11:09 +08:00 committed by Karson
commit 9df6949c55
2 changed files with 3 additions and 3 deletions

View File

@ -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();
\think\App::run()->send();

View File

@ -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;