Authored by wujiexiang

Merge branch 'master' of http://git.yoho.cn/ufo/yohoufo-fore into dev-seller-order-stat-6.9.10

@@ -114,6 +114,13 @@ public class CertificationServiceImpl implements ICertificationService { @@ -114,6 +114,13 @@ public class CertificationServiceImpl implements ICertificationService {
114 alipayService.beginAlipayCert(reqVO, zhiMaCert, respBO); //开始支付宝刷脸认证 114 alipayService.beginAlipayCert(reqVO, zhiMaCert, respBO); //开始支付宝刷脸认证
115 logger.info("BeginCertificate: call alipay certify end. reqVO is {}, zhiMaCert is {}, respBO is {}", reqVO, zhiMaCert, respBO); 115 logger.info("BeginCertificate: call alipay certify end. reqVO is {}, zhiMaCert is {}, respBO is {}", reqVO, zhiMaCert, respBO);
116 } 116 }
  117 +
  118 + //(9)删除实名认证信息
  119 + try {
  120 + cacheService.delZhiMaCert(reqVO.getUid());
  121 + }catch(Exception e){
  122 + logger.warn("BeginCertification: delZhiMaCert redis fail, uid is {}, e is {}", reqVO.getUid(), e);
  123 + }
117 return respBO; 124 return respBO;
118 } 125 }
119 126
@@ -121,6 +128,12 @@ public class CertificationServiceImpl implements ICertificationService { @@ -121,6 +128,12 @@ public class CertificationServiceImpl implements ICertificationService {
121 public ApiResponse queryUserCertify(RealNameAuthorizeReqVO reqVO) { 128 public ApiResponse queryUserCertify(RealNameAuthorizeReqVO reqVO) {
122 try { 129 try {
123 logger.info("queryUserCertify: enter. reqVO is {}", reqVO); 130 logger.info("queryUserCertify: enter. reqVO is {}", reqVO);
  131 + //(0) 删除实名认证信息缓存
  132 + try {
  133 + cacheService.delZhiMaCert(reqVO.getUid());
  134 + }catch(Exception e){
  135 + logger.warn("queryUserCertify: delZhiMaCert redis fail, uid is {}, e is {}");
  136 + }
124 //(1) 根据 bizNo 查询认证信息是否存在 137 //(1) 根据 bizNo 查询认证信息是否存在
125 ZhiMaCert zhiMaCert = zhiMaCertDao.selectByBizNo(reqVO.getZhiMaBizNo()); 138 ZhiMaCert zhiMaCert = zhiMaCertDao.selectByBizNo(reqVO.getZhiMaBizNo());
126 if (zhiMaCert == null || StringUtils.isEmpty(zhiMaCert.getBizNo())) { 139 if (zhiMaCert == null || StringUtils.isEmpty(zhiMaCert.getBizNo())) {
@@ -148,6 +161,7 @@ public class CertificationServiceImpl implements ICertificationService { @@ -148,6 +161,7 @@ public class CertificationServiceImpl implements ICertificationService {
148 logger.info("queryUserCertify: userCert notPass. reqVO is {}, certResult is {}", reqVO, response); 161 logger.info("queryUserCertify: userCert notPass. reqVO is {}, certResult is {}", reqVO, response);
149 return new ApiResponse<>(400, StringUtils.isEmpty(errorMsg) ? "身份认证不通过" : errorMsg ,false); 162 return new ApiResponse<>(400, StringUtils.isEmpty(errorMsg) ? "身份认证不通过" : errorMsg ,false);
150 } 163 }
  164 +
151 }catch(Exception e){ 165 }catch(Exception e){
152 logger.warn("queryUserCertify: error. reqVO is {}, e is {}", reqVO, e); 166 logger.warn("queryUserCertify: error. reqVO is {}, e is {}", reqVO, e);
153 throw new UfoServiceException(400, "查询身份认证结果失败"); 167 throw new UfoServiceException(400, "查询身份认证结果失败");