Merge branch 'feature/joint_log' into 'pre'

获取url接口支持图片处理样式

See merge request infra/oss!38
This commit is contained in:
田立勇 2022-12-13 11:35:33 +00:00
commit cc183adbc7

View File

@ -266,13 +266,14 @@ public class FileServiceImpl implements FileService {
if (CollectionUtil.isNotEmpty(fileList)) {
fileList.stream().forEach(file -> {
FindFileUrlResponse response = new FindFileUrlResponse();
response.setUrl(file.getFileUrl());
String fileUrl = file.getFileUrl();
String fileKey = file.getFileUuid();
if (fileKeyStyleMap.containsKey(fileKey)) {
response.setFileKey(fileKeyStyleMap.get(fileKey));
} else {
response.setFileKey(fileKey);
fileKey = fileKeyStyleMap.get(fileKey);
fileUrl += fileKey.substring(fileKey.indexOf("?"));
}
response.setFileKey(fileKey);
response.setUrl(fileUrl);
resList.add(response);
});
}