Commit 10cffef4 by 章家宝

feat:代码回退

1 parent f7d3e95e
...@@ -283,13 +283,8 @@ public class AliyunOssService extends AbstractStorageService { ...@@ -283,13 +283,8 @@ public class AliyunOssService extends AbstractStorageService {
// 执行上传 // 执行上传
ossClient.putObject(putObjectRequest); ossClient.putObject(putObjectRequest);
Map<String, String> parameter = null;
if (isImageFile(fileInfo.getName())) {
parameter = new HashMap<>();
parameter.put("x-oss-process", "image/format,jpg");
}
// 设置文件信息 // 设置文件信息
fileInfo.setUrl(getFileUrl(fileInfo.getFilePath(), null, parameter)); fileInfo.setUrl(getFileUrl(fileInfo.getFilePath()));
// 获取文件大小 // 获取文件大小
OSSObject ossObject = ossClient.getObject(bucketName, filePath); OSSObject ossObject = ossClient.getObject(bucketName, filePath);
...@@ -298,7 +293,7 @@ public class AliyunOssService extends AbstractStorageService { ...@@ -298,7 +293,7 @@ public class AliyunOssService extends AbstractStorageService {
String thumbPath = this.thumbnails(fileInfo.getName(), filePath); String thumbPath = this.thumbnails(fileInfo.getName(), filePath);
if (StringUtils.isNotBlank(thumbPath)) { if (StringUtils.isNotBlank(thumbPath)) {
fileInfo.setThumbPath(thumbPath); fileInfo.setThumbPath(thumbPath);
fileInfo.setThumbUrl(this.getFileUrl(thumbPath, null, parameter)); fileInfo.setThumbUrl(this.getFileUrl(thumbPath));
} }
} catch (Exception e) { } catch (Exception e) {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!