...
|
...
|
@@ -114,6 +114,13 @@ public class CertificationServiceImpl implements ICertificationService { |
|
|
alipayService.beginAlipayCert(reqVO, zhiMaCert, respBO); //开始支付宝刷脸认证
|
|
|
logger.info("BeginCertificate: call alipay certify end. reqVO is {}, zhiMaCert is {}, respBO is {}", reqVO, zhiMaCert, respBO);
|
|
|
}
|
|
|
|
|
|
//(9)删除实名认证信息
|
|
|
try {
|
|
|
cacheService.delZhiMaCert(reqVO.getUid());
|
|
|
}catch(Exception e){
|
|
|
logger.warn("BeginCertification: delZhiMaCert redis fail, uid is {}, e is {}", reqVO.getUid(), e);
|
|
|
}
|
|
|
return respBO;
|
|
|
}
|
|
|
|
...
|
...
|
@@ -121,6 +128,12 @@ public class CertificationServiceImpl implements ICertificationService { |
|
|
public ApiResponse queryUserCertify(RealNameAuthorizeReqVO reqVO) {
|
|
|
try {
|
|
|
logger.info("queryUserCertify: enter. reqVO is {}", reqVO);
|
|
|
//(0) 删除实名认证信息缓存
|
|
|
try {
|
|
|
cacheService.delZhiMaCert(reqVO.getUid());
|
|
|
}catch(Exception e){
|
|
|
logger.warn("queryUserCertify: delZhiMaCert redis fail, uid is {}, e is {}");
|
|
|
}
|
|
|
//(1) 根据 bizNo 查询认证信息是否存在
|
|
|
ZhiMaCert zhiMaCert = zhiMaCertDao.selectByBizNo(reqVO.getZhiMaBizNo());
|
|
|
if (zhiMaCert == null || StringUtils.isEmpty(zhiMaCert.getBizNo())) {
|
...
|
...
|
@@ -148,6 +161,7 @@ public class CertificationServiceImpl implements ICertificationService { |
|
|
logger.info("queryUserCertify: userCert notPass. reqVO is {}, certResult is {}", reqVO, response);
|
|
|
return new ApiResponse<>(400, StringUtils.isEmpty(errorMsg) ? "身份认证不通过" : errorMsg ,false);
|
|
|
}
|
|
|
|
|
|
}catch(Exception e){
|
|
|
logger.warn("queryUserCertify: error. reqVO is {}, e is {}", reqVO, e);
|
|
|
throw new UfoServiceException(400, "查询身份认证结果失败");
|
...
|
...
|
|