Authored by 匡佳华

Merge branch 'hotfix-userCertify-0813' into test6.9.10

... ... @@ -116,7 +116,11 @@ public class CertificationServiceImpl implements ICertificationService {
}
//(9)删除实名认证信息
cacheService.delZhiMaCert(reqVO.getUid());
try {
cacheService.delZhiMaCert(reqVO.getUid());
}catch(Exception e){
logger.warn("BeginCertification: delZhiMaCert redis fail, uid is {}, e is {}", reqVO.getUid(), e);
}
return respBO;
}
... ... @@ -124,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())) {
... ... @@ -144,8 +154,6 @@ public class CertificationServiceImpl implements ICertificationService {
logger.warn("queryUserCertify: update certResult fail. reqVO is {}", reqVO);
throw new UfoServiceException(400, "更新身份认证结果失败!");
}
//删除实名认证信息缓存
cacheService.delZhiMaCert(reqVO.getUid());
logger.info("queryUserCertify: userCert pass. reqVO is {}, certResult is {}", reqVO, response);
return new ApiResponse<>(200, "身份认证通过", true);
}else{
... ...