用户校验问题处理
This commit is contained in:
parent
b0843aa744
commit
4a3c978e07
@ -593,8 +593,9 @@ public class MemberServiceImpl extends ServiceImpl<MemberMapper, Member> impleme
|
|||||||
* @param mobilePhone 手机号
|
* @param mobilePhone 手机号
|
||||||
*/
|
*/
|
||||||
private void checkMember(String userName, String mobilePhone) {
|
private void checkMember(String userName, String mobilePhone) {
|
||||||
|
List<Member> members = findMember(userName, mobilePhone);
|
||||||
//判断手机号是否存在
|
//判断手机号是否存在
|
||||||
if (findMember(userName, mobilePhone) != null) {
|
if (members != null && !members.isEmpty()) {
|
||||||
throw new ServiceException(ResultCode.USER_EXIST);
|
throw new ServiceException(ResultCode.USER_EXIST);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user