| | |
| | | return error(ErrorCode.GET_FACE_CONFIG_FAIL, e); |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 获取表单中使用的参照 |
| | | */ |
| | | @PostMapping("/get-face-reference/{version}") |
| | | @ApiVersion(1) |
| | | public String getFaceReference(HttpServletRequest request) { |
| | | try { |
| | | FieldSetEntity fse = BaseUtil.getFieldSetEntity(request); |
| | | return BaseUtil.success(faceApplyService.getFaceReference(fse)); |
| | | } catch (BaseException e) { |
| | | e.printStackTrace(); |
| | | return error(e); |
| | | } catch (Exception e) { |
| | | e.printStackTrace(); |
| | | SpringMVCContextHolder.getSystemLogger().error(e); |
| | | return error(ErrorCode.GET_FACE_CONFIG_FAIL, e); |
| | | } |
| | | } |
| | | } |