|
|
@ -281,7 +281,7 @@ public class SimpleClientApplyServiceImpl implements SimpleClientApplyService {
|
|
|
|
nation_code = "+" + nation_code;
|
|
|
|
nation_code = "+" + nation_code;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
List<JSONObject> account = clientAccountMapper.findByPhone(contact_phone, nation_code);
|
|
|
|
List<JSONObject> account = clientAccountMapper.findByPhone(contact_phone, nation_code);
|
|
|
|
if (account != null) {
|
|
|
|
if (account != null && account.size()>0) {
|
|
|
|
throw new ForbiddenException("用户名已被注册");
|
|
|
|
throw new ForbiddenException("用户名已被注册");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -599,7 +599,7 @@ public class SimpleClientApplyServiceImpl implements SimpleClientApplyService {
|
|
|
|
JSONObject apply = sysClientPreMapperMapper.findByUserName(username);
|
|
|
|
JSONObject apply = sysClientPreMapperMapper.findByUserName(username);
|
|
|
|
|
|
|
|
|
|
|
|
List<JSONObject> account = clientAccountMapper.findByPhone(apply.getString("contact_phone"), "+61");
|
|
|
|
List<JSONObject> account = clientAccountMapper.findByPhone(apply.getString("contact_phone"), "+61");
|
|
|
|
if (account != null) {
|
|
|
|
if (account != null && account.size() > 0) {
|
|
|
|
throw new ForbiddenException("The user name has been registered");
|
|
|
|
throw new ForbiddenException("The user name has been registered");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
String clientMoniker = generateClientMoniker();
|
|
|
|
String clientMoniker = generateClientMoniker();
|
|
|
|