// +---------------------------------------------------------------------- // [ 应用入口文件 ] namespace think; header('Access-Control-Allow-Origin:*'); header('Access-Control-Allow-Methods:POST,GET,OPTIONS,DELETE'); header('Access-Control-Allow-Headers: Origin, X-Requested-With, Content-Type, Accept, Authorization,sign,appid,noce,timestamp,Web-Auth'); // 执行HTTP应用并响应 if ($_SERVER['REQUEST_METHOD'] == 'OPTIONS') { echo ''; exit(); } require __DIR__ . '/../vendor/autoload.php'; // 执行HTTP应用并响应 $http = (new App())->http; $response = $http->run(); $response->send(); $http->end($response);