<?php

namespace App\Http\Controllers;

use Illuminate\Http\Request;
use Illuminate\Support\Facades\DB;

class SiteController extends Controller
{
    //
    public function index(){
        $uniacid = DB::table("site_multi")->where('bindhost',trim($_SERVER['HTTP_HOST']))->value('uniacid');
        if ($uniacid){
            //已知平台
            return redirect("login/$uniacid");
        }
        abort(403);
        return true;
    }

}
