|
|
@@ -114,13 +114,6 @@ public class TaskFrontController {
|
|
|
if (bindPhone == null) {
|
|
|
throw BusinessRuntimeException.getInstance("您未绑定手机号");
|
|
|
}
|
|
|
- boolean flag = bindPhone.getPhone().equals(phoneReq.getOldPhone());
|
|
|
- if (!flag) {
|
|
|
- throw BusinessRuntimeException.getInstance("原手机号错误");
|
|
|
- }
|
|
|
- if (phoneReq.getOldPhone().equals(phoneReq.getPhone())) {
|
|
|
- throw BusinessRuntimeException.getInstance("前后两次手机号相同");
|
|
|
- }
|
|
|
phoneCodeService.checkPhone(phoneReq.getPhone(), phoneReq.getCode());
|
|
|
bindPhone.setPhone(phoneReq.getPhone());
|
|
|
userBindPhoneMapper.updateById(bindPhone);
|