feat(项目管理适配线上环境): 打印请求Forge响应异常日志

Signed-off-by: OTTO <731554297@qq.com>
This commit is contained in:
OTTO 2025-03-20 14:10:32 +08:00
parent 03a11ab7df
commit f0e01ecaf6
1 changed files with 1 additions and 0 deletions

View File

@ -283,6 +283,7 @@ public class HttpAPIService {
if (length != 0L) {
String result = EntityUtils.toString(httpEntity);
if (!JSON.isValid(result)) {
logger.error("平台接口响应格式异常,状态码:{},响应内容:{}", httpStatusCode, result);
throw new ServiceException("平台接口响应格式异常");
}
Object resultObj = JSON.parse(result);