|
|
@@ -405,13 +405,13 @@ public class BindTaskServiceImpl implements BindTaskService {
|
|
|
User changeUser = userMapper.selectOne(Wrappers.lambdaQuery(User.class)
|
|
|
.eq(User::getLoginPhone, account).last("limit 1"));
|
|
|
if (changeUser != null) {
|
|
|
- throw BusinessRuntimeException.getInstance("您更换的手机号已注册,无法更换");
|
|
|
+ throw BusinessRuntimeException.getInstance(I18nMessageUtil.getI18nMsg("bind_account_phone_change_has_registered"));
|
|
|
}
|
|
|
//是否已绑定
|
|
|
UserBindDetail changeUserBindDetail = userBindDetailMapper.selectOne(Wrappers.lambdaQuery(UserBindDetail.class)
|
|
|
.eq(UserBindDetail::getPhone, account).last("limit 1"));
|
|
|
if (changeUserBindDetail != null) {
|
|
|
- throw BusinessRuntimeException.getInstance("您更换的手机号已被绑定,无法更换");
|
|
|
+ throw BusinessRuntimeException.getInstance(I18nMessageUtil.getI18nMsg("bind_account_phone_other_bind_error"));
|
|
|
}
|
|
|
//校验手机号
|
|
|
checkPhoneCode(account, code);
|
|
|
@@ -437,15 +437,15 @@ public class BindTaskServiceImpl implements BindTaskService {
|
|
|
.or().eq(UserBindDetail::getEmailUserId, userId))
|
|
|
.last("limit 1"));
|
|
|
if (userBindDetail == null) {
|
|
|
- throw BusinessRuntimeException.getInstance("你未有绑定其他账号");
|
|
|
+ throw BusinessRuntimeException.getInstance(I18nMessageUtil.getI18nMsg("bind_account_detail_not_exist"));
|
|
|
}
|
|
|
if (StrUtil.isEmpty(userBindDetail.getPhone())) {
|
|
|
- throw BusinessRuntimeException.getInstance("您未绑定手机号,无法更换");
|
|
|
+ throw BusinessRuntimeException.getInstance(I18nMessageUtil.getI18nMsg("bind_account_phone_not_exist"));
|
|
|
}
|
|
|
String phone = userBindDetail.getPhone();
|
|
|
phoneUser = userMapper.selectOne(Wrappers.lambdaQuery(User.class)
|
|
|
.eq(User::getLoginPhone, phone).last("limit 1"));
|
|
|
- if (phoneUser == null) throw BusinessRuntimeException.getInstance("你绑定的手机号未注册");
|
|
|
+ if (phoneUser == null) throw BusinessRuntimeException.getInstance(I18nMessageUtil.getI18nMsg("bind_account_phone_not_register"));
|
|
|
phoneUserId = phoneUser.getId();
|
|
|
userBindDetail.setPhone(account);
|
|
|
userBindDetail.setPhoneUserId(phoneUserId);
|