From b05715c83c4e04165a6682f2049e68ca606f656c Mon Sep 17 00:00:00 2001 From: hjl <1657978663@qq.com> Date: 星期三, 26 六月 2024 10:38:53 +0800 Subject: [PATCH] fix: 学习端bug --- ruoyi-service/ruoyi-management/src/main/java/com/ruoyi/management/controller/TUserController.java | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ruoyi-service/ruoyi-management/src/main/java/com/ruoyi/management/controller/TUserController.java b/ruoyi-service/ruoyi-management/src/main/java/com/ruoyi/management/controller/TUserController.java index 6a352cf..fb71737 100644 --- a/ruoyi-service/ruoyi-management/src/main/java/com/ruoyi/management/controller/TUserController.java +++ b/ruoyi-service/ruoyi-management/src/main/java/com/ruoyi/management/controller/TUserController.java @@ -146,7 +146,7 @@ }) 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("账号不存在!"); } @@ -177,7 +177,7 @@ }) 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("账号不存在!"); } -- Gitblit v1.7.1