|
@@ -256,26 +256,8 @@ public class AdminOrderController {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
@RequestMapping("/getFaceCompareList")
|
|
@RequestMapping("/getFaceCompareList")
|
|
|
- public AppBaseResponse<List<FaceCompareEntity>> getFaceCompareList(@RequestBody FaceCompareReq thirdPartyReq){
|
|
|
|
|
|
|
+ public AppBaseResponse getFaceCompareList(@RequestBody FaceCompareReq thirdPartyReq){
|
|
|
return adminOrderService.getThird(thirdPartyReq);
|
|
return adminOrderService.getThird(thirdPartyReq);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- @AnonymousPostMapping("upload")
|
|
|
|
|
- public ResultCode upload(@RequestBody me.zhengjie.application.bank.controller.vo.CompareImageVo compareImageVo){
|
|
|
|
|
- FileHandleVo fileHandleVo = new FileHandleVo();
|
|
|
|
|
- String base64 = compareImageVo.getBase64();
|
|
|
|
|
- String filePath = FileUploadUtil.saveFaceImage(base64);
|
|
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
- fileHandleVo.setFilePath(filePath);
|
|
|
|
|
- fileHandleVo.setContentType("image/jpeg");
|
|
|
|
|
- try {
|
|
|
|
|
- fileHandleVo.setInputStream(FileUploadUtil.getInputStream(filePath));
|
|
|
|
|
- } catch (Exception e) {
|
|
|
|
|
- throw new RuntimeException(e);
|
|
|
|
|
- }
|
|
|
|
|
- FileInfoEntity fileInfo = notaryDomain.uploadFaceFile(filePath);
|
|
|
|
|
- return ResultCode.SUCCESS;
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
}
|
|
}
|