<?php

// +----------------------------------------------------------------------
// | ThinkAdmin
// +----------------------------------------------------------------------
// | 版权所有 2014~2022 广州楚才信息科技有限公司 [ http://www.cuci.cc ]
// +----------------------------------------------------------------------
// | 官方网站: https://thinkadmin.top
// +----------------------------------------------------------------------
// | 开源协议 ( https://mit-license.org )
// | 免费声明 ( https://thinkadmin.top/disclaimer )
// +----------------------------------------------------------------------
// | gitee 代码仓库：https://gitee.com/zoujingli/ThinkAdmin
// | github 代码仓库：https://github.com/zoujingli/ThinkAdmin
// +----------------------------------------------------------------------

namespace think;
$origins = ['http://www.sj132.com', 'https://www.sj132.com', 'http://m.sj132.com', 'https://m.sj132.com', 'http://116.63.33.45', 'https://sj132.com', 'http://www.3cyz.com', 'http://m.3cyz.com','https://droid4.wxstc.js.cn','http://droid4.wxstc.js.cn'];
$origin = isset($_SERVER['HTTP_ORIGIN']) ? $_SERVER['HTTP_ORIGIN'] : '';
if (in_array($origin, $origins)) {
#    header("Access-Control-Allow-Origin: " . $origin);
#    header("Access-Control-Allow-Credentials: true");
#    header("Access-Control-Allow-Headers: Origin, Content-Type, Content-Length, Accept-Encoding, X-CSRF-Token, Authorization, accept, origin, Cache-Control, X-Requested-With");
#    header("Access-Control-Allow-Methods: POST, OPTIONS, GET");
}
use think\admin\service\SystemService;

// 加载基础文件
require __DIR__ . '/../vendor/autoload.php';

// WEB应用初始化
SystemService::instance()->doInit();
