You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
489 B
23 lines
489 B
<?php
|
|
|
|
// [ 应用入口文件 ]
|
|
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'] = '/notify/huifu';
|
|
|
|
// $http->name()用于设置当前入口文件绑定的应用
|
|
$response = $http->name('api')->run();
|
|
|
|
$response->send();
|
|
|
|
$http->end($response);
|
|
|