已实名后的 修改为其它实名 禁止

This commit is contained in:
wangw 2025-08-25 09:18:47 +08:00
parent 4348f41b8d
commit 1a8fb32079
1 changed files with 1 additions and 2 deletions

View File

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