From 64705e202c5e09b60547d586e4369692fc591fb6 Mon Sep 17 00:00:00 2001 From: zhao Date: Sun, 9 Feb 2020 12:36:53 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E5=85=A5=E5=8F=A3=E6=96=87?= =?UTF-8?q?=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/index.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/public/index.php b/public/index.php index 378ddfb..c01b3d3 100644 --- a/public/index.php +++ b/public/index.php @@ -12,6 +12,8 @@ // [ 应用入口文件 ] namespace think; +use think\facade\Request; + require __DIR__ . '/../vendor/autoload.php'; // 执行HTTP应用并响应 @@ -23,5 +25,5 @@ $response->send(); $http->end($response); if(file_exists('../install.lock') != 'true'){ - header('Location: http://www.tp6.com/install.php'); + header('Location:'.Request::domain().'/install.php'); } \ No newline at end of file