From e3309e984139ff6895829d4869195ca19a27f3e1 Mon Sep 17 00:00:00 2001 From: shahaibo <1023316923@qq.com> Date: Wed, 11 Oct 2023 15:30:44 +0800 Subject: [PATCH] =?UTF-8?q?BUGFIX:synthesis=5Furl=E8=BF=94=E5=9B=9E?= =?UTF-8?q?=E4=B8=BA=E7=A9=BA=E5=BC=82=E5=B8=B8=E5=A4=84=E7=90=86;?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/ai/da/service/impl/DesignServiceImpl.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/ai/da/service/impl/DesignServiceImpl.java b/src/main/java/com/ai/da/service/impl/DesignServiceImpl.java index e639a494..6a040df6 100644 --- a/src/main/java/com/ai/da/service/impl/DesignServiceImpl.java +++ b/src/main/java/com/ai/da/service/impl/DesignServiceImpl.java @@ -455,7 +455,12 @@ public class DesignServiceImpl extends ServiceImpl impleme designPythonOutfit.setUserId(userInfo.getId()); designPythonOutfit.setDesignId(designId); designPythonOutfit.setCollectionId(collectionId); - designPythonOutfit.setDesignUrl(outfit.getString("synthesis_url")); + String synthesisUrl = outfit.getString("synthesis_url"); + if (!StringUtils.isEmpty(synthesisUrl)) { + designPythonOutfit.setDesignUrl(synthesisUrl); + }else { + throw new BusinessException("design python response synthesis_url is null"); + } designPythonOutfitService.save(designPythonOutfit); JSONArray layers = outfit.getJSONArray("layers"); List list = new ArrayList<>();