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