修改实名信息,仅不同修改数据
This commit is contained in:
@@ -104,7 +104,7 @@ public class AppController {
|
||||
UserEntity userEntity = userService.getById(userId);
|
||||
|
||||
String errMsg = null;
|
||||
if (StrUtil.isNotBlank(zhiFuBao)) {
|
||||
if (StrUtil.isNotBlank(zhiFuBao) && !zhiFuBao.equals(userEntity.getZhiFuBao())) {
|
||||
int count = userService.count(new QueryWrapper<UserEntity>()
|
||||
.ne("user_id", userId)
|
||||
.eq("zhi_fu_bao_name", certName)
|
||||
@@ -130,7 +130,7 @@ public class AppController {
|
||||
}
|
||||
|
||||
|
||||
if (StrUtil.isNotBlank(certNum)) {
|
||||
if (StrUtil.isNotBlank(certNum) && !certNum.equals(userInfo.getCertNo())) {
|
||||
if (StrUtil.isNotBlank(userEntity.getZhiFuBaoName()) && !certName.equals(userEntity.getZhiFuBaoName())) {
|
||||
errMsg = "实名修改失败: 姓名与绑定支付宝信息不相符";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user