2026-03-07 22:29:07 +08:00
|
|
|
<?php
|
|
|
|
|
// +----------------------------------------------------------------------
|
|
|
|
|
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
|
|
|
|
|
// +----------------------------------------------------------------------
|
|
|
|
|
// | Copyright (c) 2006-2018 http://thinkphp.cn All rights reserved.
|
|
|
|
|
// +----------------------------------------------------------------------
|
|
|
|
|
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
|
|
|
|
|
// +----------------------------------------------------------------------
|
|
|
|
|
// | Author: liu21st <liu21st@gmail.com>
|
|
|
|
|
// +----------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
|
// [ 应用入口文件 ]
|
|
|
|
|
namespace think;
|
|
|
|
|
|
|
|
|
|
define('DS', DIRECTORY_SEPARATOR);
|
|
|
|
|
|
|
|
|
|
require __DIR__ . '/../vendor/autoload.php';
|
|
|
|
|
|
2026-03-21 02:33:14 +08:00
|
|
|
// 显式指定应用根目录,确保 .env 正确加载(避免 getDefaultRootPath 返回上级目录)
|
|
|
|
|
$rootPath = dirname(__DIR__) . DIRECTORY_SEPARATOR;
|
|
|
|
|
$http = (new App($rootPath))->http;
|
2026-03-07 22:29:07 +08:00
|
|
|
|
|
|
|
|
$response = $http->run();
|
|
|
|
|
|
|
|
|
|
$response->send();
|
|
|
|
|
|
|
|
|
|
$http->end($response);
|