mirror of
https://gitee.com/zoujingli/ThinkAdmin.git
synced 2025-04-06 03:58:04 +08:00
[更新]Tp目录兼容性增强
This commit is contained in:
parent
b0b5832855
commit
c4636fd9c2
@ -17,5 +17,8 @@ namespace think;
|
|||||||
// 加载基础文件
|
// 加载基础文件
|
||||||
require __DIR__ . '/thinkphp/base.php';
|
require __DIR__ . '/thinkphp/base.php';
|
||||||
|
|
||||||
|
// 生成think文件检查,防止TP目录计算异常
|
||||||
|
file_exists('think') || touch('think');
|
||||||
|
|
||||||
// 执行应用并响应
|
// 执行应用并响应
|
||||||
Container::get('app', [__DIR__ . '/application/'])->run()->send();
|
Container::get('app', [__DIR__ . '/application/'])->run()->send();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user