安装程序开发完成
This commit is contained in:
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user