From 9e9df5367d5ca9258fde96328ebe7d91b185ef19 Mon Sep 17 00:00:00 2001 From: litianxiang Date: Fri, 16 Jan 2026 11:04:18 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E6=8E=A5=E5=8F=A3SegAnything=E8=BF=94?= =?UTF-8?q?=E5=9B=9E=E5=80=BC=E5=A4=84=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/java/com/ai/da/python/PythonService.java | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/main/java/com/ai/da/python/PythonService.java b/src/main/java/com/ai/da/python/PythonService.java index a14d91fc..0cbc672f 100644 --- a/src/main/java/com/ai/da/python/PythonService.java +++ b/src/main/java/com/ai/da/python/PythonService.java @@ -4152,9 +4152,7 @@ public class PythonService { if (responseObject != null) { JSONObject dataObj = responseObject.getJSONObject("data"); if (dataObj != null) { - JSONObject inner = dataObj.getJSONObject("data"); - if (inner != null) { - String output = inner.getString("output"); + String output = dataObj.getString("output"); if (!StringUtil.isNullOrEmpty(output)) { try { String presigned = minioUtil.getPreSignedUrl(output, 24 * 60); @@ -4166,7 +4164,7 @@ public class PythonService { } } } - } + } catch (Exception ex) { log.error("PythonService##segAnything post-process error###{}", ex.getMessage()); throw new BusinessException("segAnything.interface.exception"); @@ -4175,7 +4173,7 @@ public class PythonService { throw new BusinessException("segAnything.missing.output"); } throw new BusinessException("segAnything.interface.exception"); - } catch (IOException | JSONException e) { + } catch (IOException |JSONException e) { log.error("PythonService##segAnything异常###{}", e.getMessage()); throw new BusinessException("segAnything.interface.exception"); }