正在显示
1 个修改的文件
包含
1 行增加
和
1 行删除
| @@ -285,7 +285,7 @@ class FileController | @@ -285,7 +285,7 @@ class FileController | ||
| 285 | if (!is_file($path)) { | 285 | if (!is_file($path)) { |
| 286 | $this->response('指定文件已被系统删除!', Code::USER_ERROR); | 286 | $this->response('指定文件已被系统删除!', Code::USER_ERROR); |
| 287 | } | 287 | } |
| 288 | - $fileUrl = url('public/upload/files/'.basename($path)); // 文件的 URL | 288 | + $fileUrl = url('upload/files/'.basename($path)); // 文件的 URL |
| 289 | $fileName = 'downloaded_file'.'.'.$info['type']; // 要保存的文件名 | 289 | $fileName = 'downloaded_file'.'.'.$info['type']; // 要保存的文件名 |
| 290 | // 设置响应头 | 290 | // 设置响应头 |
| 291 | header('Content-Type: application/octet-stream'); | 291 | header('Content-Type: application/octet-stream'); |
-
请 注册 或 登录 后发表评论