|
...
|
...
|
@@ -223,12 +223,9 @@ class FileController |
|
|
|
public function downLoad(){
|
|
|
|
$file_model = new File();
|
|
|
|
$info = $file_model->read(['path' => str_replace_url($this->param['path'])]);
|
|
|
|
var_dump($info);
|
|
|
|
die();
|
|
|
|
if ($info === false) {
|
|
|
|
$this->response('指定文件不存在!', Code::USER_ERROR);
|
|
|
|
}
|
|
|
|
|
|
|
|
if($info['is_cos'] == 1){
|
|
|
|
$cos = new CosService();
|
|
|
|
$fileUrl = $cos->getImageUrl($info['path']);
|
...
|
...
|
|