http://www.loveteemo.com/article-169.html
public function getFileInfo()
{
// 获取http或者https
$host_prefix = ((isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == 'on') || (isset($_SERVER['HTTP_X_FORWARDED_PROTO']) && $_SERVER['HTTP_X_FORWARDED_PROTO'] == 'https')) ? 'https://' : 'http://';
return array(
"state" => $this->stateInfo,
"url" => $host_prefix . $_SERVER['HTTP_HOST'] .$this->fullName, //修改返回地址
"title" => $this->fileName,
"original" => $this->oriName,
"type" => $this->fileType,
"size" => $this->fileSize
);
}