Commit 100f75a3 authored by 技术部-韩成龙's avatar 技术部-韩成龙

异常返回错误消息

parent 7dc79a33
......@@ -32,7 +32,11 @@ public class NewAssertController {
@RequestMapping("/core/asset_handler")
public GlobalResponse assetsHandler(@RequestBody @Valid AuditResponce auditResponce) {
log.info("风控通知审核结果:{}", JSONObject.toJSONString(auditResponce));
coreFilter.coreHandle(auditResponce);
try {
coreFilter.coreHandle(auditResponce);
} catch (Exception e) {
return GlobalResponse.error(e.getMessage());
}
return GlobalResponse.create(AssetResponse.SUCCESS);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment