fix
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user