作者 李宇航

合并分支 'master-lyh-edit' 到 'master'

gx



查看合并请求 !579
@@ -65,7 +65,12 @@ class FileManageController extends BaseController @@ -65,7 +65,12 @@ class FileManageController extends BaseController
65 */ 65 */
66 public function downLoad(){ 66 public function downLoad(){
67 $username = basename($this->param['path']); 67 $username = basename($this->param['path']);
68 - $fileUrl = 'https://file.globalso.com'.$this->param['path']; 68 + $parsed_url = parse_url($this->param['path']);
  69 + if(isset($parsed_url['scheme'])){
  70 + $fileUrl = $this->param['path'];
  71 + } else {
  72 + $fileUrl = 'https://file.globalso.com'.$this->param['path'];
  73 + }
69 // 设置响应头 74 // 设置响应头
70 header('Content-Description: File Transfer'); 75 header('Content-Description: File Transfer');
71 header('Content-Type: application/octet-stream'); 76 header('Content-Type: application/octet-stream');