作者 lyh

gx

... ... @@ -77,7 +77,7 @@ class FileController
$size = $info['size'];
header("Content-Length: ".$size);
// 设置Content-Type头部
header("Content-Type: video/mp4");
header("Content-Type: ",$info['mime']);
// 发送完整文件
readfile($path);
exit;
... ... @@ -279,7 +279,7 @@ class FileController
}else{
//根据项目上传标识区分上传到cos/本地
$projectModel = new Project();
$project_info = $projectModel->read(['id'=>$this->cache['project_id']],['upload_location']);
$project_info = $projectModel->read(['id'=>$this->cache['project_id']],['project_location']);
$this->upload_location = $project_info['upload_location'];
}
$this->path = $this->uploads['path_b'].'/'.$this->cache['project_id'].'/'.$this->file_type[$this->param['refer']].'/'.date('Y-m');
... ...