Authored by 匡佳华

异常捕获

@@ -116,7 +116,11 @@ public class CertificationServiceImpl implements ICertificationService { @@ -116,7 +116,11 @@ public class CertificationServiceImpl implements ICertificationService {
116 } 116 }
117 117
118 //(9)删除实名认证信息 118 //(9)删除实名认证信息
119 - cacheService.delZhiMaCert(reqVO.getUid()); 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 + }
120 return respBO; 124 return respBO;
121 } 125 }
122 126
@@ -124,6 +128,12 @@ public class CertificationServiceImpl implements ICertificationService { @@ -124,6 +128,12 @@ public class CertificationServiceImpl implements ICertificationService {
124 public ApiResponse queryUserCertify(RealNameAuthorizeReqVO reqVO) { 128 public ApiResponse queryUserCertify(RealNameAuthorizeReqVO reqVO) {
125 try { 129 try {
126 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 + }
127 //(1) 根据 bizNo 查询认证信息是否存在 137 //(1) 根据 bizNo 查询认证信息是否存在
128 ZhiMaCert zhiMaCert = zhiMaCertDao.selectByBizNo(reqVO.getZhiMaBizNo()); 138 ZhiMaCert zhiMaCert = zhiMaCertDao.selectByBizNo(reqVO.getZhiMaBizNo());
129 if (zhiMaCert == null || StringUtils.isEmpty(zhiMaCert.getBizNo())) { 139 if (zhiMaCert == null || StringUtils.isEmpty(zhiMaCert.getBizNo())) {
@@ -144,8 +154,6 @@ public class CertificationServiceImpl implements ICertificationService { @@ -144,8 +154,6 @@ public class CertificationServiceImpl implements ICertificationService {
144 logger.warn("queryUserCertify: update certResult fail. reqVO is {}", reqVO); 154 logger.warn("queryUserCertify: update certResult fail. reqVO is {}", reqVO);
145 throw new UfoServiceException(400, "更新身份认证结果失败!"); 155 throw new UfoServiceException(400, "更新身份认证结果失败!");
146 } 156 }
147 - //删除实名认证信息缓存  
148 - cacheService.delZhiMaCert(reqVO.getUid());  
149 logger.info("queryUserCertify: userCert pass. reqVO is {}, certResult is {}", reqVO, response); 157 logger.info("queryUserCertify: userCert pass. reqVO is {}, certResult is {}", reqVO, response);
150 return new ApiResponse<>(200, "身份认证通过", true); 158 return new ApiResponse<>(200, "身份认证通过", true);
151 }else{ 159 }else{