作者 lyh

gx

@@ -197,7 +197,6 @@ class ImageController extends Controller @@ -197,7 +197,6 @@ class ImageController extends Controller
197 $image_type = $files->getClientOriginalExtension(); 197 $image_type = $files->getClientOriginalExtension();
198 $fileName = uniqid().rand(10000,99999).'.'.$image_type; 198 $fileName = uniqid().rand(10000,99999).'.'.$image_type;
199 //上传到cos 199 //上传到cos
200 - //TODO::设置上传文件大小  
201 if($this->upload_location == 1){ 200 if($this->upload_location == 1){
202 $cosService = new CosService(); 201 $cosService = new CosService();
203 $cosService->uploadFile($files,$this->path,$fileName); 202 $cosService->uploadFile($files,$this->path,$fileName);