Compare commits
2 Commits
ba8a2c52de
...
bb0e5a4263
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
bb0e5a4263 | ||
|
|
9e9df5367d |
@@ -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");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user