BUGFIX:渐变色回退;
This commit is contained in:
@@ -64,7 +64,7 @@ public class DesignItemDetail implements Serializable {
|
||||
*/
|
||||
private String color;
|
||||
|
||||
private String gradientString;
|
||||
// private String gradientString;
|
||||
|
||||
/**
|
||||
* 对应的print图片的绝对路径
|
||||
|
||||
@@ -30,6 +30,6 @@ public class CollectionColorDTO {
|
||||
//
|
||||
// private String gradientString;
|
||||
|
||||
private String gradientMinioUrl;
|
||||
// private String gradientMinioUrl;
|
||||
|
||||
}
|
||||
|
||||
@@ -50,7 +50,7 @@ public class DesignSingleItemDTO implements Serializable {
|
||||
@ApiModelProperty("图层优先级")
|
||||
private Integer priority;
|
||||
|
||||
@ApiModelProperty("渐变 颜色")
|
||||
private Gradient gradient;
|
||||
// @ApiModelProperty("渐变 颜色")
|
||||
// private Gradient gradient;
|
||||
|
||||
}
|
||||
|
||||
@@ -2621,17 +2621,17 @@ public class PythonService {
|
||||
// 判断是否是渐变色
|
||||
// String minioPath = null;
|
||||
// String gradientString = null;
|
||||
if (!Objects.isNull(designSingleItem.getGradient())){
|
||||
String colorImg = designSingleItem.getGradient().getColorImg();
|
||||
if (StringUtil.isNullOrEmpty(colorImg)){
|
||||
throw new BusinessException("The base64 data of the image is empty");
|
||||
}
|
||||
// minioPath = minioUtil.base64Upload(colorImg, gradientBucketName);
|
||||
// designSingleItem.getGradient().setColorImg(null);
|
||||
// gradientString = JSONObject.toJSONString(designSingleItem.getGradient());
|
||||
|
||||
// todo 当渐变色不为空时,是否需要将颜色置为 0 0 0
|
||||
}
|
||||
// if (!Objects.isNull(designSingleItem.getGradient())){
|
||||
// String colorImg = designSingleItem.getGradient().getColorImg();
|
||||
// if (StringUtil.isNullOrEmpty(colorImg)){
|
||||
// throw new BusinessException("The base64 data of the image is empty");
|
||||
// }
|
||||
//// minioPath = minioUtil.base64Upload(colorImg, gradientBucketName);
|
||||
//// designSingleItem.getGradient().setColorImg(null);
|
||||
//// gradientString = JSONObject.toJSONString(designSingleItem.getGradient());
|
||||
//
|
||||
// // todo 当渐变色不为空时,是否需要将颜色置为 0 0 0
|
||||
// }
|
||||
|
||||
response.add(new DesignPythonItem(
|
||||
designSingleItem.getType(),
|
||||
|
||||
Reference in New Issue
Block a user