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