<?php

//error_reporting(0);
error_reporting(E_ERROR);
//ini_set("display_errors", "Off");

header('Access-Control-Allow-Origin: *');//解决跨域问题
header('Access-Control-Allow-Headers: *');
header('Access-Control-Max-Age: 3600');//设置跨域时间

//--检查类型,如果是跨域的,直接返回数据 OPTIONS
if($_SERVER['REQUEST_METHOD'] != 'POST' && $_SERVER['REQUEST_METHOD'] != 'GET' && $_SERVER['REQUEST_METHOD'] != 'HEAD')
{
    echo 'none';exit;
}


define('es_v6_20220917',true);
include_once '../core/system/launch.php';

