提交内容:BIP提交接口调用

备注:BIP提交接口调用
提交人:邹江涛
This commit is contained in:
zoujiangtao 2024-12-18 19:13:42 +08:00
parent bcab0b2ed6
commit 3aea7d84a0
1 changed files with 2 additions and 2 deletions

View File

@ -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;
}