作者 lyh

gx

@@ -179,6 +179,8 @@ class FileController @@ -179,6 +179,8 @@ class FileController
179 $url = $this->config['root'].$this->path; 179 $url = $this->config['root'].$this->path;
180 $fileName = uniqid().rand(10000,99999).'.'.$files->getClientOriginalExtension(); 180 $fileName = uniqid().rand(10000,99999).'.'.$files->getClientOriginalExtension();
181 //同步数据到cos 181 //同步数据到cos
  182 + var_dump($this->upload_location);
  183 + die();
182 if($this->upload_location == 1){ 184 if($this->upload_location == 1){
183 $cosService = new CosService(); 185 $cosService = new CosService();
184 $cosService->uploadFile($files,$this->path,$fileName); 186 $cosService->uploadFile($files,$this->path,$fileName);