|
...
|
...
|
@@ -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);
|
|
|
|
}
|
...
|
...
|
|