From 75ae3ce8eefd14f2773d2266c0bc24dcc61de98f Mon Sep 17 00:00:00 2001 From: wispx <1591788658@qq.com> Date: Mon, 3 Dec 2018 15:51:09 +0800 Subject: [PATCH] up --- application/index/controller/Install.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/application/index/controller/Install.php b/application/index/controller/Install.php index 3d93edb7..615fdaf8 100644 --- a/application/index/controller/Install.php +++ b/application/index/controller/Install.php @@ -213,6 +213,9 @@ EOT; $msg = '更新成功,返回首页'; // 删除sql文件 @unlink($path); + if (file_exists(Env::get('root_path') . 'install.sql')) { + @unlink(Env::get('root_path') . 'install.sql'); + } } } catch (Exception $e) { $code = 0;