<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006-2019 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------

// [ 应用入口文件 ]
namespace think;
//exit( '122122');
// $arr = [
//     'code'=>0,
//     'msg'=>'服务器系统临时维护，预计1个小时候恢复'  
// ]; 
// exit(json_encode($arr));
  
session_start();

//解决跨域问题
header('Access-Control-Allow-Origin: *');
header('Access-Control-Allow-Headers: Authorization,Access-Token, Content-Type, If-Match, If-Modified-Since, If-None-Match, If-Unmodified-Since, X-Requested-With,Token');
header('Access-Control-Allow-Methods: GET, POST, PATCH, PUT, DELETE');
header("HTTP/1.0 200 OK");

require __DIR__ . '/../vendor/autoload.php';

// 执行HTTP应用并响应
$http = (new App())->http;

$response = $http->run();

$response->send();

$http->end($response);
