作者 lyh

gx

@@ -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 }