判断请求地址是否带 https
$http_str = "http://";
if((isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == 'on') || (isset($_SERVER['HTTP_X_FORWARDED_PROTO']) && $_SERVER['HTTP_X_FORWARDED_PROTO'] == 'https')){
$http_str = "https://";
}
$imgs_url = $http_str.$_SERVER['HTTP_HOST']."logo.png";