This commit is contained in:
Leo
2026-01-15 21:49:38 +08:00
parent c837917be3
commit 2ce45e5ccc
4 changed files with 171 additions and 7 deletions

View File

@@ -261,10 +261,13 @@ public class WPS365ApiUtil {
}
String responseStr = response.toString();
log.debug("HTTP响应: statusCode={}, response={}", statusCode, responseStr);
log.info("HTTP响应: statusCode={}, url={}, response={}", statusCode, url, responseStr);
if (statusCode < 200 || statusCode >= 300) {
throw new RuntimeException("HTTP请求失败: statusCode=" + statusCode + ", response=" + responseStr);
String errorMsg = String.format("HTTP请求失败: statusCode=%d, url=%s, response=%s",
statusCode, url, responseStr);
log.error(errorMsg);
throw new RuntimeException(errorMsg);
}
if (responseStr == null || responseStr.trim().isEmpty()) {