BUGFIX:渐变色回退;
This commit is contained in:
@@ -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