调整征信解析返回解析和日志

This commit is contained in:
wkc
2026-05-13 16:28:57 +08:00
parent be443d1b31
commit 9917d10e59
9 changed files with 149 additions and 19 deletions

View File

@@ -176,7 +176,7 @@ public class CcdiCreditInfoServiceImpl implements ICcdiCreditInfoService {
throw new RuntimeException("征信解析结果为空");
}
CreditParseResponse mappingOutputFields = response.getData().getMappingOutputFields();
if (!Boolean.TRUE.equals(response.getSuccess()) || response.getCode() == null || response.getCode() != 1000) {
if (!Boolean.TRUE.equals(response.getSuccess())) {
throw new RuntimeException(stringValue(mappingOutputFields.getMessage(), "征信解析平台调用失败"));
}
if (!"0".equals(mappingOutputFields.getStatusCode())) {

View File

@@ -150,7 +150,7 @@ class CcdiCreditInfoServiceImplTest {
CreditParseInvokeResponse invokeResponse = new CreditParseInvokeResponse();
invokeResponse.setSuccess(true);
invokeResponse.setCode(1000);
invokeResponse.setCode(99999);
invokeResponse.setData(data);
return invokeResponse;
}