filePath;//原图片名称
$dst_img = $thumbnailPath;//压缩后图片的名称
$percent = 0.5; #原图压缩,不缩放定义图片保存文件名
$savePath = time().mt_rand(10000000,99999999).uniqid().'.png';
//将图片传到腾讯云(原图不压缩$savePath;//远程服务器存储的名字
//如果存在图片类型
if(isset($type) && $type){
$server_key_name$savePath;//远程服务器存储的名字
}
//引入腾讯云cos
require '.原图和缩略图)
@unlink($filePath);
@unlink($thumbnailPath);
//请求成功,返回图片存储信息