正在显示
1 个修改的文件
包含
2 行增加
和
2 行删除
| @@ -77,7 +77,7 @@ class FileController | @@ -77,7 +77,7 @@ class FileController | ||
| 77 | $size = $info['size']; | 77 | $size = $info['size']; |
| 78 | header("Content-Length: ".$size); | 78 | header("Content-Length: ".$size); |
| 79 | // 设置Content-Type头部 | 79 | // 设置Content-Type头部 |
| 80 | - header("Content-Type: video/mp4"); | 80 | + header("Content-Type: ",$info['mime']); |
| 81 | // 发送完整文件 | 81 | // 发送完整文件 |
| 82 | readfile($path); | 82 | readfile($path); |
| 83 | exit; | 83 | exit; |
| @@ -279,7 +279,7 @@ class FileController | @@ -279,7 +279,7 @@ class FileController | ||
| 279 | }else{ | 279 | }else{ |
| 280 | //根据项目上传标识区分上传到cos/本地 | 280 | //根据项目上传标识区分上传到cos/本地 |
| 281 | $projectModel = new Project(); | 281 | $projectModel = new Project(); |
| 282 | - $project_info = $projectModel->read(['id'=>$this->cache['project_id']],['upload_location']); | 282 | + $project_info = $projectModel->read(['id'=>$this->cache['project_id']],['project_location']); |
| 283 | $this->upload_location = $project_info['upload_location']; | 283 | $this->upload_location = $project_info['upload_location']; |
| 284 | } | 284 | } |
| 285 | $this->path = $this->uploads['path_b'].'/'.$this->cache['project_id'].'/'.$this->file_type[$this->param['refer']].'/'.date('Y-m'); | 285 | $this->path = $this->uploads['path_b'].'/'.$this->cache['project_id'].'/'.$this->file_type[$this->param['refer']].'/'.date('Y-m'); |
-
请 注册 或 登录 后发表评论