1
This commit is contained in:
@@ -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()) {
|
||||
|
||||
Reference in New Issue
Block a user