正在显示
1 个修改的文件
包含
1 行增加
和
1 行删除
| @@ -314,7 +314,7 @@ class FileController | @@ -314,7 +314,7 @@ class FileController | ||
| 314 | */ | 314 | */ |
| 315 | public function getDownloadUrl(){ | 315 | public function getDownloadUrl(){ |
| 316 | $fileModel = new File(); | 316 | $fileModel = new File(); |
| 317 | - $info = $fileModel->read(['path' => $this->param['path']]); | 317 | + $info = $fileModel->read(['path' => str_replace_url($this->param['path'])]); |
| 318 | if ($info === false) { | 318 | if ($info === false) { |
| 319 | $this->response('指定文件不存在!', Code::USER_ERROR); | 319 | $this->response('指定文件不存在!', Code::USER_ERROR); |
| 320 | } | 320 | } |
-
请 注册 或 登录 后发表评论