Merge branch 'feature/joint_log' into 'pre'
获取url接口支持图片处理样式 See merge request infra/oss!38
This commit is contained in:
commit
cc183adbc7
@ -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);
|
||||
});
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user