diff --git a/yudao-module-member/yudao-module-member-biz/src/main/java/cn/iocoder/yudao/module/member/service/user/MemberUserServiceImpl.java b/yudao-module-member/yudao-module-member-biz/src/main/java/cn/iocoder/yudao/module/member/service/user/MemberUserServiceImpl.java index c5b674cc8..3fdbec5f6 100644 --- a/yudao-module-member/yudao-module-member-biz/src/main/java/cn/iocoder/yudao/module/member/service/user/MemberUserServiceImpl.java +++ b/yudao-module-member/yudao-module-member-biz/src/main/java/cn/iocoder/yudao/module/member/service/user/MemberUserServiceImpl.java @@ -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); } }