parent
db267ed2c3
commit
bcab0b2ed6
|
@ -602,11 +602,11 @@ public class ApiService {
|
||||||
|
|
||||||
try (Response response = client.newCall(request).execute()) {
|
try (Response response = client.newCall(request).execute()) {
|
||||||
if (response.isSuccessful()) {
|
if (response.isSuccessful()) {
|
||||||
String responseBody = String.valueOf(response.body());
|
Object responseBody = response.body();
|
||||||
logger.info("提交接口调用成功,响应成功信息:{}", responseBody);
|
logger.info("提交接口调用成功,响应成功信息:{}", responseBody);
|
||||||
return "提交接口 → 响应成功: " + responseBody;
|
return "提交接口 → 响应成功: " + responseBody;
|
||||||
} else {
|
} else {
|
||||||
String errorBody = String.valueOf(response.body());
|
Object errorBody = response.body();
|
||||||
logger.info("提交接口调用失败,响应失败信息:{}", errorBody);
|
logger.info("提交接口调用失败,响应失败信息:{}", errorBody);
|
||||||
return "提交接口 → 响应失败: " + errorBody;
|
return "提交接口 → 响应失败: " + errorBody;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue