= 20M;nginx: client_max_body_size 20m; namespace think; // 检测PHP环境 if (version_compare(PHP_VERSION, '7.1.0', '<')) die('require PHP > 7.1.0 !'); // 加载核心文件 require __DIR__ . '/../vendor/autoload.php'; // 执行HTTP应用并响应 $http = (new App())->http; // 手动指定路由 $_SERVER['PATH_INFO'] = '/qytNotify/waybill'; // 绑定 api 应用 $response = $http->name('api')->run(); $response->send(); $http->end($response);