// +---------------------------------------------------------------------- // [ 应用入口文件 ] namespace think; require __DIR__ . '/../vendor/autoload.php'; 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"); // 执行HTTP应用并响应 if ($_SERVER['REQUEST_METHOD'] == "OPTIONS") { echo ''; exit(); } $http = (new App())->http; $response = $http->run(); $response->send(); $http->end($response);