Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
YunaiV committed Sep 24, 2023
2 parents 9b7c757 + 3a29727 commit 0669b9d
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -217,10 +217,10 @@ void validateMobileUnique(Long id, String mobile) {
}
// 如果 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);
}
}

Expand Down

0 comments on commit 0669b9d

Please sign in to comment.