2 Commits

Author SHA1 Message Date
litianxiang
bb0e5a4263 Merge remote-tracking branch 'origin/dev-ltx' into dev/3.1_release_merge 2026-01-16 11:04:52 +08:00
litianxiang
9e9df5367d fix:接口SegAnything返回值处理 2026-01-16 11:04:18 +08:00

View File

@@ -4152,9 +4152,7 @@ public class PythonService {
if (responseObject != null) { if (responseObject != null) {
JSONObject dataObj = responseObject.getJSONObject("data"); JSONObject dataObj = responseObject.getJSONObject("data");
if (dataObj != null) { if (dataObj != null) {
JSONObject inner = dataObj.getJSONObject("data"); String output = dataObj.getString("output");
if (inner != null) {
String output = inner.getString("output");
if (!StringUtil.isNullOrEmpty(output)) { if (!StringUtil.isNullOrEmpty(output)) {
try { try {
String presigned = minioUtil.getPreSignedUrl(output, 24 * 60); String presigned = minioUtil.getPreSignedUrl(output, 24 * 60);
@@ -4166,7 +4164,7 @@ public class PythonService {
} }
} }
} }
}
} catch (Exception ex) { } catch (Exception ex) {
log.error("PythonService##segAnything post-process error###{}", ex.getMessage()); log.error("PythonService##segAnything post-process error###{}", ex.getMessage());
throw new BusinessException("segAnything.interface.exception"); throw new BusinessException("segAnything.interface.exception");