作者 lyh

gx

... ... @@ -222,7 +222,7 @@ class FileController
*/
public function downLoad(){
$file_model = new File();
$info = $file_model->read(['path' => '/'.str_replace_url($this->param['path'])]);
$info = $file_model->read(['path' => str_replace_url($this->param['path'])]);
if ($info === false) {
$this->response('指定文件不存在!', Code::USER_ERROR);
}
... ...
... ... @@ -292,7 +292,7 @@ class ImageController extends Controller
public function download(){
$imageModel = new ImageModel();
;
$info = $imageModel->read(['path' => '/'.str_replace_url($this->param['path'])]);
$info = $imageModel->read(['path' => str_replace_url($this->param['path'])]);
if ($info === false) {
$this->response('指定文件不存在!', Code::USER_ERROR);
}
... ...