Authored by qinchao

调整格式

... ... @@ -191,7 +191,7 @@ public class RealNameAuthorizeController {
reqVO.setBackImageUrl(yohoCardUrlPre+reqVO.getBackImageUrl());
//调用芝麻,得到回调url
AuthorizeResultRespVO resultVo=realNameAuthorizeService.zhiMaCertWithPhotoInit(reqVO,true);
AuthorizeResultRespVO resultVo=realNameAuthorizeService.zhiMaCertWithPhotoInit(reqVO);
logger.info("realNameAuthorize.zhiMaCertWithPhotoCheckInit result vo {} ",resultVo);
ApiResponse apiResponse=new ApiResponse();
if(resultVo==null){
... ...
... ... @@ -23,7 +23,7 @@ public interface IRealNameAuthorizeService {
ZhiMaCert getValidZhiMaCert(int uid);
AuthorizeResultRespVO zhiMaCertWithPhotoInit(RealNameAuthorizeReqVO reqVO,boolean ocrPhotoCheck);
AuthorizeResultRespVO zhiMaCertWithPhotoInit(RealNameAuthorizeReqVO reqVO);
AuthorizeResultRespVO zhiMaCertInit(RealNameAuthorizeReqVO reqVO);
... ...
... ... @@ -469,7 +469,7 @@ public class RealNameAuthorizeServiceImpl implements IRealNameAuthorizeService {
}
@Override
public AuthorizeResultRespVO zhiMaCertWithPhotoInit(RealNameAuthorizeReqVO reqVO,boolean ocrPhotoCheck){
public AuthorizeResultRespVO zhiMaCertWithPhotoInit(RealNameAuthorizeReqVO reqVO){
logger.info("real name zhiMaCertWithPhotoInit reqVO {}", reqVO);
boolean justCheckPhoto = false;
int uid = reqVO.getUid();
... ... @@ -496,15 +496,13 @@ public class RealNameAuthorizeServiceImpl implements IRealNameAuthorizeService {
logger.info("real name zhiMaCertWithPhotoInit reqVO {} ,justCheckPhoto {}", reqVO,justCheckPhoto);
if(ocrPhotoCheck){
//验证图片
PhotoCheckResultVO photoCheckResultVO = this.zhiMaCertPhotoCheck(reqVO);
if(photoCheckResultVO.isPass()){
//根据校验结果,重设photo_valid_status
reqVO.setPhotoValidStatus(photoCheckResultVO.getPhotoValidStatus());
}else{
throw new UfoServiceException(400, "您上传的证件照片信息不正确,请重新上传!");
}
//验证图片
PhotoCheckResultVO photoCheckResultVO = this.zhiMaCertPhotoCheck(reqVO);
if(photoCheckResultVO.isPass()){
//根据校验结果,重设photo_valid_status
reqVO.setPhotoValidStatus(photoCheckResultVO.getPhotoValidStatus());
}else{
throw new UfoServiceException(400, "您上传的证件照片信息不正确,请重新上传!");
}
String imgUrl = reqVO.getFrontImageUrl()+","+reqVO.getBackImageUrl();
... ...