From c4636fd9c2fcfaae1da8871a3c532c38d5ee3150 Mon Sep 17 00:00:00 2001 From: Anyon Date: Tue, 8 May 2018 17:44:06 +0800 Subject: [PATCH] =?UTF-8?q?[=E6=9B=B4=E6=96=B0]Tp=E7=9B=AE=E5=BD=95?= =?UTF-8?q?=E5=85=BC=E5=AE=B9=E6=80=A7=E5=A2=9E=E5=BC=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- index.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/index.php b/index.php index 07c0a05ed..d0becfbaa 100644 --- a/index.php +++ b/index.php @@ -17,5 +17,8 @@ namespace think; // 加载基础文件 require __DIR__ . '/thinkphp/base.php'; +// 生成think文件检查,防止TP目录计算异常 +file_exists('think') || touch('think'); + // 执行应用并响应 Container::get('app', [__DIR__ . '/application/'])->run()->send();