已实名后的 修改为其它实名 禁止
This commit is contained in:
@@ -209,8 +209,6 @@ public class AppController {
|
|||||||
}
|
}
|
||||||
int count = userInfoService.count(Wrappers.<UserInfo>lambdaQuery()
|
int count = userInfoService.count(Wrappers.<UserInfo>lambdaQuery()
|
||||||
.eq(UserInfo::getUserId, userId)
|
.eq(UserInfo::getUserId, userId)
|
||||||
.eq(UserInfo::getCertName, certName)
|
|
||||||
.eq(UserInfo::getCertNo, certNum)
|
|
||||||
);
|
);
|
||||||
if (count > 0) {
|
if (count > 0) {
|
||||||
return Result.error("已完成实名认证,无需重复操作");
|
return Result.error("已完成实名认证,无需重复操作");
|
||||||
@@ -226,6 +224,7 @@ public class AppController {
|
|||||||
if (!ApiAccessLimitUtil.getCertAuthIsAccessAllowed(String.valueOf(userId), "updateAuthCertInfo", 5)) {
|
if (!ApiAccessLimitUtil.getCertAuthIsAccessAllowed(String.valueOf(userId), "updateAuthCertInfo", 5)) {
|
||||||
return Result.error("实名修改失败: 每月可修改次数已用完,请联系管理员");
|
return Result.error("实名修改失败: 每月可修改次数已用完,请联系管理员");
|
||||||
}
|
}
|
||||||
|
log.info("阿里云四要素认证请求参数userId:{} {} {} {} {}", userId, certName, certNum, accountNo, mobile);
|
||||||
AuthRespDTO resp = aliService.auth(certName, certNum, accountNo, mobile);
|
AuthRespDTO resp = aliService.auth(certName, certNum, accountNo, mobile);
|
||||||
UserInfo userInfo = userInfoService.getByUserIdOrSave(userId);
|
UserInfo userInfo = userInfoService.getByUserIdOrSave(userId);
|
||||||
userInfo.setCertName(certName);
|
userInfo.setCertName(certName);
|
||||||
|
|||||||
Reference in New Issue
Block a user