| | |
| | | }) |
| | | public AjaxResult updatePassword(String phone,String phoneCode,String password) { |
| | | SysUser one = sysUserService.getOne(new QueryWrapper<SysUser>() |
| | | .eq("phone", phone).eq("del_flag", 0)); |
| | | .eq("phonenumber", phone).eq("del_flag", 0)); |
| | | if (one == null){ |
| | | return AjaxResult.error("账号不存在!"); |
| | | } |
| | |
| | | }) |
| | | public R<?> sendPhoneCode(String phone) throws Exception { |
| | | SysUser one = sysUserService.getOne(new QueryWrapper<SysUser>() |
| | | .eq("phone", phone).eq("del_flag", 0)); |
| | | .eq("phonenumber", phone).eq("del_flag", 0)); |
| | | if (one == null){ |
| | | return R.fail("账号不存在!"); |
| | | } |