TASK: 裁剪白底字段添加;
This commit is contained in:
@@ -38,4 +38,6 @@ public class CollectionElementVO {
|
|||||||
@ApiModelProperty("元素存放地址,绝对路径")
|
@ApiModelProperty("元素存放地址,绝对路径")
|
||||||
private String minIOPath;
|
private String minIOPath;
|
||||||
|
|
||||||
|
private String urlWithWhiteSide;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -23,5 +23,4 @@ public class UserLikeVO {
|
|||||||
@ApiModelProperty("图片路径")
|
@ApiModelProperty("图片路径")
|
||||||
private String designOutfitUrl;
|
private String designOutfitUrl;
|
||||||
private String pictureName;
|
private String pictureName;
|
||||||
private String urlWithWhiteSide;
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -109,6 +109,13 @@ public class CollectionServiceImpl extends ServiceImpl<CollectionMapper, Collect
|
|||||||
d.setIsPin(o.getHasPin());
|
d.setIsPin(o.getHasPin());
|
||||||
d.setDesignType(DesignTypeEnum.COLLECTION.getRealName());
|
d.setDesignType(DesignTypeEnum.COLLECTION.getRealName());
|
||||||
d.setUrl(minioUtil.getPresignedUrl(o.getUrl(), 24 * 60));
|
d.setUrl(minioUtil.getPresignedUrl(o.getUrl(), 24 * 60));
|
||||||
|
String url = o.getUrl();
|
||||||
|
if (url.contains(".")) {
|
||||||
|
String[] split = url.split("\\.");
|
||||||
|
d.setUrlWithWhiteSide(minioUtil.getPresignedUrl(split[0] + "-show." + split[1], 24 * 60));
|
||||||
|
}else {
|
||||||
|
d.setUrlWithWhiteSide(minioUtil.getPresignedUrl(url + "-show", 24 * 60));
|
||||||
|
}
|
||||||
}));
|
}));
|
||||||
break;
|
break;
|
||||||
case COLOR_BOARD:
|
case COLOR_BOARD:
|
||||||
|
|||||||
@@ -124,13 +124,6 @@ public class UserLikeGroupServiceImpl extends ServiceImpl<UserLikeGroupMapper, U
|
|||||||
o.setPictureName(o.getUrl().substring(index + 1));
|
o.setPictureName(o.getUrl().substring(index + 1));
|
||||||
}
|
}
|
||||||
o.setDesignOutfitUrl(minioUtil.getPresignedUrl(o.getUrl(), 24 * 60));
|
o.setDesignOutfitUrl(minioUtil.getPresignedUrl(o.getUrl(), 24 * 60));
|
||||||
String url = o.getUrl();
|
|
||||||
if (url.contains(".")) {
|
|
||||||
String[] split = url.split("\\.");
|
|
||||||
o.setUrlWithWhiteSide(minioUtil.getPresignedUrl(split[0] + "-show." + split[1], 24 * 60));
|
|
||||||
}else {
|
|
||||||
o.setUrlWithWhiteSide(minioUtil.getPresignedUrl(url + "-show", 24 * 60));
|
|
||||||
}
|
|
||||||
QueryWrapper<TDesignPythonOutfit> qw = new QueryWrapper<>();
|
QueryWrapper<TDesignPythonOutfit> qw = new QueryWrapper<>();
|
||||||
qw.lambda().eq(TDesignPythonOutfit::getDesignItemId, o.getDesignItemId());
|
qw.lambda().eq(TDesignPythonOutfit::getDesignItemId, o.getDesignItemId());
|
||||||
List<TDesignPythonOutfit> tDesignPythonOutfits = designPythonOutfitMapper.selectList(qw);
|
List<TDesignPythonOutfit> tDesignPythonOutfits = designPythonOutfitMapper.selectList(qw);
|
||||||
|
|||||||
Reference in New Issue
Block a user