安装程序开发完成

This commit is contained in:
2020-04-14 14:45:44 +08:00
parent cccbd948ce
commit 76ef8887e8
3 changed files with 711 additions and 2 deletions

View File

@@ -14,8 +14,14 @@ namespace think;
require __DIR__ . '/../vendor/autoload.php';
$app = new App();
if (!is_file($app->getRootPath() . '.env') || !is_file($app->getRootPath() . 'install.lock')) {
header('Location: install.php');exit();
}
// 执行HTTP应用并响应
$http = (new App())->http;
$http = $app->http;
$response = $http->run();