作者 lyh

gx

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