diff --git a/src/main/java/com/ai/da/python/PythonService.java b/src/main/java/com/ai/da/python/PythonService.java index 0bb9b0ef..643de0ba 100644 --- a/src/main/java/com/ai/da/python/PythonService.java +++ b/src/main/java/com/ai/da/python/PythonService.java @@ -4371,11 +4371,15 @@ public class PythonService { log.error("PythonService##poseTransferBatch异常###{}", ExceptionUtil.getThrowableList(ioException)); throw new BusinessException("poseTransferBatch.interface.exception"); } - if (response.isSuccessful()) { + + if (response.isSuccessful() && response.body() != null) { + String responseBody = response.body().toString(); + log.info("PythonService##poseTransferBatch返回内容###{}", responseBody); + return Boolean.TRUE; } - log.error("PythonService##poseTransferBatch异常response###{}", response); - //生成失败 + + log.error("PythonService##poseTransferBatch接口调用失败###{}", response); throw new BusinessException("poseTransferBatch.interface.exception"); } }