作者 lyh

gx

@@ -130,7 +130,7 @@ class FileController @@ -130,7 +130,7 @@ class FileController
130 return $this->response('资源',Code::SUCCESS,['file'=>$hash,'file_link'=>$this->getFileUrl($fileModel,$hash)]); 130 return $this->response('资源',Code::SUCCESS,['file'=>$hash,'file_link'=>$this->getFileUrl($fileModel,$hash)]);
131 } 131 }
132 $url = $this->config['root'].$this->path; 132 $url = $this->config['root'].$this->path;
133 - $fileName = uniqid().rand(10000,99999).'.'.$files->getClientOriginalExtension(); 133 + $fileName = uniqid().rand(10000,99999).'.'.$file_type;
134 //同步数据到cos 134 //同步数据到cos
135 if($this->upload_location == 1){ 135 if($this->upload_location == 1){
136 $cosService = new CosService(); 136 $cosService = new CosService();