提交 53f4102d 编写于 作者: minghao.wu's avatar minghao.wu

remove: try catch block

上级 b5cf3c49
流水线 #29522 已失败 于阶段
in 0 second
......@@ -84,7 +84,7 @@ public class RegisterServiceImpl implements RegisterService {
String nxKey = Constants.REPEAT_REGISTER_PREFIX + mobile;
Long resultNx = redisClient.setnx(nxKey, mobile);
if(resultNx == 1) {
try {
//try {
String mobileEncrypt = AESUtil.encryptV0(mobile);
AccountInfoEntity accountInfoEntity = accountInfoDetailMapper.selectByMobile(mobileEncrypt);
if (accountInfoEntity == null) {
......@@ -161,17 +161,17 @@ public class RegisterServiceImpl implements RegisterService {
throw new AccountException(AccountExceptionEnum.PICA_ALREADY_REGISTER);
}
} catch (Exception e) {
//} catch (Exception e) {
//向上抛出异常,让异常处理框架捕获到
logger.error("registerException-" + e.getMessage(), e);
intactUtil.sendIntact(batchNo,"register",com.pica.cloud.foundation.completeness.contract.constants.CommonConstants.INTACT_CONTENT_LOG_STATUS_3,"注册失败");
//logger.error("registerException-" + e.getMessage(), e);
//intactUtil.sendIntact(batchNo,"register",com.pica.cloud.foundation.completeness.contract.constants.CommonConstants.INTACT_CONTENT_LOG_STATUS_3,"注册失败");
throw new AccountException(AccountExceptionEnum.PICA_REGISTER_FAIL);
} finally {
//throw new AccountException(AccountExceptionEnum.PICA_REGISTER_FAIL);
//} finally {
//如果在注册过程中抛出异常,就删除redis中的注册标记
logger.info("register-finally-del-nxKey");
redisClient.del(nxKey);
}
//logger.info("register-finally-del-nxKey");
//redisClient.del(nxKey);
//}
} else {
logger.info("register-nxKey is exists");
intactUtil.sendIntact(batchNo,"register",com.pica.cloud.foundation.completeness.contract.constants.CommonConstants.INTACT_CONTENT_LOG_STATUS_3,"该手机号已注册,请直接登录");
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册