!634 fix: MemberUserServiceImpl需要填充exception错误信息中的参数

Merge pull request !634 from dhb52/master
This commit is contained in:
芋道源码 2023-09-24 15:09:19 +00:00 committed by Gitee
commit 3a297271eb
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
1 changed files with 2 additions and 2 deletions

View File

@ -217,10 +217,10 @@ public class MemberUserServiceImpl implements MemberUserService {
}
// 如果 id 为空说明不用比较是否为相同 id 的用户
if (id == null) {
throw exception(USER_MOBILE_USED);
throw exception(USER_MOBILE_USED, mobile);
}
if (!user.getId().equals(id)) {
throw exception(USER_MOBILE_USED);
throw exception(USER_MOBILE_USED, mobile);
}
}