提交者
Karson
!28 将文件检查函数改为 is_file
Merge pull request !28 from F4NNIU/chk_install_lock
正在显示
2 个修改的文件
包含
3 行增加
和
3 行删除
@@ -16,7 +16,7 @@ | @@ -16,7 +16,7 @@ | ||
16 | define('APP_PATH', __DIR__ . '/../application/'); | 16 | define('APP_PATH', __DIR__ . '/../application/'); |
17 | 17 | ||
18 | // 判断是否安装FastAdmin | 18 | // 判断是否安装FastAdmin |
19 | -if (!file_exists(APP_PATH . 'admin/command/Install/install.lock')) | 19 | +if (!is_file(APP_PATH . 'admin/command/Install/install.lock')) |
20 | { | 20 | { |
21 | header("location:./install.php"); | 21 | header("location:./install.php"); |
22 | exit; | 22 | exit; |
@@ -32,4 +32,4 @@ require __DIR__ . '/../thinkphp/base.php'; | @@ -32,4 +32,4 @@ require __DIR__ . '/../thinkphp/base.php'; | ||
32 | \think\Url::root(''); | 32 | \think\Url::root(''); |
33 | 33 | ||
34 | // 执行应用 | 34 | // 执行应用 |
35 | -\think\App::run()->send(); | ||
35 | +\think\App::run()->send(); |
@@ -14,7 +14,7 @@ | @@ -14,7 +14,7 @@ | ||
14 | define('APP_PATH', __DIR__ . '/../application/'); | 14 | define('APP_PATH', __DIR__ . '/../application/'); |
15 | 15 | ||
16 | // 判断是否安装FastAdmin | 16 | // 判断是否安装FastAdmin |
17 | -if (!file_exists(APP_PATH . 'admin/command/Install/install.lock')) | 17 | +if (!is_file(APP_PATH . 'admin/command/Install/install.lock')) |
18 | { | 18 | { |
19 | header("location:./install.php"); | 19 | header("location:./install.php"); |
20 | exit; | 20 | exit; |
-
请 注册 或 登录 后发表评论