BUGFIX:渐变色回退;

This commit is contained in:
shahaibo
2024-05-28 11:52:33 +08:00
parent ffd371e5b4
commit 3dc7866fba
4 changed files with 15 additions and 15 deletions

View File

@@ -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(),