This commit is contained in:
shuo.wang
2025-08-05 15:53:46 +08:00
parent d7569b8435
commit b6a0754970

View File

@@ -181,9 +181,9 @@ public class HqtAPIServiceImpl implements HqtAPIService {
throw new ServiceException(ErrorCodeEnum.THIRD_API_ERROR,
"HTTP请求失败状态码: " + response.code());
}
log.info("请求成功responseBody:{}",JSONObject.toJSONString(response.body().string()));
HqtAPIResponse hqtAPIResponse = objectMapper.readValue(response.body().string(), HqtAPIResponse.class);
String responseBody = response.body().string();
log.info("请求成功responseBody:{}",JSONObject.toJSONString(responseBody));
HqtAPIResponse hqtAPIResponse = objectMapper.readValue(responseBody, HqtAPIResponse.class);
return hqtAPIResponse;
} catch (ServiceException e) {
throw e;