新增异常兜底返回

This commit is contained in:
沈健
2021-11-12 10:06:18 +08:00
parent d8b38f053f
commit cdc8cf4eae
@@ -2761,6 +2761,7 @@ public class AddressController {
} }
BasicModel resultModel = new BasicModel(HttpStatusCodeEnum.OK); BasicModel resultModel = new BasicModel(HttpStatusCodeEnum.OK);
Map<String, String> resultMap = new HashMap<String, String>(); Map<String, String> resultMap = new HashMap<String, String>();
try {
Map<String, Object> params = new HashMap<String, Object>(); Map<String, Object> params = new HashMap<String, Object>();
if (StringUtils.isNotBlank(model.getCity())) { if (StringUtils.isNotBlank(model.getCity())) {
params.put("city", model.getCity()); params.put("city", model.getCity());
@@ -2810,6 +2811,9 @@ public class AddressController {
} }
} }
} }
} catch (Exception ex) {
LOGGER.error("风险识别出错:" + ex.getMessage(), ex);
}
resultMap.put("riskLevel","C"); resultMap.put("riskLevel","C");
resultModel.setResult(resultMap); resultModel.setResult(resultMap);