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