index.php 308 B

123456789101112
  1. <?php
  2. namespace think;
  3. use think\admin\service\SystemService;
  4. header("Access-Control-Allow-Origin: www.weibo.com");
  5. header("Access-Control-Allow-Methods: GET,POST,HEAD,OPTIONS");
  6. // 加载基础文件
  7. require __DIR__ . '/../vendor/autoload.php';
  8. // WEB应用初始化
  9. SystemService::instance()->doInit();