醉菜鸟 2022-05-03 08:00:01
/** * 当前请求的host * @return string */ function host(){ return $_SERVER['HTTP_X_REAL_HOST'] ?: $_SERVER['HTTP_HOST']; }