安装引导

This commit is contained in:
TL 2022-09-06 10:31:43 +08:00 committed by Edward Yang
parent 88b12065b8
commit a03396ba12
1 changed files with 12 additions and 1 deletions

View File

@ -94,7 +94,18 @@ class EnvironmentManager
{
$results = trans('installer::installer_messages.environment.success');
$app_url = $_SERVER['APP_URL'];
$app_url = 'http';
if (isset($_SERVER["HTTPS"]) && $_SERVER["HTTPS"] == "on")
{
$app_url .= "s";
}
$app_url .= "://";
if ($_SERVER["SERVER_PORT"] != "80")
{
$app_url .= $_SERVER["SERVER_NAME"] . ":" . $_SERVER["SERVER_PORT"] ;
} else {
$app_url .= $_SERVER["SERVER_NAME"];
}
$envFileData =
'APP_NAME=\''.$request->app_name."'\n".